flyio
A generated module for Flyio functions.
Installation
dagger install github.com/KGB33/daggerverse.git/flyio@5ccffcf5fc0538a2a2f018abbae7cad1a3079361
Entrypoint
Return Type
Flyio !
Arguments
Name | Type | Description |
---|---|---|
flyApiToken | Secret | No description provided |
flyToml | File | No description provided |
Example
dagger -m github.com/KGB33/daggerverse.git/flyio@5ccffcf5fc0538a2a2f018abbae7cad1a3079361 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@5ccffcf5fc0538a2a2f018abbae7cad1a3079361 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@5ccffcf5fc0538a2a2f018abbae7cad1a3079361 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
Name | Type | Default Value | Description |
---|---|---|---|
domain | String ! | - | No description provided |
Example
dagger -m github.com/KGB33/daggerverse.git/flyio@5ccffcf5fc0538a2a2f018abbae7cad1a3079361 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
Name | Type | Default Value | Description |
---|---|---|---|
domain | String ! | - | No description provided |
Example
dagger -m github.com/KGB33/daggerverse.git/flyio@5ccffcf5fc0538a2a2f018abbae7cad1a3079361 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
Name | Type | Default Value | Description |
---|---|---|---|
version | String ! | "latest" | No description provided |
Example
dagger -m github.com/KGB33/daggerverse.git/flyio@5ccffcf5fc0538a2a2f018abbae7cad1a3079361 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)
}