bass-sdk
Bass is a Dagger SDK for the Bass scripting language (https://bass-lang.org).
Installation
dagger install github.com/vito/daggerverse/bass@4ec4a21f4cf7228931ea608ed4c43a5165fd15fe
Entrypoint
Return Type
BassSdk !
Example
dagger -m github.com/vito/daggerverse/bass@4ec4a21f4cf7228931ea608ed4c43a5165fd15fe call \
func (m *myModule) example() *BassSdk {
return dag.
BassSdk()
}
@function
def example() -> dag.BassSdk:
return (
dag.bass_sdk()
)
@func()
example(): BassSdk {
return dag
.bassSdk()
}
Types
BassSdk 🔗
requiredPaths() 🔗
Return Type
[String ! ] !
Example
dagger -m github.com/vito/daggerverse/bass@4ec4a21f4cf7228931ea608ed4c43a5165fd15fe call \
required-paths
func (m *myModule) example(ctx context.Context) []string {
return dag.
BassSdk().
RequiredPaths(ctx)
}
@function
async def example() -> List[str]:
return await (
dag.bass_sdk()
.required_paths()
)
@func()
async example(): Promise<string[]> {
return dag
.bassSdk()
.requiredPaths()
}
moduleRuntime() 🔗
ModuleRuntime returns a container with the node entrypoint ready to be called.
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.
BassSdk().
ModuleRuntime(modSource, introspectionJson)
}
@function
def example(mod_source: dag.ModuleSource, introspection_json: str) -> dagger.Container:
return (
dag.bass_sdk()
.module_runtime(mod_source, introspection_json)
)
@func()
example(modSource: ModuleSource, introspectionJson: string): Container {
return dag
.bassSdk()
.moduleRuntime(modSource, introspectionJson)
}
codegen() 🔗
Codegen returns the generated API client based on user’s module
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.
BassSdk().
Codegen(modSource, introspectionJson)
}
@function
def example(mod_source: dag.ModuleSource, introspection_json: str) -> dag.GeneratedCode:
return (
dag.bass_sdk()
.codegen(mod_source, introspection_json)
)
@func()
example(modSource: ModuleSource, introspectionJson: string): GeneratedCode {
return dag
.bassSdk()
.codegen(modSource, introspectionJson)
}
codegenBase() 🔗
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.
BassSdk().
CodegenBase(modSource, introspectionJson)
}
@function
def example(mod_source: dag.ModuleSource, introspection_json: str) -> dagger.Container:
return (
dag.bass_sdk()
.codegen_base(mod_source, introspection_json)
)
@func()
example(modSource: ModuleSource, introspectionJson: string): Container {
return dag
.bassSdk()
.codegenBase(modSource, introspectionJson)
}
base() 🔗
Return Type
Container !
Example
dagger -m github.com/vito/daggerverse/bass@4ec4a21f4cf7228931ea608ed4c43a5165fd15fe call \
base
func (m *myModule) example() *Container {
return dag.
BassSdk().
Base()
}
@function
def example() -> dagger.Container:
return (
dag.bass_sdk()
.base()
)
@func()
example(): Container {
return dag
.bassSdk()
.base()
}
entrypoint() 🔗
Return Type
File !
Example
dagger -m github.com/vito/daggerverse/bass@4ec4a21f4cf7228931ea608ed4c43a5165fd15fe call \
entrypoint
func (m *myModule) example() *File {
return dag.
BassSdk().
Entrypoint()
}
@function
def example() -> dagger.File:
return (
dag.bass_sdk()
.entrypoint()
)
@func()
example(): File {
return dag
.bassSdk()
.entrypoint()
}