labctl
No long description provided.
Installation
dagger install github.com/sagikazarmark/daggerverse/labctl@v0.0.4Entrypoint
Return Type
Labctl !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| version | String | - | Version (release tag) of labctl to download from GitHub. Defaults to "latest". |
| container | Container | - | The container to use as the base for the labctl installation. Defaults to "alpine:latest". |
| sessionId | Secret | - | The session ID for the labctl. |
| accessToken | Secret | - | The access token for the labctl. |
Example
dagger -m github.com/sagikazarmark/daggerverse/labctl@d8e3be0e9e1ea32a3323326366872b6d97f7648f call \
func (m *MyModule) Example() *dagger.Labctl {
return dag.
Labctl()
}@function
def example() -> dagger.Labctl:
return (
dag.labctl()
)@func()
example(): Labctl {
return dag
.labctl()
}Entrypoint
Return Type
Playground !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| container | Container ! | - | No description provided |
| name | String ! | - | No description provided |
Example
Function Playground.Constructor is not accessible from the labctl moduleFunction Playground.Constructor is not accessible from the labctl moduleFunction Playground.Constructor is not accessible from the labctl moduleFunction Playground.Constructor is not accessible from the labctl moduleEntrypoint
Return Type
Content !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| container | Container ! | - | No description provided |
| kind | Enum ! | - | No description provided |
| name | String ! | - | No description provided |
Example
Function Content.Constructor is not accessible from the labctl moduleFunction Content.Constructor is not accessible from the labctl moduleFunction Content.Constructor is not accessible from the labctl moduleFunction Content.Constructor is not accessible from the labctl moduleTypes
Labctl 🔗
tutorial() 🔗
Manage tutorials.
Return Type
Content !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| name | String ! | - | No description provided |
Example
dagger -m github.com/sagikazarmark/daggerverse/labctl@d8e3be0e9e1ea32a3323326366872b6d97f7648f call \
tutorial --name stringfunc (m *MyModule) Example(name string) *dagger.LabctlContent {
return dag.
Labctl().
Tutorial(name)
}@function
def example(name: str) -> dagger.LabctlContent:
return (
dag.labctl()
.tutorial(name)
)@func()
example(name: string): LabctlContent {
return dag
.labctl()
.tutorial(name)
}course() 🔗
Manage courses.
Return Type
Content !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| name | String ! | - | No description provided |
Example
dagger -m github.com/sagikazarmark/daggerverse/labctl@d8e3be0e9e1ea32a3323326366872b6d97f7648f call \
course --name stringfunc (m *MyModule) Example(name string) *dagger.LabctlContent {
return dag.
Labctl().
Course(name)
}@function
def example(name: str) -> dagger.LabctlContent:
return (
dag.labctl()
.course(name)
)@func()
example(name: string): LabctlContent {
return dag
.labctl()
.course(name)
}container() 🔗
Returns the container with the labctl binary and configuration.
Return Type
Container ! Example
dagger -m github.com/sagikazarmark/daggerverse/labctl@d8e3be0e9e1ea32a3323326366872b6d97f7648f call \
containerfunc (m *MyModule) Example() *dagger.Container {
return dag.
Labctl().
Container()
}@function
def example() -> dagger.Container:
return (
dag.labctl()
.container()
)@func()
example(): Container {
return dag
.labctl()
.container()
}challenge() 🔗
Manage challenges.
Return Type
Content !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| name | String ! | - | No description provided |
Example
dagger -m github.com/sagikazarmark/daggerverse/labctl@d8e3be0e9e1ea32a3323326366872b6d97f7648f call \
challenge --name stringfunc (m *MyModule) Example(name string) *dagger.LabctlContent {
return dag.
Labctl().
Challenge(name)
}@function
def example(name: str) -> dagger.LabctlContent:
return (
dag.labctl()
.challenge(name)
)@func()
example(name: string): LabctlContent {
return dag
.labctl()
.challenge(name)
}training() 🔗
Manage training content.
Return Type
Content !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| name | String ! | - | No description provided |
Example
dagger -m github.com/sagikazarmark/daggerverse/labctl@d8e3be0e9e1ea32a3323326366872b6d97f7648f call \
training --name stringfunc (m *MyModule) Example(name string) *dagger.LabctlContent {
return dag.
Labctl().
Training(name)
}@function
def example(name: str) -> dagger.LabctlContent:
return (
dag.labctl()
.training(name)
)@func()
example(name: string): LabctlContent {
return dag
.labctl()
.training(name)
}vendor() 🔗
Manage vendor content.
Return Type
Content !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| name | String ! | - | No description provided |
Example
dagger -m github.com/sagikazarmark/daggerverse/labctl@d8e3be0e9e1ea32a3323326366872b6d97f7648f call \
vendor --name stringfunc (m *MyModule) Example(name string) *dagger.LabctlContent {
return dag.
Labctl().
Vendor(name)
}@function
def example(name: str) -> dagger.LabctlContent:
return (
dag.labctl()
.vendor(name)
)@func()
example(name: string): LabctlContent {
return dag
.labctl()
.vendor(name)
}content() 🔗
Manage any content.
Return Type
Content !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| kind | Enum ! | - | No description provided |
| name | String ! | - | No description provided |
Example
dagger -m github.com/sagikazarmark/daggerverse/labctl@d8e3be0e9e1ea32a3323326366872b6d97f7648f call \
content --name stringfunc (m *MyModule) Example(kind , name string) *dagger.LabctlContent {
return dag.
Labctl().
Content(kind, name)
}@function
def example(kind: , name: str) -> dagger.LabctlContent:
return (
dag.labctl()
.content(kind, name)
)@func()
example(kind: , name: string): LabctlContent {
return dag
.labctl()
.content(kind, name)
}withSessionId() 🔗
Sets the session ID for labctl.
Return Type
Labctl !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| sessionId | Secret ! | - | No description provided |
Example
dagger -m github.com/sagikazarmark/daggerverse/labctl@d8e3be0e9e1ea32a3323326366872b6d97f7648f call \
with-session-id --session-id env:MYSECRETfunc (m *MyModule) Example(sessionId *dagger.Secret) *dagger.Labctl {
return dag.
Labctl().
WithSessionId(sessionId)
}@function
def example(session_id: dagger.Secret) -> dagger.Labctl:
return (
dag.labctl()
.with_session_id(session_id)
)@func()
example(sessionId: Secret): Labctl {
return dag
.labctl()
.withSessionId(sessionId)
}withAccessToken() 🔗
Sets the access token for labctl.
Return Type
Labctl !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| accessToken | Secret ! | - | No description provided |
Example
dagger -m github.com/sagikazarmark/daggerverse/labctl@d8e3be0e9e1ea32a3323326366872b6d97f7648f call \
with-access-token --access-token env:MYSECRETfunc (m *MyModule) Example(accessToken *dagger.Secret) *dagger.Labctl {
return dag.
Labctl().
WithAccessToken(accessToken)
}@function
def example(access_token: dagger.Secret) -> dagger.Labctl:
return (
dag.labctl()
.with_access_token(access_token)
)@func()
example(accessToken: Secret): Labctl {
return dag
.labctl()
.withAccessToken(accessToken)
}playground() 🔗
Manage playgrounds.
Return Type
Playground !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| name | String ! | - | No description provided |
Example
dagger -m github.com/sagikazarmark/daggerverse/labctl@d8e3be0e9e1ea32a3323326366872b6d97f7648f call \
playground --name stringfunc (m *MyModule) Example(name string) *dagger.LabctlPlayground {
return dag.
Labctl().
Playground(name)
}@function
def example(name: str) -> dagger.LabctlPlayground:
return (
dag.labctl()
.playground(name)
)@func()
example(name: string): LabctlPlayground {
return dag
.labctl()
.playground(name)
}Playground 🔗
push() 🔗
Update an existing playground.
Return Type
Container !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| file | File | - | Manifest file. |
| dir | Directory | - | Directory with the manifest file (and possibly other content files). |
Example
dagger -m github.com/sagikazarmark/daggerverse/labctl@d8e3be0e9e1ea32a3323326366872b6d97f7648f call \
playground --name string \
pushfunc (m *MyModule) Example(name string) *dagger.Container {
return dag.
Labctl().
Playground(name).
Push()
}@function
def example(name: str) -> dagger.Container:
return (
dag.labctl()
.playground(name)
.push()
)@func()
example(name: string): Container {
return dag
.labctl()
.playground(name)
.push()
}Content 🔗
push() 🔗
Push content to the content repository.
Return Type
Container !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| dir | Directory ! | - | Directory with content files. |
Example
dagger -m github.com/sagikazarmark/daggerverse/labctl@d8e3be0e9e1ea32a3323326366872b6d97f7648f call \
content --name string \
push --dir DIR_PATHfunc (m *MyModule) Example(kind , name string, dir *dagger.Directory) *dagger.Container {
return dag.
Labctl().
Content(kind, name).
Push(dir)
}@function
def example(kind: , name: str, dir: dagger.Directory) -> dagger.Container:
return (
dag.labctl()
.content(kind, name)
.push(dir)
)@func()
example(kind: , name: string, dir: Directory): Container {
return dag
.labctl()
.content(kind, name)
.push(dir)
}