flyio
A generated module for Flyio functions.
Installation
dagger install github.com/KGB33/daggerverse.git/flyio@418745ae11eb88f36632c8eb64bd4a7413ade97dEntrypoint
Return Type
Flyio !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| flyApiToken | Secret | null | No description provided |
Example
dagger -m github.com/KGB33/daggerverse.git/flyio@418745ae11eb88f36632c8eb64bd4a7413ade97d 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 🔗
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@418745ae11eb88f36632c8eb64bd4a7413ade97d call \
basefunc (m *MyModule) Example() *dagger.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
| Name | Type | Default Value | Description |
|---|---|---|---|
| flyToml | File ! | - | A file. |
Example
dagger -m github.com/KGB33/daggerverse.git/flyio@418745ae11eb88f36632c8eb64bd4a7413ade97d call \
launch --fly-toml file:pathfunc (m *MyModule) Example(ctx context.Context, flyToml *dagger.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
| Name | Type | Default Value | Description |
|---|---|---|---|
| domain | String ! | - | No description provided |
Example
dagger -m github.com/KGB33/daggerverse.git/flyio@418745ae11eb88f36632c8eb64bd4a7413ade97d call \
cert-add --domain stringfunc (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
| Name | Type | Default Value | Description |
|---|---|---|---|
| domain | String ! | - | No description provided |
Example
dagger -m github.com/KGB33/daggerverse.git/flyio@418745ae11eb88f36632c8eb64bd4a7413ade97d call \
cert-check --domain stringfunc (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
| Name | Type | Default Value | Description |
|---|---|---|---|
| version | String ! | "latest" | No description provided |
Example
dagger -m github.com/KGB33/daggerverse.git/flyio@418745ae11eb88f36632c8eb64bd4a7413ade97d call \
flyctl --version stringfunc (m *MyModule) Example(version string) *dagger.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)
}