Dagger
Search

cdk

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/houlasley/daggerverse/cdk@61bdf4201db7c56f0c61d3f43c2a63f283efcb4a

Entrypoint

Return Type
Cdk
Example
dagger -m github.com/houlasley/daggerverse/cdk@61bdf4201db7c56f0c61d3f43c2a63f283efcb4a call \
func (m *myModule) example() *dagger.Cdk  {
	return dag.
			Cdk()
}
@function
def example() -> dagger.Cdk:
	return (
		dag.cdk()
	)
@func()
example(): Cdk {
	return dag
		.cdk()
}

Types

Cdk 🔗

containerEcho() 🔗

Returns a container that echoes whatever string argument is provided

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
stringArgString !-No description provided
Example
dagger -m github.com/houlasley/daggerverse/cdk@61bdf4201db7c56f0c61d3f43c2a63f283efcb4a call \
 container-echo --string-arg string
func (m *myModule) example(stringArg string) *dagger.Container  {
	return dag.
			Cdk().
			ContainerEcho(stringArg)
}
@function
def example(string_arg: str) -> dagger.Container:
	return (
		dag.cdk()
		.container_echo(string_arg)
	)
@func()
example(stringArg: string): Container {
	return dag
		.cdk()
		.containerEcho(stringArg)
}

grepDir() 🔗

Returns lines that match a pattern in the files of the provided Directory

Return Type
String !
Arguments
NameTypeDefault ValueDescription
directoryArgDirectory !-No description provided
patternString !-No description provided
Example
dagger -m github.com/houlasley/daggerverse/cdk@61bdf4201db7c56f0c61d3f43c2a63f283efcb4a call \
 grep-dir --directory-arg DIR_PATH --pattern string
func (m *myModule) example(ctx context.Context, directoryArg *dagger.Directory, pattern string) string  {
	return dag.
			Cdk().
			GrepDir(ctx, directoryArg, pattern)
}
@function
async def example(directory_arg: dagger.Directory, pattern: str) -> str:
	return await (
		dag.cdk()
		.grep_dir(directory_arg, pattern)
	)
@func()
async example(directoryArg: Directory, pattern: string): Promise<string> {
	return dag
		.cdk()
		.grepDir(directoryArg, pattern)
}

synth() 🔗

Return Type
Directory !
Arguments
NameTypeDefault ValueDescription
appDirDirectory !-No description provided
Example
dagger -m github.com/houlasley/daggerverse/cdk@61bdf4201db7c56f0c61d3f43c2a63f283efcb4a call \
 synth --app-dir DIR_PATH
func (m *myModule) example(appDir *dagger.Directory) *dagger.Directory  {
	return dag.
			Cdk().
			Synth(appDir)
}
@function
def example(app_dir: dagger.Directory) -> dagger.Directory:
	return (
		dag.cdk()
		.synth(app_dir)
	)
@func()
example(appDir: Directory): Directory {
	return dag
		.cdk()
		.synth(appDir)
}

deploy() 🔗

Return Type
Void !
Arguments
NameTypeDefault ValueDescription
appDirDirectory !-No description provided
envString !-No description provided
accountIdString !-No description provided
Example
dagger -m github.com/houlasley/daggerverse/cdk@61bdf4201db7c56f0c61d3f43c2a63f283efcb4a call \
 deploy --app-dir DIR_PATH --env string --account-id string
func (m *myModule) example(ctx context.Context, appDir *dagger.Directory, env string, accountId string)   {
	return dag.
			Cdk().
			Deploy(ctx, appDir, env, accountId)
}
@function
async def example(app_dir: dagger.Directory, env: str, account_id: str) -> None:
	return await (
		dag.cdk()
		.deploy(app_dir, env, account_id)
	)
@func()
async example(appDir: Directory, env: string, accountId: string): Promise<void> {
	return dag
		.cdk()
		.deploy(appDir, env, accountId)
}

destroy() 🔗

Return Type
Void !
Arguments
NameTypeDefault ValueDescription
appDirDirectory !-No description provided
envString !-No description provided
accountIdString !-No description provided
Example
dagger -m github.com/houlasley/daggerverse/cdk@61bdf4201db7c56f0c61d3f43c2a63f283efcb4a call \
 destroy --app-dir DIR_PATH --env string --account-id string
func (m *myModule) example(ctx context.Context, appDir *dagger.Directory, env string, accountId string)   {
	return dag.
			Cdk().
			Destroy(ctx, appDir, env, accountId)
}
@function
async def example(app_dir: dagger.Directory, env: str, account_id: str) -> None:
	return await (
		dag.cdk()
		.destroy(app_dir, env, account_id)
	)
@func()
async example(appDir: Directory, env: string, accountId: string): Promise<void> {
	return dag
		.cdk()
		.destroy(appDir, env, accountId)
}