magicsdk
No long description provided.
Installation
dagger install github.com/quartz-technology/daggerverse/magicsdk@19261b4ffa8414887206e2381f3c6521e53553e7
Entrypoint
Return Type
Magicsdk !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
app | Directory | - | No description provided |
Example
dagger -m github.com/quartz-technology/daggerverse/magicsdk@19261b4ffa8414887206e2381f3c6521e53553e7 call \
func (m *myModule) example() *Magicsdk {
return dag.
Magicsdk()
}
@function
def example() -> dag.Magicsdk:
return (
dag.magicsdk()
)
@func()
example(): Magicsdk {
return dag
.magicsdk()
}
Types
Magicsdk 🔗
app() 🔗
Return Type
Directory !
Example
dagger -m github.com/quartz-technology/daggerverse/magicsdk@19261b4ffa8414887206e2381f3c6521e53553e7 call \
app
func (m *myModule) example() *Directory {
return dag.
Magicsdk().
App()
}
@function
def example() -> dagger.Directory:
return (
dag.magicsdk()
.app()
)
@func()
example(): Directory {
return dag
.magicsdk()
.app()
}
requiredPaths() 🔗
Return Type
[String ! ] !
Example
dagger -m github.com/quartz-technology/daggerverse/magicsdk@19261b4ffa8414887206e2381f3c6521e53553e7 call \
required-paths
func (m *myModule) example(ctx context.Context) []string {
return dag.
Magicsdk().
RequiredPaths(ctx)
}
@function
async def example() -> List[str]:
return await (
dag.magicsdk()
.required_paths()
)
@func()
async example(): Promise<string[]> {
return dag
.magicsdk()
.requiredPaths()
}
moduleRuntime() 🔗
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
modSource | ModuleSource ! | - | No description provided |
introspectionJson | File ! | - | No description provided |
Example
echo 'Custom types are not supported in shell examples'
func (m *myModule) example(modSource *ModuleSource, introspectionJson *File) *Container {
return dag.
Magicsdk().
ModuleRuntime(modSource, introspectionJson)
}
@function
def example(mod_source: dag.ModuleSource, introspection_json: dagger.File) -> dagger.Container:
return (
dag.magicsdk()
.module_runtime(mod_source, introspection_json)
)
@func()
example(modSource: ModuleSource, introspectionJson: File): Container {
return dag
.magicsdk()
.moduleRuntime(modSource, introspectionJson)
}
codegen() 🔗
MagicSDK doesn’t have any codegen logic
Return Type
GeneratedCode !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
modSource | ModuleSource ! | - | No description provided |
introspectionJson | File ! | - | No description provided |
Example
echo 'Custom types are not supported in shell examples'
func (m *myModule) example(modSource *ModuleSource, introspectionJson *File) *GeneratedCode {
return dag.
Magicsdk().
Codegen(modSource, introspectionJson)
}
@function
def example(mod_source: dag.ModuleSource, introspection_json: dagger.File) -> dag.GeneratedCode:
return (
dag.magicsdk()
.codegen(mod_source, introspection_json)
)
@func()
example(modSource: ModuleSource, introspectionJson: File): GeneratedCode {
return dag
.magicsdk()
.codegen(modSource, introspectionJson)
}