Documentation ¶
Index ¶
Constants ¶
View Source
const ( NetworkTypeManual = bpdepman.NetworkTypeManual NetworkTypeLocal = bpdepman.NetworkTypeLocal NetworkTypeDynamic = bpdepman.NetworkTypeDynamic NetworkTypeVip = bpdepman.NetworkTypeVip )
Variables ¶
View Source
var NetworkTypes = []string{NetworkTypeManual, NetworkTypeLocal, NetworkTypeDynamic, NetworkTypeVip}
Functions ¶
This section is empty.
Types ¶
type Deployment ¶
type Instance ¶
type Instance struct { Index int // Denormalized values to avoid passing dep/job/instance tuple JobName string DeploymentName string // Watch time will vary depending if an instance is a canary WatchTime bpdepman.WatchTime Properties Properties NetworkAssociations []NetworkAssociation // Represents current state of an associated VM CurrentState boshaction.GetStateV1ApplySpec }
func (Instance) DNDRecordName ¶
func (i Instance) DNDRecordName(na NetworkAssociation) string
func (Instance) NetworkConfigurationForNetworkAssociation ¶
func (i Instance) NetworkConfigurationForNetworkAssociation(na NetworkAssociation) NetworkConfiguration
type ManifestReader ¶
type ManifestReader struct {
// contains filtered or unexported fields
}
func NewManifestReader ¶
func NewManifestReader( path string, fs boshsys.FileSystem, logger boshlog.Logger, ) ManifestReader
func (ManifestReader) Close ¶
func (r ManifestReader) Close() error
func (ManifestReader) Read ¶
func (r ManifestReader) Read() (Deployment, error)
type NetworkAssociation ¶
type NetworkConfiguration ¶
type Properties ¶
type Properties map[string]interface{}
type ReaderFactory ¶
type ReaderFactory struct {
// contains filtered or unexported fields
}
func NewReaderFactory ¶
func NewReaderFactory( fs boshsys.FileSystem, logger boshlog.Logger, ) ReaderFactory
func (ReaderFactory) NewManifestReader ¶
func (rf ReaderFactory) NewManifestReader(path string) ManifestReader
type SemanticValidator ¶
type SemanticValidator struct {
// contains filtered or unexported fields
}
SemanticValidator validates deployment to determine if it represents a meaningful state. e.g. - is each job template associated with a release?
- are there enough static ips for each job instance?
func NewSemanticValidator ¶
func NewSemanticValidator(deployment Deployment) SemanticValidator
func (SemanticValidator) Validate ¶
func (v SemanticValidator) Validate() error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.