Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Job ¶
type Job struct { Name string Instances int Lifecycle JobLifecycle Templates []ReleaseJobRef Networks []JobNetwork PersistentDisk int PersistentDiskPool string Properties biproperty.Map }
type JobLifecycle ¶
type JobLifecycle string
const ( JobLifecycleService JobLifecycle = "service" JobLifecycleErrand JobLifecycle = "errand" )
type JobNetwork ¶
type JobNetwork struct { Name string Default []NetworkDefault StaticIPs []string }
type Manifest ¶
type Manifest struct { Name string Properties biproperty.Map 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. TODO: refactor to NetworkInterfaces(Job) and use FindJobByName before using (then remove error)
func (Manifest) ResourcePool ¶
func (d Manifest) ResourcePool() ResourcePool
type Network ¶
type Network struct { Name string Type NetworkType CloudProperties biproperty.Map DNS []string Subnets []Subnet }
type NetworkDefault ¶
type NetworkDefault string
const ( NetworkDefaultDNS NetworkDefault = "dns" NetworkDefaultGateway NetworkDefault = "gateway" )
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 Network string CloudProperties biproperty.Map Env biproperty.Map Stemcell StemcellRef }
type StemcellRef ¶
func (StemcellRef) Description ¶
func (s StemcellRef) Description() string
func (StemcellRef) GetSHA1 ¶
func (s StemcellRef) GetSHA1() string
func (StemcellRef) GetURL ¶
func (s StemcellRef) GetURL() string
type Subnet ¶
type Subnet struct { Range string Gateway string DNS []string CloudProperties biproperty.Map }
type UpdateSpec ¶
type UpdateSpec struct {
UpdateWatchTime *string `yaml:"update_watch_time"`
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.