daggy
No long description provided.
Installation
dagger install github.com/shykes/daggerverse/daggy@v0.3.1
Entrypoint
Return Type
Daggy
Example
dagger -m github.com/shykes/daggerverse/daggy@a91cdf4fcfa20323a982955e53287419d6b06cf3 call \
func (m *myModule) example() *Daggy {
return dag.
Daggy()
}
@function
def example() -> dag.Daggy:
return (
dag.daggy()
)
@func()
example(): Daggy {
return dag
.daggy()
}
Types
Daggy 🔗
do() 🔗
Tell Daggy to do something
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
prompt | String ! | - | No description provided |
token | Secret | - | No description provided |
base | Container | - | No description provided |
Example
dagger -m github.com/shykes/daggerverse/daggy@a91cdf4fcfa20323a982955e53287419d6b06cf3 call \
do --prompt string
func (m *myModule) example(ctx context.Context, prompt string) string {
return dag.
Daggy().
Do(ctx, prompt)
}
@function
async def example(prompt: str) -> str:
return await (
dag.daggy()
.do(prompt)
)
@func()
async example(prompt: string): Promise<string> {
return dag
.daggy()
.do(prompt)
}
server() 🔗
Return Type
Service !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
token | Secret ! | - | No description provided |
base | Container | - | No description provided |
Example
dagger -m github.com/shykes/daggerverse/daggy@a91cdf4fcfa20323a982955e53287419d6b06cf3 call \
server --token env:MYSECRET
func (m *myModule) example(token *Secret) *Service {
return dag.
Daggy().
Server(token)
}
@function
def example(token: dagger.Secret) -> dagger.Service:
return (
dag.daggy()
.server(token)
)
@func()
example(token: Secret): Service {
return dag
.daggy()
.server(token)
}
debug() 🔗
Return Type
Terminal !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
token | Secret | - | No description provided |
base | Container | - | No description provided |
Example
dagger -m github.com/shykes/daggerverse/daggy@a91cdf4fcfa20323a982955e53287419d6b06cf3 call \
debug
func (m *myModule) example() *Terminal {
return dag.
Daggy().
Debug()
}
@function
def example() -> dag.Terminal:
return (
dag.daggy()
.debug()
)
@func()
example(): Terminal {
return dag
.daggy()
.debug()
}
container() 🔗
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
token | Secret | - | No description provided |
base | Container | - | No description provided |
Example
dagger -m github.com/shykes/daggerverse/daggy@a91cdf4fcfa20323a982955e53287419d6b06cf3 call \
container
func (m *myModule) example() *Container {
return dag.
Daggy().
Container()
}
@function
def example() -> dagger.Container:
return (
dag.daggy()
.container()
)
@func()
example(): Container {
return dag
.daggy()
.container()
}