Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrMachineNotFound = errors.New("machine not found")
Functions ¶
func ReadConfigFile ¶
func WriteConfigFile ¶
Types ¶
type Config ¶
type Config struct { Name string `toml:"name"` Image string `toml:"image"` Machine Machine `toml:"machine"` Public PublicConfig `toml:"public,omitempty"` Replicas uint64 `toml:"replicas,omitempty"` Volumes map[string]string `toml:"volumes,omitempty"` Env map[string]string `toml:"env,omitempty"` Secrets map[string]string `toml:"secrets,omitempty"` Label map[string]string `toml:"label,omitempty"` Healthcheck HealthConfig `toml:"healthcheck,omitempty"` Deploy DeployConfig `toml:"deploy,omitempty"` }
func NewDefaultConfig ¶
func ParseConfig ¶
func (*Config) GetMachine ¶
type DeployConfig ¶
type DeployConfig struct {
Order string `toml:"order,omitempty"`
}
type Duration ¶
func (*Duration) UnmarshalText ¶
type HealthConfig ¶
type HealthConfig struct { Test []string `toml:"test,omitempty"` Interval Duration `toml:"interval,omitempty"` Timeout Duration `toml:"timeout,omitempty"` StartInterval Duration `toml:"start_interval,omitempty"` StartPeriod Duration `toml:"start_period,omitempty"` Retries int `toml:"retries,omitempty"` }
type PublicConfig ¶
Click to show internal directories.
Click to hide internal directories.