Dagger
Search

cool-sdk

No long description provided.

Installation

dagger install github.com/dagger/dagger-test-modules/cool-sdk@d7299e935a195f3e1a29bc39537ed270f4f378d5

Entrypoint

Return Type
CoolSdk
Example
func (m *myModule) example() *CoolSdk  {
	return dag.
			CoolSdk()
}
@function
def example() -> dag.CoolSdk:
	return (
		dag.cool_sdk()
	)
@func()
example(): CoolSdk {
	return dag
		.coolSdk()
}

Types

CoolSdk

moduleRuntime()

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
modSourceModuleSource !-No description provided
introspectionJsonString !-No description provided
Example
echo 'Custom types are not supported in shell examples'
func (m *myModule) example(modSource *ModuleSource, introspectionJson string) *Container  {
	return dag.
			CoolSdk().
			ModuleRuntime(modSource, introspectionJson)
}
@function
def example(mod_source: dag.ModuleSource, introspection_json: str) -> dagger.Container:
	return (
		dag.cool_sdk()
		.module_runtime(mod_source, introspection_json)
	)
@func()
example(modSource: ModuleSource, introspectionJson: string): Container {
	return dag
		.coolSdk()
		.moduleRuntime(modSource, introspectionJson)
}

codegen()

Return Type
GeneratedCode !
Arguments
NameTypeDefault ValueDescription
modSourceModuleSource !-No description provided
introspectionJsonString !-No description provided
Example
Function CoolSdk.codegen is not accessible from the cool-sdk module
func (m *myModule) example(modSource *ModuleSource, introspectionJson string) *GeneratedCode  {
	return dag.
			CoolSdk().
			Codegen(modSource, introspectionJson)
}
@function
def example(mod_source: dag.ModuleSource, introspection_json: str) -> dag.GeneratedCode:
	return (
		dag.cool_sdk()
		.codegen(mod_source, introspection_json)
	)
@func()
example(modSource: ModuleSource, introspectionJson: string): GeneratedCode {
	return dag
		.coolSdk()
		.codegen(modSource, introspectionJson)
}

requiredPaths()

Return Type
[String ! ] !
Example
dagger -m github.com/dagger/dagger-test-modules/cool-sdk@d7299e935a195f3e1a29bc39537ed270f4f378d5 call \
 required-paths
func (m *myModule) example(ctx context.Context) []string  {
	return dag.
			CoolSdk().
			RequiredPaths(ctx)
}
@function
async def example() -> List[str]:
	return await (
		dag.cool_sdk()
		.required_paths()
	)
@func()
async example(): Promise<string[]> {
	return dag
		.coolSdk()
		.requiredPaths()
}