labctl
No long description provided.
Installation
dagger install github.com/sagikazarmark/daggerverse/labctl@v0.0.2Entrypoint
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@a1474ad5efbcc8da15aa6a01b2619db700af8535 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
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 moduleEntrypoint
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 moduleTypes
Labctl 🔗
container() 🔗
Returns the container with the labctl binary and configuration.
Return Type
Container ! Example
dagger -m github.com/sagikazarmark/daggerverse/labctl@a1474ad5efbcc8da15aa6a01b2619db700af8535 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()
}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@a1474ad5efbcc8da15aa6a01b2619db700af8535 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@a1474ad5efbcc8da15aa6a01b2619db700af8535 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@a1474ad5efbcc8da15aa6a01b2619db700af8535 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)
}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@a1474ad5efbcc8da15aa6a01b2619db700af8535 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)
}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@a1474ad5efbcc8da15aa6a01b2619db700af8535 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)
}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@a1474ad5efbcc8da15aa6a01b2619db700af8535 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)
}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@a1474ad5efbcc8da15aa6a01b2619db700af8535 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@a1474ad5efbcc8da15aa6a01b2619db700af8535 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 🔗
push() 🔗
Push content to the content repository.
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| dir | Directory ! | - | Directory with content files. |
Example
dagger -m github.com/sagikazarmark/daggerverse/labctl@a1474ad5efbcc8da15aa6a01b2619db700af8535 call \
vendor --name string \
push --dir DIR_PATHfunc (m *MyModule) Example(ctx context.Context, name string, dir *dagger.Directory) string {
return dag.
Labctl().
Vendor(name).
Push(ctx, dir)
}@function
async def example(name: str, dir: dagger.Directory) -> str:
return await (
dag.labctl()
.vendor(name)
.push(dir)
)@func()
async example(name: string, dir: Directory): Promise<string> {
return dag
.labctl()
.vendor(name)
.push(dir)
}Playground 🔗
push() 🔗
Update an existing playground.
Return Type
String !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@a1474ad5efbcc8da15aa6a01b2619db700af8535 call \
playground --name string \
pushfunc (m *MyModule) Example(ctx context.Context, name string) string {
return dag.
Labctl().
Playground(name).
Push(ctx)
}@function
async def example(name: str) -> str:
return await (
dag.labctl()
.playground(name)
.push()
)@func()
async example(name: string): Promise<string> {
return dag
.labctl()
.playground(name)
.push()
}