Documentation ¶
Index ¶
- func AddResourceOpsFiles(jobName string, job jobtype, opsFiles map[string][]Ops)
- func AddResourceVars(jobName string, job jobtype, vars map[string]interface{})
- func CollectionPropertyVars(propertyName string, subProperties []PropertyMetadata, ...)
- func CreateErrandConfig(metadata *Metadata) map[string]Errand
- func CreateErrandVars(metadata *Metadata) map[string]interface{}
- func CreateNetworkOpsFiles(metadata *Metadata) (map[string][]Ops, error)
- func CreateOpsFileName(propertyKey string) string
- func CreateProductProperties(metadata *Metadata) (map[string]PropertyValue, error)
- func CreateProductPropertiesFeaturesOpsFiles(metadata *Metadata) (map[string][]Ops, error)
- func CreateProductPropertiesOptionalOpsFiles(metadata *Metadata) (map[string][]Ops, error)
- func CreateProductPropertiesVars(metadata *Metadata) (map[string]interface{}, error)
- func CreateResourceConfig(metadata *Metadata) map[string]Resource
- func CreateResourceOpsFiles(metadata *Metadata) (map[string][]Ops, error)
- func CreateResourceVars(metadata *Metadata) map[string]interface{}
- func DefaultsArrayToCollectionArray(propertyName string, defaultValue interface{}, ...) ([]map[string]SimpleType, error)
- func DefaultsToArray(propertyName string, subProperties []PropertyMetadata) map[string]SimpleType
- func IsDefaultAnArray(defaultValue interface{}) bool
- type CertificateValue
- type CertificateValueHolder
- type CollectionsPropertiesValueHolder
- type Displayer
- type Errand
- type ErrandMetadata
- type Executor
- type FormType
- type InstanceDefinition
- type InstanceType
- type JobType
- type Metadata
- func (m *Metadata) Errands() []ErrandMetadata
- func (m *Metadata) GetJob(jobName string) (*JobType, error)
- func (m *Metadata) GetPropertyMetadata(propertyName string) (*PropertyMetadata, error)
- func (m *Metadata) ProductName() string
- func (m *Metadata) ProductVersion() string
- func (m *Metadata) Properties() []Property
- func (m *Metadata) UsesServiceNetwork() bool
- type MultiSelectorValue
- type Name
- type NetworkProperties
- type Ops
- type OpsNameValue
- type OpsValue
- type OpsValueType
- type Option
- type OptionTemplate
- type PersistentDisk
- type Property
- type PropertyMetadata
- func (p *PropertyMetadata) DataType() string
- func (p *PropertyMetadata) DefaultSelector() string
- func (p *PropertyMetadata) DefaultSelectorPath(property string) string
- func (p *PropertyMetadata) GetPropertyMetadata(propertyName string) *PropertyMetadata
- func (p *PropertyMetadata) IsAZList() bool
- func (p *PropertyMetadata) IsBool() bool
- func (p *PropertyMetadata) IsCertificate() bool
- func (p *PropertyMetadata) IsCollection() bool
- func (p *PropertyMetadata) IsConfigurable() bool
- func (p *PropertyMetadata) IsDropdown() bool
- func (p *PropertyMetadata) IsExplicityConfigurable() bool
- func (p *PropertyMetadata) IsInt() bool
- func (p *PropertyMetadata) IsMultiSelect() bool
- func (p *PropertyMetadata) IsRequired() bool
- func (p *PropertyMetadata) IsRequiredCollection() bool
- func (p *PropertyMetadata) IsSecret() bool
- func (p *PropertyMetadata) IsSelector() bool
- func (p *PropertyMetadata) IsSimpleCredentials() bool
- func (p *PropertyMetadata) IsString() bool
- func (p *PropertyMetadata) IsUUID() bool
- func (p *PropertyMetadata) OptionTemplate(selectorReference string) (*OptionTemplate, error)
- func (p *PropertyMetadata) PropertyType(propertyName string) PropertyValue
- type PropertyValue
- type ProvidesVersion
- type Resource
- type ResourceDefinition
- type SecretValue
- type SecretValueHolder
- type SelectorProperty
- type SelectorValue
- type SimpleBoolean
- type SimpleCredentialValue
- type SimpleCredentialValueHolder
- type SimpleFloat
- type SimpleInteger
- type SimpleString
- type SimpleType
- type SimpleValue
- type StringOpsValue
- type Template
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddResourceOpsFiles ¶
func AddResourceVars ¶
func CollectionPropertyVars ¶ added in v0.0.14
func CollectionPropertyVars(propertyName string, subProperties []PropertyMetadata, vars map[string]interface{})
func CreateErrandConfig ¶
func CreateErrandVars ¶
func CreateNetworkOpsFiles ¶
func CreateOpsFileName ¶ added in v0.0.14
func CreateProductProperties ¶
func CreateProductProperties(metadata *Metadata) (map[string]PropertyValue, error)
func CreateResourceConfig ¶
func CreateResourceOpsFiles ¶
func CreateResourceVars ¶
func DefaultsArrayToCollectionArray ¶ added in v0.0.14
func DefaultsArrayToCollectionArray(propertyName string, defaultValue interface{}, subProperties []PropertyMetadata) ([]map[string]SimpleType, error)
func DefaultsToArray ¶ added in v0.0.14
func DefaultsToArray(propertyName string, subProperties []PropertyMetadata) map[string]SimpleType
func IsDefaultAnArray ¶ added in v0.0.14
func IsDefaultAnArray(defaultValue interface{}) bool
Types ¶
type CertificateValue ¶
type CertificateValue struct { CertPem string `yaml:"cert_pem"` CertPrivateKey string `yaml:"private_key_pem"` }
func NewCertificateValue ¶ added in v0.0.14
func NewCertificateValue(propertyName string) *CertificateValue
func (*CertificateValue) IsSelector ¶
func (s *CertificateValue) IsSelector() bool
func (*CertificateValue) Parameters ¶
func (s *CertificateValue) Parameters() []string
type CertificateValueHolder ¶
type CertificateValueHolder struct {
Value *CertificateValue `yaml:"value"`
}
func (*CertificateValueHolder) IsSelector ¶
func (s *CertificateValueHolder) IsSelector() bool
func (*CertificateValueHolder) Parameters ¶
func (s *CertificateValueHolder) Parameters() []string
type CollectionsPropertiesValueHolder ¶
type CollectionsPropertiesValueHolder struct {
Value []map[string]SimpleType `yaml:"value"`
}
func (*CollectionsPropertiesValueHolder) IsSelector ¶
func (s *CollectionsPropertiesValueHolder) IsSelector() bool
func (*CollectionsPropertiesValueHolder) Parameters ¶
func (s *CollectionsPropertiesValueHolder) Parameters() []string
type ErrandMetadata ¶
type ErrandMetadata struct {
Name string `yaml:"name"`
}
type Executor ¶
type Executor struct {
// contains filtered or unexported fields
}
func NewExecutor ¶
func (*Executor) CreateTemplate ¶
type InstanceDefinition ¶
type InstanceType ¶
type InstanceType struct {
ID interface{} `yaml:"id"`
}
type JobType ¶
type JobType struct { Name string `yaml:"name"` PropertyMetadata []PropertyMetadata `yaml:"property_blueprints"` ResourceDefinitions []ResourceDefinition `yaml:"resource_definitions"` InstanceDefinition InstanceDefinition `yaml:"instance_definition"` }
func (*JobType) GetPropertyMetadata ¶
func (j *JobType) GetPropertyMetadata(propertyName string) (*PropertyMetadata, error)
func (*JobType) HasPersistentDisk ¶
func (*JobType) InstanceDefinitionConfigurable ¶
func (*JobType) IsIncluded ¶
type Metadata ¶
type Metadata struct { Name string `yaml:"name"` Version string `yaml:"product_version"` FormTypes []FormType `yaml:"form_types"` PropertyMetadata []PropertyMetadata `yaml:"property_blueprints"` JobTypes []JobType `yaml:"job_types"` ProvidesVersions []ProvidesVersion `yaml:"provides_product_versions"` PostDeployErrands []ErrandMetadata `yaml:"post_deploy_errands"` PreDeleteErrands []ErrandMetadata `yaml:"pre_delete_errands"` }
func NewMetadata ¶
func (*Metadata) Errands ¶
func (m *Metadata) Errands() []ErrandMetadata
func (*Metadata) GetPropertyMetadata ¶
func (m *Metadata) GetPropertyMetadata(propertyName string) (*PropertyMetadata, error)
func (*Metadata) ProductName ¶ added in v0.0.5
func (*Metadata) ProductVersion ¶ added in v0.0.5
func (*Metadata) Properties ¶
func (*Metadata) UsesServiceNetwork ¶
type MultiSelectorValue ¶ added in v0.0.11
type MultiSelectorValue struct {
Value []string `yaml:"value"`
}
func (*MultiSelectorValue) IsSelector ¶ added in v0.0.11
func (s *MultiSelectorValue) IsSelector() bool
func (*MultiSelectorValue) Parameters ¶ added in v0.0.11
func (s *MultiSelectorValue) Parameters() []string
type NetworkProperties ¶
type NetworkProperties struct { Network *Name `yaml:"network,omitempty"` ServiceNetwork *Name `yaml:"service_network,omitempty"` OtherAvailabilityZones []Name `yaml:"other_availability_zones"` SingletonAvailabilityZone *Name `yaml:"singleton_availability_zone"` }
func CreateNetworkProperties ¶
func CreateNetworkProperties(metadata metadata) *NetworkProperties
type Ops ¶
type Ops struct { Type string `yaml:"type"` Path string `yaml:"path"` Value OpsValueType `yaml:"value,omitempty"` }
type OpsNameValue ¶
type OpsNameValue struct {
Value string `yaml:"name"`
}
func (*OpsNameValue) Parameters ¶
func (n *OpsNameValue) Parameters() []string
type OpsValueType ¶
type OpsValueType interface {
Parameters() []string
}
func CollectionOpsFile ¶ added in v0.0.14
func CollectionOpsFile(numOfElements int, propertyName string, subProperties []PropertyMetadata) OpsValueType
type OptionTemplate ¶
type OptionTemplate struct { Name string `yaml:"name"` SelectValue string `yaml:"select_value"` PropertyMetadata []PropertyMetadata `yaml:"property_blueprints"` }
type PersistentDisk ¶
type PersistentDisk struct {
Size interface{} `yaml:"size_mb"`
}
type Property ¶
type Property struct { Description string `yaml:"description"` Label string `yaml:"label"` Placeholder string `yaml:"placeholder"` Reference string `yaml:"reference"` Selectors []SelectorProperty `yaml:"selector_property_inputs"` }
type PropertyMetadata ¶
type PropertyMetadata struct { Configurable string `yaml:"configurable"` Default interface{} `yaml:"default"` Optional bool `yaml:"optional"` Name string `yaml:"name"` Type string `yaml:"type"` Options []Option `yaml:"options"` OptionTemplates []OptionTemplate `yaml:"option_templates"` PropertyMetadata []PropertyMetadata `yaml:"property_blueprints"` }
func SelectorMetadata ¶ added in v0.0.14
func SelectorMetadata(optionTemplates []OptionTemplate, selector string) ([]PropertyMetadata, error)
func SelectorMetadataBySelectValue ¶ added in v0.0.14
func SelectorMetadataBySelectValue(optionTemplates []OptionTemplate, selector string) ([]PropertyMetadata, error)
SelectorMetadataBySelectValue - uses the option template SelectValue properties of each OptionTemplate to perform the property medata selection
func (*PropertyMetadata) DataType ¶
func (p *PropertyMetadata) DataType() string
func (*PropertyMetadata) DefaultSelector ¶
func (p *PropertyMetadata) DefaultSelector() string
func (*PropertyMetadata) DefaultSelectorPath ¶
func (p *PropertyMetadata) DefaultSelectorPath(property string) string
func (*PropertyMetadata) GetPropertyMetadata ¶ added in v0.0.15
func (p *PropertyMetadata) GetPropertyMetadata(propertyName string) *PropertyMetadata
func (*PropertyMetadata) IsAZList ¶
func (p *PropertyMetadata) IsAZList() bool
func (*PropertyMetadata) IsBool ¶
func (p *PropertyMetadata) IsBool() bool
func (*PropertyMetadata) IsCertificate ¶
func (p *PropertyMetadata) IsCertificate() bool
func (*PropertyMetadata) IsCollection ¶
func (p *PropertyMetadata) IsCollection() bool
func (*PropertyMetadata) IsConfigurable ¶ added in v0.0.13
func (p *PropertyMetadata) IsConfigurable() bool
func (*PropertyMetadata) IsDropdown ¶
func (p *PropertyMetadata) IsDropdown() bool
func (*PropertyMetadata) IsExplicityConfigurable ¶ added in v0.0.13
func (p *PropertyMetadata) IsExplicityConfigurable() bool
func (*PropertyMetadata) IsInt ¶
func (p *PropertyMetadata) IsInt() bool
func (*PropertyMetadata) IsMultiSelect ¶
func (p *PropertyMetadata) IsMultiSelect() bool
func (*PropertyMetadata) IsRequired ¶
func (p *PropertyMetadata) IsRequired() bool
func (*PropertyMetadata) IsRequiredCollection ¶
func (p *PropertyMetadata) IsRequiredCollection() bool
func (*PropertyMetadata) IsSecret ¶
func (p *PropertyMetadata) IsSecret() bool
func (*PropertyMetadata) IsSelector ¶
func (p *PropertyMetadata) IsSelector() bool
func (*PropertyMetadata) IsSimpleCredentials ¶
func (p *PropertyMetadata) IsSimpleCredentials() bool
func (*PropertyMetadata) IsString ¶
func (p *PropertyMetadata) IsString() bool
func (*PropertyMetadata) IsUUID ¶ added in v0.0.15
func (p *PropertyMetadata) IsUUID() bool
func (*PropertyMetadata) OptionTemplate ¶
func (p *PropertyMetadata) OptionTemplate(selectorReference string) (*OptionTemplate, error)
func (*PropertyMetadata) PropertyType ¶
func (p *PropertyMetadata) PropertyType(propertyName string) PropertyValue
type PropertyValue ¶
func CollectionPropertyType ¶ added in v0.0.14
func CollectionPropertyType(propertyName string, defaultValue interface{}, subProperties []PropertyMetadata) (PropertyValue, error)
type ProvidesVersion ¶
type Resource ¶
type Resource struct { InstanceType InstanceType `yaml:"instance_type,omitempty"` Instances interface{} `yaml:"instances,omitempty"` PersistentDisk *PersistentDisk `yaml:"persistent_disk,omitempty"` }
func CreateResource ¶
type ResourceDefinition ¶
type SecretValue ¶
type SecretValue struct {
Value string `yaml:"secret"`
}
func (*SecretValue) IsSelector ¶
func (s *SecretValue) IsSelector() bool
func (*SecretValue) Parameters ¶
func (s *SecretValue) Parameters() []string
type SecretValueHolder ¶
type SecretValueHolder struct {
Value *SecretValue `yaml:"value"`
}
func (*SecretValueHolder) IsSelector ¶
func (s *SecretValueHolder) IsSelector() bool
func (*SecretValueHolder) Parameters ¶
func (s *SecretValueHolder) Parameters() []string
type SelectorProperty ¶
type SelectorValue ¶
type SelectorValue struct {
Value string `yaml:"value"`
}
func (*SelectorValue) IsSelector ¶
func (s *SelectorValue) IsSelector() bool
func (*SelectorValue) Parameters ¶
func (s *SelectorValue) Parameters() []string
type SimpleBoolean ¶ added in v0.0.9
type SimpleBoolean bool
func (SimpleBoolean) IsSelector ¶ added in v0.0.9
func (s SimpleBoolean) IsSelector() bool
func (SimpleBoolean) Parameters ¶ added in v0.0.9
func (s SimpleBoolean) Parameters() []string
type SimpleCredentialValue ¶
type SimpleCredentialValueHolder ¶
type SimpleCredentialValueHolder struct {
Value *SimpleCredentialValue `yaml:"value"`
}
func (*SimpleCredentialValueHolder) IsSelector ¶
func (s *SimpleCredentialValueHolder) IsSelector() bool
func (*SimpleCredentialValueHolder) Parameters ¶
func (s *SimpleCredentialValueHolder) Parameters() []string
type SimpleFloat ¶ added in v0.0.16
type SimpleFloat float64
func (SimpleFloat) IsSelector ¶ added in v0.0.16
func (s SimpleFloat) IsSelector() bool
func (SimpleFloat) Parameters ¶ added in v0.0.16
func (s SimpleFloat) Parameters() []string
type SimpleInteger ¶ added in v0.0.9
type SimpleInteger int
func (SimpleInteger) IsSelector ¶ added in v0.0.9
func (s SimpleInteger) IsSelector() bool
func (SimpleInteger) Parameters ¶ added in v0.0.9
func (s SimpleInteger) Parameters() []string
type SimpleString ¶
type SimpleString string
func (SimpleString) IsSelector ¶
func (s SimpleString) IsSelector() bool
func (SimpleString) Parameters ¶
func (s SimpleString) Parameters() []string
type SimpleType ¶
type SimpleValue ¶
type SimpleValue struct {
Value string `yaml:"value"`
}
func (*SimpleValue) IsSelector ¶
func (s *SimpleValue) IsSelector() bool
func (*SimpleValue) Parameters ¶
func (s *SimpleValue) Parameters() []string
type StringOpsValue ¶
type StringOpsValue string
func (StringOpsValue) Parameters ¶
func (n StringOpsValue) Parameters() []string
type Template ¶
type Template struct { ProductName string `yaml:"product-name"` NetworkProperties *NetworkProperties `yaml:"network-properties"` ProductProperties map[string]PropertyValue `yaml:"product-properties"` ResourceConfig map[string]Resource `yaml:"resource-config,omitempty"` ErrandConfig map[string]Errand `yaml:"errand-config,omitempty"` }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.