flyio
A generated module for Flyio functions.
Installation
dagger install github.com/KGB33/daggerverse.git/flyio@6215d32c483c8b796cb19b01afd4ee17ad04c24eEntrypoint
Return Type
Flyio !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| flyApiToken | Secret | null | No description provided |
| flyToml | File | null | No description provided |
Example
dagger -m github.com/KGB33/daggerverse.git/flyio@6215d32c483c8b796cb19b01afd4ee17ad04c24e 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@6215d32c483c8b796cb19b01afd4ee17ad04c24e 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()
}deploy() 🔗
deployes the provided fly.toml.
Return Type
String ! Example
dagger -m github.com/KGB33/daggerverse.git/flyio@6215d32c483c8b796cb19b01afd4ee17ad04c24e call \
deployfunc (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
| Name | Type | Default Value | Description |
|---|---|---|---|
| domain | String ! | - | No description provided |
Example
dagger -m github.com/KGB33/daggerverse.git/flyio@6215d32c483c8b796cb19b01afd4ee17ad04c24e 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 certs check.
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| domain | String ! | - | No description provided |
Example
dagger -m github.com/KGB33/daggerverse.git/flyio@6215d32c483c8b796cb19b01afd4ee17ad04c24e 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)
}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-listfunc (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
| Name | Type | Default Value | Description |
|---|---|---|---|
| version | String ! | "latest" | No description provided |
Example
dagger -m github.com/KGB33/daggerverse.git/flyio@6215d32c483c8b796cb19b01afd4ee17ad04c24e 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)
}