Dagger
Search

workspace

No long description provided.

Installation

dagger install github.com/shykes/dagger/modules/evals/workspace@465f335907e475822f8b47f83cadc2d58a91b6c1

Entrypoint

Return Type
Workspace !
Arguments
NameTypeDefault ValueDescription
busterString !-A dummy arg just to prevent deduping telemetry across attempts.
Example
dagger -m github.com/shykes/dagger/modules/evals/workspace@465f335907e475822f8b47f83cadc2d58a91b6c1 call \
 --buster string
func (m *MyModule) Example(buster string) *dagger.Workspace  {
	return dag.
			Workspace(buster)
}
@function
def example(buster: str) -> dagger.Workspace:
	return (
		dag.workspace(buster)
	)
@func()
example(buster: string): Workspace {
	return dag
		.workspace(buster)
}

Types

Workspace 🔗

facts() 🔗

Return Type
[String ! ] !
Example
dagger -m github.com/shykes/dagger/modules/evals/workspace@465f335907e475822f8b47f83cadc2d58a91b6c1 call \
 --buster string facts
func (m *MyModule) Example(ctx context.Context, buster string) []string  {
	return dag.
			Workspace(buster).
			Facts(ctx)
}
@function
async def example(buster: str) -> List[str]:
	return await (
		dag.workspace(buster)
		.facts()
	)
@func()
async example(buster: string): Promise<string[]> {
	return dag
		.workspace(buster)
		.facts()
}

record() 🔗

Record an interesting fact.

Return Type
Workspace !
Arguments
NameTypeDefault ValueDescription
factString !-No description provided
Example
dagger -m github.com/shykes/dagger/modules/evals/workspace@465f335907e475822f8b47f83cadc2d58a91b6c1 call \
 --buster string record --fact string
func (m *MyModule) Example(buster string, fact string) *dagger.Workspace  {
	return dag.
			Workspace(buster).
			Record(fact)
}
@function
def example(buster: str, fact: str) -> dagger.Workspace:
	return (
		dag.workspace(buster)
		.record(fact)
	)
@func()
example(buster: string, fact: string): Workspace {
	return dag
		.workspace(buster)
		.record(fact)
}

nextFact() 🔗

Find the next available fact.

Return Type
String !
Example
dagger -m github.com/shykes/dagger/modules/evals/workspace@465f335907e475822f8b47f83cadc2d58a91b6c1 call \
 --buster string next-fact
func (m *MyModule) Example(ctx context.Context, buster string) string  {
	return dag.
			Workspace(buster).
			NextFact(ctx)
}
@function
async def example(buster: str) -> str:
	return await (
		dag.workspace(buster)
		.next_fact()
	)
@func()
async example(buster: string): Promise<string> {
	return dag
		.workspace(buster)
		.nextFact()
}