Dagger
Search

flyio

A generated module for Flyio functions.

Installation

dagger install github.com/KGB33/daggerverse.git/flyio@6215d32c483c8b796cb19b01afd4ee17ad04c24e

Entrypoint

Return Type
Flyio !
Arguments
NameTypeDescription
flyApiTokenSecret No description provided
flyTomlFile No description provided
Example
dagger -m github.com/KGB33/daggerverse.git/flyio@6215d32c483c8b796cb19b01afd4ee17ad04c24e 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.git/flyio@6215d32c483c8b796cb19b01afd4ee17ad04c24e 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()
}

deploy() 🔗

deployes the provided fly.toml.

Return Type
String !
Example
dagger -m github.com/KGB33/daggerverse.git/flyio@6215d32c483c8b796cb19b01afd4ee17ad04c24e call \
 deploy
func (m *myModule) example(ctx context.Context) string  {
	return dag.
			Flyio().
			Deploy(ctx)
}
@function
async def example() -> str:
	return await (
		dag.flyio()
		.deploy()
	)
@func()
async example(): Promise<string> {
	return dag
		.flyio()
		.deploy()
}

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.git/flyio@6215d32c483c8b796cb19b01afd4ee17ad04c24e 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 certs check.

Return Type
String !
Arguments
NameTypeDefault ValueDescription
domainString !-No description provided
Example
dagger -m github.com/KGB33/daggerverse.git/flyio@6215d32c483c8b796cb19b01afd4ee17ad04c24e 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)
}

ipList() 🔗

Returns a json string with the provided IP addresses.

Return Type
String !
Example
dagger -m github.com/KGB33/daggerverse.git/flyio@6215d32c483c8b796cb19b01afd4ee17ad04c24e call \
 ip-list
func (m *myModule) example(ctx context.Context) string  {
	return dag.
			Flyio().
			IpList(ctx)
}
@function
async def example() -> str:
	return await (
		dag.flyio()
		.ip_list()
	)
@func()
async example(): Promise<string> {
	return dag
		.flyio()
		.ipList()
}

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.git/flyio@6215d32c483c8b796cb19b01afd4ee17ad04c24e 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)
}