sosc-platform
This module has been generated via dagger init and serves as a reference tobasic module structure as you get started with Dagger.
Two functions have been pre-created. You can modify, delete, or add to them,
as needed. They demonstrate usage of arguments and return types using simple
echo and grep commands. The functions can be called from the dagger CLI or
from one of the SDKs.
The first line in this comment block is a short description line and the
rest is a long description with more detail on the module's purpose or usage,
if appropriate. All modules should have a short description.
Installation
dagger install github.com/dciangot/daggerverse/sosc-platform@c382349cccf9b034905ffe36baf0799e6f9be5beEntrypoint
Return Type
SoscPlatform !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| name | String ! | - | No description provided |
| contextDir | Directory ! | - | A directory. |
Example
dagger -m github.com/dciangot/daggerverse/sosc-platform@c382349cccf9b034905ffe36baf0799e6f9be5be call \
--name string --context-dir DIR_PATHfunc (m *MyModule) Example(name string, contextDir *dagger.Directory) *dagger.SoscPlatform {
return dag.
SoscPlatform(name, contextDir)
}@function
def example(name: str, context_dir: dagger.Directory) -> dagger.SoscPlatform:
return (
dag.sosc_platform(name, context_dir)
)@func()
example(name: string, contextDir: Directory): SoscPlatform {
return dag
.soscPlatform(name, contextDir)
}Types
SoscPlatform 🔗
buildImage() 🔗
Returns a container that echoes whatever string argument is provided
Return Type
Container ! Example
dagger -m github.com/dciangot/daggerverse/sosc-platform@c382349cccf9b034905ffe36baf0799e6f9be5be call \
--name string --context-dir DIR_PATH build-imagefunc (m *MyModule) Example(name string, contextDir *dagger.Directory) *dagger.Container {
return dag.
SoscPlatform(name, contextDir).
BuildImage()
}@function
def example(name: str, context_dir: dagger.Directory) -> dagger.Container:
return (
dag.sosc_platform(name, context_dir)
.build_image()
)@func()
example(name: string, contextDir: Directory): Container {
return dag
.soscPlatform(name, contextDir)
.buildImage()
}papermill() 🔗
Returns a container that echoes whatever string argument is provided
Return Type
Container !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| notebook | File ! | - | A file. |
| paramFile | File ! | - | A file. |
Example
dagger -m github.com/dciangot/daggerverse/sosc-platform@c382349cccf9b034905ffe36baf0799e6f9be5be call \
--name string --context-dir DIR_PATH papermill --notebook file:path --param-file file:pathfunc (m *MyModule) Example(name string, contextDir *dagger.Directory, notebook *dagger.File, paramFile *dagger.File) *dagger.Container {
return dag.
SoscPlatform(name, contextDir).
Papermill(notebook, paramFile)
}@function
def example(name: str, context_dir: dagger.Directory, notebook: dagger.File, param_file: dagger.File) -> dagger.Container:
return (
dag.sosc_platform(name, context_dir)
.papermill(notebook, param_file)
)@func()
example(name: string, contextDir: Directory, notebook: File, paramFile: File): Container {
return dag
.soscPlatform(name, contextDir)
.papermill(notebook, paramFile)
}sosc() 🔗
Returns a container that echoes whatever string argument is provided
Return Type
Container !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| jupyterSecret | Secret ! | - | A reference to a secret value, which can be handled more safely than the value itself. |
Example
dagger -m github.com/dciangot/daggerverse/sosc-platform@c382349cccf9b034905ffe36baf0799e6f9be5be call \
--name string --context-dir DIR_PATH sosc --jupyter-secret env:MYSECRETfunc (m *MyModule) Example(name string, contextDir *dagger.Directory, jupyterSecret *dagger.Secret) *dagger.Container {
return dag.
SoscPlatform(name, contextDir).
Sosc(jupyterSecret)
}@function
def example(name: str, context_dir: dagger.Directory, jupyter_secret: dagger.Secret) -> dagger.Container:
return (
dag.sosc_platform(name, context_dir)
.sosc(jupyter_secret)
)@func()
example(name: string, contextDir: Directory, jupyterSecret: Secret): Container {
return dag
.soscPlatform(name, contextDir)
.sosc(jupyterSecret)
}