Dagger
Search

oscal

This module has been generated via dagger init and serves as a reference to
basic module structure as you get started with Dagger.

Two functions have been pre-created. You can modify, delete, or add to them,
as needed. They demonstrate usage of arguments and return types using simple
echo and grep commands. The functions can be called from the dagger CLI or
from one of the SDKs.

The first line in this comment block is a short description line and the
rest is a long description with more detail on the module's purpose or usage,
if appropriate. All modules should have a short description.

Installation

dagger install github.com/orvis98/daggerverse/oscal@a72ea00b7b7883e1e43b6807033dbcd7ab36da3c

Entrypoint

Return Type
Oscal !
Arguments
NameTypeDefault ValueDescription
cueVersionString "v0.12.0"the desired CUE version
sourceDirectory -the context directory
Example
dagger -m github.com/orvis98/daggerverse/oscal@a72ea00b7b7883e1e43b6807033dbcd7ab36da3c call \
func (m *MyModule) Example() *dagger.Oscal  {
	return dag.
			Oscal()
}
@function
def example() -> dagger.Oscal:
	return (
		dag.oscal()
	)
@func()
example(): Oscal {
	return dag
		.oscal()
}

Types

Oscal 🔗

cueVersion() 🔗

returns the cue version

Return Type
String !
Example
dagger -m github.com/orvis98/daggerverse/oscal@a72ea00b7b7883e1e43b6807033dbcd7ab36da3c call \
 cue-version
func (m *MyModule) Example(ctx context.Context) string  {
	return dag.
			Oscal().
			CueVersion(ctx)
}
@function
async def example() -> str:
	return await (
		dag.oscal()
		.cue_version()
	)
@func()
async example(): Promise<string> {
	return dag
		.oscal()
		.cueVersion()
}

container() 🔗

returns a cue container

Return Type
Container !
Example
dagger -m github.com/orvis98/daggerverse/oscal@a72ea00b7b7883e1e43b6807033dbcd7ab36da3c call \
 container
func (m *MyModule) Example() *dagger.Container  {
	return dag.
			Oscal().
			Container()
}
@function
def example() -> dagger.Container:
	return (
		dag.oscal()
		.container()
	)
@func()
example(): Container {
	return dag
		.oscal()
		.container()
}

componentDefinition() 🔗

returns the component definition as a string

Return Type
String !
Arguments
NameTypeDefault ValueDescription
fileFile !-the component definition
Example
dagger -m github.com/orvis98/daggerverse/oscal@a72ea00b7b7883e1e43b6807033dbcd7ab36da3c call \
 component-definition --file file:path
func (m *MyModule) Example(ctx context.Context, file *dagger.File) string  {
	return dag.
			Oscal().
			ComponentDefinition(ctx, file)
}
@function
async def example(file: dagger.File) -> str:
	return await (
		dag.oscal()
		.component_definition(file)
	)
@func()
async example(file: File): Promise<string> {
	return dag
		.oscal()
		.componentDefinition(file)
}