Documentation
¶
Index ¶
- func ColorizedAppPrefix(appName string) string
- func GetAppNames() []string
- func GetColorForApp(appName string) string
- func GetEURegions() []string
- func GetFlyctlCallCount() int32
- func GetMachineLogs(appName, machineID string, followFlag bool) (string, error)
- func GetUSRegions() []string
- func IncrementFlyctlCallCount() int32
- type Config
- type Event
- type Guest
- type ImageRef
- type Machine
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ColorizedAppPrefix ¶
ColorizedAppPrefix returns a colorized prefix for the app name
func GetColorForApp ¶
GetColorForApp returns a consistent color for a given app name
func GetFlyctlCallCount ¶
func GetFlyctlCallCount() int32
GetFlyctlCallCount returns the current count of flyctl calls
func GetMachineLogs ¶
GetMachineLogs gets the logs for a specific machine
func IncrementFlyctlCallCount ¶
func IncrementFlyctlCallCount() int32
IncrementFlyctlCallCount increments the flyctl call counter and returns the new value
Types ¶
type Config ¶
type Config struct {
Env map[string]string `json:"env"`
Guest Guest `json:"guest"`
Metadata map[string]string `json:"metadata"`
Services []interface{} `json:"services"` // Using interface{} as we don't need to parse this
}
Config contains machine configuration
type Event ¶
type Event struct {
Type string `json:"type"`
Status string `json:"status"`
Source string `json:"source"`
Timestamp int64 `json:"timestamp"`
Request map[string]interface{} `json:"request"` // Using interface{} as structure may vary
}
Event represents machine events
type Guest ¶
type Guest struct {
CPUKind string `json:"cpu_kind"`
CPUs int `json:"cpus"`
MemoryMB int `json:"memory_mb"`
}
Guest contains guest VM configuration
type ImageRef ¶
type ImageRef struct {
Registry string `json:"registry"`
Repository string `json:"repository"`
Tag string `json:"tag"`
Digest string `json:"digest"`
Labels map[string]string `json:"labels"`
}
ImageRef contains image reference information
type Machine ¶
type Machine struct {
ID string `json:"id"`
Name string `json:"name"`
State string `json:"state"`
Region string `json:"region"`
ImageRef ImageRef `json:"image_ref"`
Created time.Time `json:"created_at"`
Updated time.Time `json:"updated_at"`
Config Config `json:"config"`
Events []Event `json:"events"`
}
Machine represents the fly machine data structure
func GetMachineList ¶
GetMachineList gets the list of machines for a specific app
Click to show internal directories.
Click to hide internal directories.