Documentation ¶
Index ¶
- Variables
- func AttachCluster(ctx context.Context, params AttachParams) error
- func CreateCluster(ctx context.Context, org *fly.Organization, region *fly.Region, ...) (err error)
- func ExecOnLeader(ctx context.Context, client *flaps.Client, command string) error
- func ExecOnMachine(ctx context.Context, client *flaps.Client, machineId, command string) error
- func IsFlex(machine *fly.Machine) bool
- func MachineVMSizes() []fly.VMSize
- func New() *cobra.Command
- func UnregisterMember(ctx context.Context, app *fly.AppCompact, machine *fly.Machine) error
- type AttachParams
- type ClusterParams
- type PostgresConfiguration
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Duration10s, _ = time.ParseDuration("10s")
Duration15s, _ = time.ParseDuration("15s")
CheckPathConnection = "/flycheck/connection"
CheckPathRole = "/flycheck/role"
CheckPathVm = "/flycheck/vm"
)
Functions ¶
func AttachCluster ¶ added in v0.0.421
func AttachCluster(ctx context.Context, params AttachParams) error
AttachCluster is mean't to be called from an external package.
func CreateCluster ¶ added in v0.0.421
func CreateCluster(ctx context.Context, org *fly.Organization, region *fly.Region, params *ClusterParams) (err error)
CreateCluster creates a Postgres cluster with an optional name. The name will be prompted for if not supplied.
func ExecOnLeader ¶ added in v0.2.100
Runs a command on the leader of the named cluster.
func ExecOnMachine ¶ added in v0.2.100
Runs a command on the specified machine ID in the named app.
func MachineVMSizes ¶ added in v0.0.388
machineVMSizes represents the available VM configurations for Machines.
func UnregisterMember ¶ added in v0.0.451
Types ¶
type AttachParams ¶ added in v0.0.421
type ClusterParams ¶ added in v0.0.421
Click to show internal directories.
Click to hide internal directories.