labctl
No long description provided.
Installation
dagger install github.com/sagikazarmark/daggerverse/labctl@v0.0.1Entrypoint
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@518db8970a935a853a4500cdf411a8b25be233a4 call \
func (m *MyModule) Example() *dagger.Labctl {
return dag.
Labctl()
}@function
def example() -> dagger.Labctl:
return (
dag.labctl()
)@func()
example(): Labctl {
return dag
.labctl()
}Types
Labctl 🔗
container() 🔗
A container with labctl installed.
Return Type
Container ! Example
dagger -m github.com/sagikazarmark/daggerverse/labctl@518db8970a935a853a4500cdf411a8b25be233a4 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@518db8970a935a853a4500cdf411a8b25be233a4 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@518db8970a935a853a4500cdf411a8b25be233a4 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)
}