Documentation ¶
Index ¶
- type DiskPool
- type Job
- type JobLifecycle
- type JobNetwork
- type Manifest
- func (d Manifest) DiskPool(jobName string) (DiskPool, error)
- func (d Manifest) FindJobByName(jobName string) (Job, bool)
- func (d Manifest) GetListOfTemplateReleases() (map[string]string, bool)
- func (d Manifest) JobName() string
- func (d Manifest) NetworkInterfaces(jobName string) (map[string]biproperty.Map, error)
- func (d Manifest) ResourcePool(jobName string) (ResourcePool, error)
- func (d Manifest) Stemcell(jobName string) (StemcellRef, error)
- type Network
- type NetworkDefault
- type NetworkType
- type Parser
- type ReleaseJobRef
- type ResourcePool
- type StemcellRef
- type Subnet
- type Update
- type UpdateSpec
- type Validator
- type WatchTime
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 ResourcePool string Properties biproperty.Map }
type JobLifecycle ¶
type JobLifecycle string
const ( JobLifecycleService JobLifecycle = "service" JobLifecycleErrand JobLifecycle = "errand" )
type JobNetwork ¶
type JobNetwork struct { Name string Defaults []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) GetListOfTemplateReleases ¶ added in v0.0.81
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(jobName string) (ResourcePool, error)
type Network ¶
type Network struct { Name string Type NetworkType CloudProperties biproperty.Map DNS []string Subnets []Subnet }
func (Network) Interface ¶
func (n Network) Interface(staticIPs []string, networkDefaults []NetworkDefault) (biproperty.Map, error)
Interface returns a property map representing a generic network interface. Expected Keys: ip, type, cloud properties. Optional Keys: netmask, gateway, dns
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.