flyio
Currently only deploys.Assumes there is a valid fly.toml in the path provided to --dir.
Installation
dagger install github.com/gerhard/daggerverse/flyio@v0.1.0Entrypoint
Return Type
Flyio Example
dagger -m github.com/gerhard/daggerverse/flyio@c64868ce068c92b698c5d83f6abd070803f67c5a call \
func (m *MyModule) Example() *dagger.Flyio {
return dag.
Flyio()
}@function
def example() -> dagger.Flyio:
return (
dag.flyio()
)@func()
example(): Flyio {
return dag
.flyio()
}Types
Flyio 🔗
deploy() 🔗
Example usage: “dagger call deploy –dir . –token env:FLY_API_TOKEN”
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| dir | Directory ! | - | No description provided |
| token | Secret ! | - | No description provided |
Example
dagger -m github.com/gerhard/daggerverse/flyio@c64868ce068c92b698c5d83f6abd070803f67c5a call \
deploy --dir DIR_PATH --token env:MYSECRETfunc (m *MyModule) Example(ctx context.Context, dir *dagger.Directory, token *dagger.Secret) string {
return dag.
Flyio().
Deploy(ctx, dir, token)
}@function
async def example(dir: dagger.Directory, token: dagger.Secret) -> str:
return await (
dag.flyio()
.deploy(dir, token)
)@func()
async example(dir: Directory, token: Secret): Promise<string> {
return dag
.flyio()
.deploy(dir, token)
}