Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppConfig ¶
type AppConfig struct {
AppName string `toml:"app,omitempty" json:"app,omitempty"`
Build *Build `toml:"build,omitempty" json:"build,omitempty"`
Checks map[string]TopLevelCheck `toml:"checks,omitempty" json:"checks,omitempty"`
Env map[string]string `toml:"env,omitempty" json:"env,omitempty"`
Experimental *Experimental `toml:"experimental,omitempty" json:"experimental,omitempty"`
Files []File `toml:"files,omitempty" json:"files,omitempty"`
Mounts []Mount `toml:"mounts,omitempty" json:"mounts,omitempty"`
Services []Service `toml:"services,omitempty" json:"services,omitempty"`
Vm *Vm `toml:"vm,omitempty" json:"vm,omitempty"`
}
AppConfig is the Fly application config usually serialised to toml. The properties are generally defined in https://github.com/superfly/flyctl/blob/master/internal/appconfig/config.go#L38 but we only support a subset of these.
type Experimental ¶
type File ¶
type File struct {
GuestPath string `toml:"guest_path,omitempty" json:"guest_path,omitempty"`
LocalPath *string `toml:"local_path,omitempty" json:"local_path,omitempty"`
RawValue *string `toml:"raw_value,omitempty" json:"raw_value,omitempty"`
SecretName *string `toml:"secret_name,omitempty" json:"secret_name,omitempty"`
}
type HttpCheck ¶
type HttpCheck struct {
Headers map[string]string `toml:"headers,omitempty" json:"headers,omitempty"`
Method string `toml:"method,omitempty" json:"method,omitempty"`
Path string `toml:"path,omitempty" json:"path,omitempty"`
Protocol string `toml:"protocol,omitempty" json:"protocol,omitempty"`
TlsServerName string `toml:"tls_server_name,omitempty" json:"tls_server_name,omitempty"`
TlsSkipVerify bool `toml:"tls_skip_verify,omitempty" json:"tls_skip_verify,omitempty"`
}
type Service ¶
type Service struct {
AutoStartMachines bool `toml:"auto_start_machines,omitempty" json:"auto_start_machines,omitempty"`
AutoStopMachines string `toml:"auto_stop_machines,omitempty" json:"auto_stop_machines,omitempty"`
Concurrency map[string]interface{} `toml:"concurrency,omitempty" json:"concurrency,omitempty"`
HttpChecks []HttpCheck `toml:"http_checks,omitempty" json:"http_checks,omitempty"`
InternalPort int `toml:"internal_port,omitempty" json:"internal_port,omitempty"`
MinMachinesRunning int `toml:"min_machines_running,omitempty" json:"min_machines_running,omitempty"`
Ports []ServicePort `toml:"ports,omitempty" json:"ports,omitempty"`
Protocol string `toml:"protocol,omitempty" json:"protocol,omitempty"`
}
type ServicePort ¶
type TopLevelCheck ¶
type TopLevelCheck struct {
Headers map[string]string `toml:"headers,omitempty" json:"headers,omitempty"`
Method string `toml:"method,omitempty" json:"method,omitempty"`
Path string `toml:"path,omitempty" json:"path,omitempty"`
Port int `toml:"port,omitempty" json:"port,omitempty"`
Type string `toml:"type,omitempty" json:"type,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.