cool-sdk
No long description provided.
Installation
dagger install gitlab.com/dagger-modules/test/more/dagger-test-modules-public/cool-sdk@2cb6cb4b0dba52c1e65b3ff46dd1a4a8f9a02f94
Entrypoint
Return Type
CoolSdk
Example
dagger -m gitlab.com/dagger-modules/test/more/dagger-test-modules-public/cool-sdk@2cb6cb4b0dba52c1e65b3ff46dd1a4a8f9a02f94 call \
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
Name | Type | Default Value | Description |
---|---|---|---|
modSource | ModuleSource ! | - | No description provided |
introspectionJson | String ! | - | 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
Name | Type | Default Value | Description |
---|---|---|---|
modSource | ModuleSource ! | - | No description provided |
introspectionJson | String ! | - | No description provided |
Example
echo 'Custom types are not supported in shell examples'
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 gitlab.com/dagger-modules/test/more/dagger-test-modules-public/cool-sdk@2cb6cb4b0dba52c1e65b3ff46dd1a4a8f9a02f94 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()
}