Dagger
Search

flyio

A generated module for Flyio functions.

Installation

dagger install github.com/KGB33/daggerverse/flyio@418745ae11eb88f36632c8eb64bd4a7413ade97d

Entrypoint

Return Type
Flyio !
Arguments
NameTypeDefault ValueDescription
flyApiTokenSecret nullNo description provided
Example
dagger -m github.com/KGB33/daggerverse/flyio@418745ae11eb88f36632c8eb64bd4a7413ade97d 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 🔗

base() 🔗

A simple container with the FLY_API_TOKEN environment variable set and ‘flyctl’ installed.

Return Type
Container !
Example
dagger -m github.com/KGB33/daggerverse/flyio@418745ae11eb88f36632c8eb64bd4a7413ade97d call \
 base
func (m *myModule) example() *Container  {
	return dag.
			Flyio().
			Base()
}
@function
def example() -> dagger.Container:
	return (
		dag.flyio()
		.base()
	)
@func()
example(): Container {
	return dag
		.flyio()
		.base()
}

launch() 🔗

Launches the provided fly.toml.

Return Type
String !
Arguments
NameTypeDefault ValueDescription
flyTomlFile !-A file.
Example
dagger -m github.com/KGB33/daggerverse/flyio@418745ae11eb88f36632c8eb64bd4a7413ade97d call \
 launch --fly-toml file:path
func (m *myModule) example(ctx context.Context, flyToml *File) string  {
	return dag.
			Flyio().
			Launch(ctx, flyToml)
}
@function
async def example(fly_toml: dagger.File) -> str:
	return await (
		dag.flyio()
		.launch(fly_toml)
	)
@func()
async example(flyToml: File): Promise<string> {
	return dag
		.flyio()
		.launch(flyToml)
}

certAdd() 🔗

Adds a fly cert for the provided domain, then returns a json string to verify the cert.

Return Type
String !
Arguments
NameTypeDefault ValueDescription
domainString !-No description provided
Example
dagger -m github.com/KGB33/daggerverse/flyio@418745ae11eb88f36632c8eb64bd4a7413ade97d call \
 cert-add --domain string
func (m *myModule) example(ctx context.Context, domain string) string  {
	return dag.
			Flyio().
			CertAdd(ctx, domain)
}
@function
async def example(domain: str) -> str:
	return await (
		dag.flyio()
		.cert_add(domain)
	)
@func()
async example(domain: string): Promise<string> {
	return dag
		.flyio()
		.certAdd(domain)
}

certCheck() 🔗

Returns a json string from fly cert check.

Return Type
String !
Arguments
NameTypeDefault ValueDescription
domainString !-No description provided
Example
dagger -m github.com/KGB33/daggerverse/flyio@418745ae11eb88f36632c8eb64bd4a7413ade97d call \
 cert-check --domain string
func (m *myModule) example(ctx context.Context, domain string) string  {
	return dag.
			Flyio().
			CertCheck(ctx, domain)
}
@function
async def example(domain: str) -> str:
	return await (
		dag.flyio()
		.cert_check(domain)
	)
@func()
async example(domain: string): Promise<string> {
	return dag
		.flyio()
		.certCheck(domain)
}

flyctl() 🔗

Returns the flyctl file from Fly.io

Return Type
File !
Arguments
NameTypeDefault ValueDescription
versionString !"latest"No description provided
Example
dagger -m github.com/KGB33/daggerverse/flyio@418745ae11eb88f36632c8eb64bd4a7413ade97d call \
 flyctl --version string
func (m *myModule) example(version string) *File  {
	return dag.
			Flyio().
			Flyctl(version)
}
@function
def example(version: str) -> dagger.File:
	return (
		dag.flyio()
		.flyctl(version)
	)
@func()
example(version: string): File {
	return dag
		.flyio()
		.flyctl(version)
}