labctl
No long description provided.
Installation
dagger install github.com/sagikazarmark/daggerverse/labctl@v0.0.3Entrypoint
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@dc5b75f84f0c79834278fe55048b1db834da0acc 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 🔗
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@dc5b75f84f0c79834278fe55048b1db834da0acc 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)
}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@dc5b75f84f0c79834278fe55048b1db834da0acc 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@dc5b75f84f0c79834278fe55048b1db834da0acc 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@dc5b75f84f0c79834278fe55048b1db834da0acc 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)
}container() 🔗
Returns the container with the labctl binary and configuration.
Return Type
Container ! Example
dagger -m github.com/sagikazarmark/daggerverse/labctl@dc5b75f84f0c79834278fe55048b1db834da0acc 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@dc5b75f84f0c79834278fe55048b1db834da0acc 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)
}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@dc5b75f84f0c79834278fe55048b1db834da0acc 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)
}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@dc5b75f84f0c79834278fe55048b1db834da0acc 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@dc5b75f84f0c79834278fe55048b1db834da0acc 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)
}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@dc5b75f84f0c79834278fe55048b1db834da0acc 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)
}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@dc5b75f84f0c79834278fe55048b1db834da0acc call \
course --name string \
push --dir DIR_PATHfunc (m *MyModule) Example(ctx context.Context, name string, dir *dagger.Directory) string {
return dag.
Labctl().
Course(name).
Push(ctx, dir)
}@function
async def example(name: str, dir: dagger.Directory) -> str:
return await (
dag.labctl()
.course(name)
.push(dir)
)@func()
async example(name: string, dir: Directory): Promise<string> {
return dag
.labctl()
.course(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@dc5b75f84f0c79834278fe55048b1db834da0acc 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()
}