Dagger
Search

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.0

Entrypoint

Return Type
Flyio
Example
dagger -m github.com/gerhard/daggerverse/flyio@c64868ce068c92b698c5d83f6abd070803f67c5a call \
func (m *myModule) example() *Flyio  {
	return dag.
			Flyio()
}
@function
def example() -> dag.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
NameTypeDefault ValueDescription
dirDirectory !-No description provided
tokenSecret !-No description provided
Example
dagger -m github.com/gerhard/daggerverse/flyio@c64868ce068c92b698c5d83f6abd070803f67c5a call \
 deploy --dir DIR_PATH --token env:MYSECRET
func (m *myModule) example(ctx context.Context, dir *Directory, token *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)
}