Dagger
Search

dagger

No long description provided.

Installation

dagger install github.com/quartz-technology/daggerverse/dagger@7c59dc94edaf73d9324abe2c36f946ace0d832e6

Entrypoint

Return Type
Dagger
Example
dagger -m github.com/quartz-technology/daggerverse/dagger@7c59dc94edaf73d9324abe2c36f946ace0d832e6 call \
func (m *myModule) example() *Dagger  {
	return dag.
			Dagger()
}
@function
def example() -> dag.Dagger:
	return (
		dag.dagger()
	)
@func()
example(): Dagger {
	return dag
		.dagger()
}

Types

Dagger 🔗

install() 🔗

Install returns the same Container with the Dagger CLI installed in it. This container must have curl installed to fetch the CLI.

This can be used to provide a container with source code already installed in it.

Return Type
Cli !
Arguments
NameTypeDefault ValueDescription
containerContainer !-No description provided
versionString !-No description provided
Example
dagger -m github.com/quartz-technology/daggerverse/dagger@7c59dc94edaf73d9324abe2c36f946ace0d832e6 call \
 install --container IMAGE:TAG --version string
func (m *myModule) example(container *Container, version string) *DaggerCli  {
	return dag.
			Dagger().
			Install(container, version)
}
@function
def example(container: dagger.Container, version: str) -> dag.DaggerCli:
	return (
		dag.dagger()
		.install(container, version)
	)
@func()
example(container: Container, version: string): DaggerCli {
	return dag
		.dagger()
		.install(container, version)
}

cli() 🔗

CLI returns a ready to use Dagger container with CLI installed.

Return Type
Cli !
Arguments
NameTypeDefault ValueDescription
versionString !-No description provided
Example
dagger -m github.com/quartz-technology/daggerverse/dagger@7c59dc94edaf73d9324abe2c36f946ace0d832e6 call \
 cli --version string
func (m *myModule) example(version string) *DaggerCli  {
	return dag.
			Dagger().
			Cli(version)
}
@function
def example(version: str) -> dag.DaggerCli:
	return (
		dag.dagger()
		.cli(version)
	)
@func()
example(version: string): DaggerCli {
	return dag
		.dagger()
		.cli(version)
}

Cli 🔗

CLI wraps dagger binary into a specialized container that set options to use Dagger inside dagger. Each supported command are set with `ExperimentalPrivilegedNesting` option to ensure dagger can work inside dagger.

ctr() 🔗

Return Type
Container !
Example
dagger -m github.com/quartz-technology/daggerverse/dagger@7c59dc94edaf73d9324abe2c36f946ace0d832e6 call \
 cli --version string \
 ctr
func (m *myModule) example(version string) *Container  {
	return dag.
			Dagger().
			Cli(version).
			Ctr()
}
@function
def example(version: str) -> dagger.Container:
	return (
		dag.dagger()
		.cli(version)
		.ctr()
	)
@func()
example(version: string): Container {
	return dag
		.dagger()
		.cli(version)
		.ctr()
}

container() 🔗

Container returns the CLI’s Container.

Return Type
Container !
Example
dagger -m github.com/quartz-technology/daggerverse/dagger@7c59dc94edaf73d9324abe2c36f946ace0d832e6 call \
 cli --version string \
 container
func (m *myModule) example(version string) *Container  {
	return dag.
			Dagger().
			Cli(version).
			Container()
}
@function
def example(version: str) -> dagger.Container:
	return (
		dag.dagger()
		.cli(version)
		.container()
	)
@func()
example(version: string): Container {
	return dag
		.dagger()
		.cli(version)
		.container()
}

publish() 🔗

Publish execute the publish command in the current workdir.

Use this command to publish a module to dagger-verse

Return Type
String !
Arguments
NameTypeDefault ValueDescription
moduleString -Specify a path to the module (default to ".")
Example
dagger -m github.com/quartz-technology/daggerverse/dagger@7c59dc94edaf73d9324abe2c36f946ace0d832e6 call \
 cli --version string \
 publish
func (m *myModule) example(ctx context.Context, version string) string  {
	return dag.
			Dagger().
			Cli(version).
			Publish(ctx)
}
@function
async def example(version: str) -> str:
	return await (
		dag.dagger()
		.cli(version)
		.publish()
	)
@func()
async example(version: string): Promise<string> {
	return dag
		.dagger()
		.cli(version)
		.publish()
}

call() 🔗

Call returns the result of the call command.

Return Type
String !
Arguments
NameTypeDefault ValueDescription
command[String ! ] !-Command to call (e.g., ["integration-test", "run"])
args[String ! ] !-Arguments to add to the command (e.g., ["--target", "foo"])
Example
dagger -m github.com/quartz-technology/daggerverse/dagger@7c59dc94edaf73d9324abe2c36f946ace0d832e6 call \
 cli --version string \
 call --command string1 --command string2 --args string1 --args string2
func (m *myModule) example(ctx context.Context, version string, command []string, args []string) string  {
	return dag.
			Dagger().
			Cli(version).
			Call(ctx, command, args)
}
@function
async def example(version: str, command: List[str], args: List[str]) -> str:
	return await (
		dag.dagger()
		.cli(version)
		.call(command, args)
	)
@func()
async example(version: string, command: string[], args: string[]): Promise<string> {
	return dag
		.dagger()
		.cli(version)
		.call(command, args)
}

run() 🔗

Run returns the result of the run command.

Return Type
String !
Arguments
NameTypeDefault ValueDescription
args[String ! ] !-Arguments to pass to run (e.g., ["echo", "hello world"])
Example
dagger -m github.com/quartz-technology/daggerverse/dagger@7c59dc94edaf73d9324abe2c36f946ace0d832e6 call \
 cli --version string \
 run --args string1 --args string2
func (m *myModule) example(ctx context.Context, version string, args []string) string  {
	return dag.
			Dagger().
			Cli(version).
			Run(ctx, args)
}
@function
async def example(version: str, args: List[str]) -> str:
	return await (
		dag.dagger()
		.cli(version)
		.run(args)
	)
@func()
async example(version: string, args: string[]): Promise<string> {
	return dag
		.dagger()
		.cli(version)
		.run(args)
}

query() 🔗

Query returns the result of a graphQL query processed by dagger.

Return Type
String !
Arguments
NameTypeDefault ValueDescription
queryString !-No description provided
Example
dagger -m github.com/quartz-technology/daggerverse/dagger@7c59dc94edaf73d9324abe2c36f946ace0d832e6 call \
 cli --version string \
 query --query string
func (m *myModule) example(ctx context.Context, version string, query string) string  {
	return dag.
			Dagger().
			Cli(version).
			Query(ctx, query)
}
@function
async def example(version: str, query: str) -> str:
	return await (
		dag.dagger()
		.cli(version)
		.query(query)
	)
@func()
async example(version: string, query: string): Promise<string> {
	return dag
		.dagger()
		.cli(version)
		.query(query)
}