deployment

package
v0.0.0-...-9a89ba0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 1, 2014 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Deployment

type Deployment struct {
	Name            string
	Properties      map[string]interface{}
	Mbus            string
	Registry        Registry
	AgentEnvService string
	SSHTunnel       SSHTunnel
	Jobs            []Job
	Networks        []Network
	ResourcePools   []ResourcePool
	Update          Update
}

func (Deployment) NetworksSpec

func (d Deployment) NetworksSpec(jobName string) (map[string]interface{}, error)

type Job

type Job struct {
	Name          string
	Instances     int
	Templates     []ReleaseJobRef
	Networks      []JobNetwork
	RawProperties map[interface{}]interface{} `yaml:"properties"`
}

func (*Job) Properties

func (j *Job) Properties() (map[string]interface{}, error)

type JobNetwork

type JobNetwork struct {
	Name      string
	StaticIPs []string `yaml:"static_ips"`
}

type ManifestParser

type ManifestParser interface {
	Parse(manifestPath string) (Deployment, error)
}

func NewBoshDeploymentParser

func NewBoshDeploymentParser(fs boshsys.FileSystem) ManifestParser

func NewCpiDeploymentParser

func NewCpiDeploymentParser(fs boshsys.FileSystem) ManifestParser

type Network

type Network struct {
	Name               string                      `yaml:"name"`
	Type               NetworkType                 `yaml:"type"`
	RawCloudProperties map[interface{}]interface{} `yaml:"cloud_properties"`
	IP                 string                      `yaml:"ip"`
}

func (Network) CloudProperties

func (n Network) CloudProperties() (map[string]interface{}, error)

func (Network) Spec

func (n Network) Spec() (map[string]interface{}, error)

type NetworkType

type NetworkType string
const (
	Dynamic NetworkType = "dynamic"
	Manual  NetworkType = "manual"
	VIP     NetworkType = "vip"
)

func (NetworkType) String

func (n NetworkType) String() string

type Registry

type Registry struct {
	Username string
	Password string
	Host     string
	Port     int
}

type ReleaseJobRef

type ReleaseJobRef struct {
	Name    string
	Release string
}

type ResourcePool

type ResourcePool struct {
	Name               string                      `yaml:"name"`
	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 SSHTunnel

type SSHTunnel struct {
	User       string
	Host       string
	Port       int
	Password   string
	PrivateKey string `yaml:"private_key"`
}

type Update

type Update struct {
	UpdateWatchTime WatchTime
}

type UpdateSpec

type UpdateSpec struct {
	UpdateWatchTime *string `yaml:"update_watch_time"`
}

type WatchTime

type WatchTime struct {
	Start int
	End   int
}

func NewWatchTime

func NewWatchTime(timeRange string) (WatchTime, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL