Dagger
Search

labctl

No long description provided.

Installation

dagger install github.com/sagikazarmark/daggerverse/labctl@v0.0.1

Entrypoint

Return Type
Labctl !
Arguments
NameTypeDefault ValueDescription
versionString -Version (release tag) of labctl to download from GitHub. Defaults to "latest".
containerContainer -The container to use as the base for the labctl installation. Defaults to "alpine:latest".
sessionIdSecret -The session ID for the labctl.
accessTokenSecret -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 \
 container
func (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
NameTypeDefault ValueDescription
sessionIdSecret !-No description provided
Example
dagger -m github.com/sagikazarmark/daggerverse/labctl@518db8970a935a853a4500cdf411a8b25be233a4 call \
 with-session-id --session-id env:MYSECRET
func (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
NameTypeDefault ValueDescription
accessTokenSecret !-No description provided
Example
dagger -m github.com/sagikazarmark/daggerverse/labctl@518db8970a935a853a4500cdf411a8b25be233a4 call \
 with-access-token --access-token env:MYSECRET
func (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)
}