Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DiskPool ¶
type DiskPool struct { Name string `yaml:"name"` DiskSize int `yaml:"disk_size"` RawCloudProperties map[interface{}]interface{} `yaml:"cloud_properties"` }
func (DiskPool) CloudProperties ¶
type Job ¶
type Job struct { Name string Instances int Lifecycle JobLifecycle Templates []ReleaseJobRef Networks []JobNetwork PersistentDisk int `yaml:"persistent_disk"` PersistentDiskPool string `yaml:"persistent_disk_pool"` RawProperties map[interface{}]interface{} `yaml:"properties"` }
func (*Job) Properties ¶
type JobLifecycle ¶
type JobLifecycle string
const ( JobLifecycleService JobLifecycle = "service" JobLifecycleErrand JobLifecycle = "errand" )
type JobNetwork ¶
type JobNetwork struct { Name string Default []NetworkDefault StaticIPs []string `yaml:"static_ips"` }
type Manifest ¶
type Manifest struct { Name string RawProperties map[interface{}]interface{} Jobs []Job Networks []Network DiskPools []DiskPool ResourcePools []ResourcePool Update Update }
func (Manifest) NetworkInterfaces ¶
NetworkInterfaces returns a map of network names to network interfaces. We can't use map[string]NetworkInterface, because it's impossible to down-cast to what the cloud client requires.
func (Manifest) Properties ¶
type Network ¶
type Network struct { Name string `yaml:"name"` Type NetworkType `yaml:"type"` RawCloudProperties map[interface{}]interface{} `yaml:"cloud_properties"` IP string `yaml:"ip"` Netmask string `yaml:"netmask"` Gateway string `yaml:"gateway"` DNS []string `yaml:"dns"` }
func (Network) CloudProperties ¶
func (Network) Interface ¶
func (n Network) Interface() (NetworkInterface, error)
type NetworkDefault ¶
type NetworkDefault string
const ( NetworkDefaultDNS NetworkDefault = "dns" NetworkDefaultGateway NetworkDefault = "gateway" )
type NetworkInterface ¶
type NetworkInterface map[string]interface{}
type NetworkType ¶
type NetworkType string
const ( Dynamic NetworkType = "dynamic" Manual NetworkType = "manual" VIP NetworkType = "vip" )
func (NetworkType) String ¶
func (n NetworkType) String() string
type ReleaseJobRef ¶
type ResourcePool ¶
type ResourcePool struct { Name string `yaml:"name"` Network string `yaml:"network"` RawCloudProperties map[interface{}]interface{} `yaml:"cloud_properties"` RawEnv map[interface{}]interface{} `yaml:"env"` }
func (ResourcePool) CloudProperties ¶
func (rp ResourcePool) CloudProperties() (map[string]interface{}, error)
func (ResourcePool) Env ¶
func (rp ResourcePool) Env() (map[string]interface{}, error)
type UpdateSpec ¶
type UpdateSpec struct {
UpdateWatchTime *string `yaml:"update_watch_time"`
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.