Dagger
Search

dang-sdk

No long description provided.

Installation

dagger install github.com/vito/dang/dagger-sdk@c85910d7a60ed07a90ef22c7f5da64348eb7162a

Entrypoint

Return Type
DangSdk !
Arguments
NameTypeDefault ValueDescription
dangRootDirectory -No description provided
Example
dagger -m github.com/vito/dang/dagger-sdk@c85910d7a60ed07a90ef22c7f5da64348eb7162a call \
func (m *MyModule) Example() *dagger.DangSdk  {
	return dag.
			DangSdk()
}
@function
def example() -> dagger.DangSdk:
	return (
		dag.dang_sdk()
	)
@func()
example(): DangSdk {
	return dag
		.dangSdk()
}

Types

DangSdk 🔗

dangRoot() 🔗

Return Type
Directory !
Example
dagger -m github.com/vito/dang/dagger-sdk@c85910d7a60ed07a90ef22c7f5da64348eb7162a call \
 dang-root
func (m *MyModule) Example() *dagger.Directory  {
	return dag.
			DangSdk().
			DangRoot()
}
@function
def example() -> dagger.Directory:
	return (
		dag.dang_sdk()
		.dang_root()
	)
@func()
example(): Directory {
	return dag
		.dangSdk()
		.dangRoot()
}

moduleRuntime() 🔗

ModuleRuntime returns a container with the node entrypoint ready to be called.

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
modSourceModuleSource !-No description provided
introspectionJsonFile !-No description provided
Example
echo 'Custom types are not supported in shell examples'
func (m *MyModule) Example(modSource *dagger.ModuleSource, introspectionJson *dagger.File) *dagger.Container  {
	return dag.
			DangSdk().
			ModuleRuntime(modSource, introspectionJson)
}
@function
def example(mod_source: dagger.ModuleSource, introspection_json: dagger.File) -> dagger.Container:
	return (
		dag.dang_sdk()
		.module_runtime(mod_source, introspection_json)
	)
@func()
example(modSource: ModuleSource, introspectionJson: File): Container {
	return dag
		.dangSdk()
		.moduleRuntime(modSource, introspectionJson)
}

base() 🔗

Return Type
Container !
Example
dagger -m github.com/vito/dang/dagger-sdk@c85910d7a60ed07a90ef22c7f5da64348eb7162a call \
 base
func (m *MyModule) Example() *dagger.Container  {
	return dag.
			DangSdk().
			Base()
}
@function
def example() -> dagger.Container:
	return (
		dag.dang_sdk()
		.base()
	)
@func()
example(): Container {
	return dag
		.dangSdk()
		.base()
}

entrypoint() 🔗

Return Type
File !
Example
dagger -m github.com/vito/dang/dagger-sdk@c85910d7a60ed07a90ef22c7f5da64348eb7162a call \
 entrypoint
func (m *MyModule) Example() *dagger.File  {
	return dag.
			DangSdk().
			Entrypoint()
}
@function
def example() -> dagger.File:
	return (
		dag.dang_sdk()
		.entrypoint()
	)
@func()
example(): File {
	return dag
		.dangSdk()
		.entrypoint()
}

repl() 🔗

Return Type
Container !
Example
dagger -m github.com/vito/dang/dagger-sdk@c85910d7a60ed07a90ef22c7f5da64348eb7162a call \
 repl
func (m *MyModule) Example() *dagger.Container  {
	return dag.
			DangSdk().
			Repl()
}
@function
def example() -> dagger.Container:
	return (
		dag.dang_sdk()
		.repl()
	)
@func()
example(): Container {
	return dag
		.dangSdk()
		.repl()
}