Documentation
¶
Index ¶
- func ValidatePresence(err error, v any, field string) error
- type CollectionPropertyBlueprint
- type CollectionPropertyInput
- type CollectionSubfieldPropertyInput
- type CompoundError
- type ErrandTemplate
- type FormType
- type InstallTimeVerifier
- type InstanceDefinition
- type IntegerConstraints
- type JobType
- type NamedManifest
- type ProductTemplate
- func (productTemplate *ProductTemplate) FindJobTypeWithName(name string) (*JobType, int, error)
- func (productTemplate *ProductTemplate) FindPropertyBlueprintWithName(name string) (PropertyBlueprint, int, error)
- func (productTemplate *ProductTemplate) HasJobTypeWithName(name string) bool
- func (productTemplate *ProductTemplate) HasPostDeployErrandWithName(name string) bool
- type ProductVersion
- type PropertyBlueprint
- type PropertyBlueprintOption
- type PropertyBlueprints
- type PropertyInput
- type PropertyInputs
- type Release
- type ResourceDefinition
- type ResourceDefinitions
- type RuntimeConfigTemplate
- type SelectorOptionPropertyInput
- type SelectorPropertyBlueprint
- type SelectorPropertyInput
- type SelectorPropertyOptionTemplate
- type SimplePropertyBlueprint
- func (blueprint SimplePropertyBlueprint) HasDefault() bool
- func (blueprint SimplePropertyBlueprint) IsConfigurable() bool
- func (blueprint SimplePropertyBlueprint) IsOptional() bool
- func (blueprint SimplePropertyBlueprint) PropertyName() string
- func (blueprint SimplePropertyBlueprint) PropertyType() string
- type SimplePropertyInput
- type StemcellCriteria
- type Template
- type ValidationError
- type Variable
- type VerifierBlueprint
- type ZeroIfBinding
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CollectionPropertyBlueprint ¶
type CollectionPropertyBlueprint struct { SimplePropertyBlueprint `yaml:",inline"` PropertyBlueprints []SimplePropertyBlueprint `yaml:"property_blueprints"` NamedManifests []NamedManifest `yaml:"named_manifests"` }
type CollectionPropertyInput ¶
type CollectionPropertyInput struct { SimplePropertyInput `yaml:",inline"` PropertyInputs []CollectionSubfieldPropertyInput `yaml:"property_inputs"` }
func (CollectionPropertyInput) Ref ¶ added in v0.77.2
func (input CollectionPropertyInput) Ref() string
type CollectionSubfieldPropertyInput ¶
type CollectionSubfieldPropertyInput struct { SimplePropertyInput `yaml:",inline"` Slug bool `yaml:"slug"` }
type CompoundError ¶
type CompoundError []error
func (*CompoundError) Add ¶
func (ce *CompoundError) Add(err error)
func (*CompoundError) Error ¶
func (ce *CompoundError) Error() string
type ErrandTemplate ¶
type FormType ¶
type FormType struct { Verifiers []VerifierBlueprint `yaml:"verifiers,omitempty"` PropertyInputs PropertyInputs `yaml:"property_inputs"` Name string `yaml:"name"` Label string `yaml:"label"` Description string `yaml:"description"` Markdown string `yaml:"markdown,omitempty"` }
type InstallTimeVerifier ¶
type InstanceDefinition ¶
type InstanceDefinition struct { Default int `yaml:"default"` Configurable bool `yaml:"configurable"` Constraints *IntegerConstraints `yaml:"constraints,omitempty"` ZeroIf ZeroIfBinding `yaml:"zero_if,omitempty"` // TODO: schema? }
type IntegerConstraints ¶ added in v0.85.0
type IntegerConstraints struct { Min *int `yaml:"min"` Max *int `yaml:"max"` ZeroOrMin *int `yaml:"zero_or_min"` Modulo *int `yaml:"modulo"` PowerOfTwo *bool `yaml:"power_of_two"` MayOnlyIncrease *bool `yaml:"may_only_increase"` MayOnlyBeOddOrZero *bool `yaml:"may_only_be_odd_or_zero"` }
func (IntegerConstraints) CheckValue ¶ added in v0.85.0
func (constraints IntegerConstraints) CheckValue(value int) error
type JobType ¶
type JobType struct { Name string `yaml:"name"` ResourceLabel string `yaml:"resource_label"` Description string `yaml:"description,omitempty"` Manifest string `yaml:"manifest"` MaxInFlight any `yaml:"max_in_flight"` Canaries int `yaml:"canaries"` Serial bool `yaml:"serial,omitempty"` SingleAZOnly bool `yaml:"single_az_only"` Errand bool `yaml:"errand"` RunPreDeleteErrandDefault bool `yaml:"run_pre_delete_errand_default"` RunPostDeployErrandDefault bool `yaml:"run_post_deploy_errand_default"` Templates []Template `yaml:"templates"` InstanceDefinition InstanceDefinition `yaml:"instance_definition"` ResourceDefinitions []ResourceDefinition `yaml:"resource_definitions"` PropertyBlueprints PropertyBlueprints `yaml:"property_blueprints,omitempty"` RequiresProductVersions []ProductVersion `yaml:"requires_product_versions"` }
type NamedManifest ¶
type ProductTemplate ¶
type ProductTemplate struct { Name string `yaml:"name"` ProductVersion string `yaml:"product_version"` MinimumVersionForUpgrade string `yaml:"minimum_version_for_upgrade"` Label string `yaml:"label"` Rank int `yaml:"rank"` MetadataVersion string `yaml:"metadata_version"` OriginalMetadataVersion string `yaml:"original_metadata_version"` ServiceBroker bool `yaml:"service_broker"` IconImage string `yaml:"icon_image"` DeprecatedTileImage string `yaml:"deprecated_tile_image"` Cloud string `yaml:"cloud"` Network string `yaml:"network"` Serial bool `yaml:"serial"` InstallTimeVerifiers []InstallTimeVerifier `yaml:"install_time_verifiers"` // TODO: schema? BaseReleasesURL string `yaml:"base_releases_url"` Variables []Variable `yaml:"variables"` // TODO: schema? Releases []Release `yaml:"releases"` StemcellCriteria StemcellCriteria `yaml:"stemcell_criteria"` PropertyBlueprints PropertyBlueprints `yaml:"property_blueprints"` FormTypes []FormType `yaml:"form_types"` JobTypes []JobType `yaml:"job_types"` RequiresProductVersions []ProductVersion `yaml:"requires_product_versions"` PostDeployErrands []ErrandTemplate `yaml:"post_deploy_errands"` PreDeleteErrands []ErrandTemplate `yaml:"pre_delete_errands"` RuntimeConfigs []RuntimeConfigTemplate `yaml:"runtime_configs"` }
func (*ProductTemplate) FindJobTypeWithName ¶ added in v0.85.0
func (productTemplate *ProductTemplate) FindJobTypeWithName(name string) (*JobType, int, error)
func (*ProductTemplate) FindPropertyBlueprintWithName ¶ added in v0.85.0
func (productTemplate *ProductTemplate) FindPropertyBlueprintWithName(name string) (PropertyBlueprint, int, error)
func (*ProductTemplate) HasJobTypeWithName ¶ added in v0.85.0
func (productTemplate *ProductTemplate) HasJobTypeWithName(name string) bool
func (*ProductTemplate) HasPostDeployErrandWithName ¶ added in v0.85.0
func (productTemplate *ProductTemplate) HasPostDeployErrandWithName(name string) bool
type ProductVersion ¶
type PropertyBlueprint ¶
type PropertyBlueprintOption ¶
type PropertyBlueprints ¶
type PropertyBlueprints []PropertyBlueprint
func (*PropertyBlueprints) UnmarshalYAML ¶
func (pb *PropertyBlueprints) UnmarshalYAML(list *yaml.Node) error
type PropertyInput ¶
type PropertyInput interface {
Ref() string
}
type PropertyInputs ¶
type PropertyInputs []PropertyInput
func (*PropertyInputs) UnmarshalYAML ¶
func (pi *PropertyInputs) UnmarshalYAML(list *yaml.Node) error
type Release ¶
type ResourceDefinition ¶
type ResourceDefinitions ¶
type ResourceDefinitions []ResourceDefinition
ResourceDefinitions are defined in the following (private) Ops Manager code TODO: https://github.com/pivotal-cf/installation/blob/b7be08d7b50d305c08d520ee0afe81ae3a98bd9d/web/app/models/persistence/metadata/resource_definition_collection.rb
type RuntimeConfigTemplate ¶
type SelectorOptionPropertyInput ¶
type SelectorOptionPropertyInput struct { Reference string `yaml:"reference"` Label string `yaml:"label"` PropertyInputs []SimplePropertyInput `yaml:"property_inputs,omitempty"` }
type SelectorPropertyBlueprint ¶
type SelectorPropertyBlueprint struct { SimplePropertyBlueprint `yaml:",inline"` OptionTemplates []SelectorPropertyOptionTemplate `yaml:"option_templates"` }
type SelectorPropertyInput ¶
type SelectorPropertyInput struct { SimplePropertyInput `yaml:",inline"` SelectorPropertyInputs []SelectorOptionPropertyInput `yaml:"selector_property_inputs,omitempty"` }
type SelectorPropertyOptionTemplate ¶
type SelectorPropertyOptionTemplate struct { Name string `yaml:"name"` SelectValue string `yaml:"select_value"` PropertyBlueprints []SimplePropertyBlueprint `yaml:"property_blueprints"` NamedManifests []NamedManifest `yaml:"named_manifests"` }
type SimplePropertyBlueprint ¶
type SimplePropertyBlueprint struct { Name string `yaml:"name"` Type string `yaml:"type"` Default any `yaml:"default"` // TODO: schema? Constraints any `yaml:"constraints"` // TODO: schema? Options []PropertyBlueprintOption `yaml:"options"` // TODO: schema? Configurable bool `yaml:"configurable"` Optional bool `yaml:"optional"` FreezeOnDeploy bool `yaml:"freeze_on_deploy"` Unique bool `yaml:"unique"` ResourceDefinitions []ResourceDefinition `yaml:"resource_definitions"` }
func (SimplePropertyBlueprint) HasDefault ¶ added in v0.85.0
func (blueprint SimplePropertyBlueprint) HasDefault() bool
func (SimplePropertyBlueprint) IsConfigurable ¶ added in v0.85.0
func (blueprint SimplePropertyBlueprint) IsConfigurable() bool
func (SimplePropertyBlueprint) IsOptional ¶ added in v0.87.0
func (blueprint SimplePropertyBlueprint) IsOptional() bool
func (SimplePropertyBlueprint) PropertyName ¶ added in v0.77.2
func (blueprint SimplePropertyBlueprint) PropertyName() string
func (SimplePropertyBlueprint) PropertyType ¶ added in v0.85.0
func (blueprint SimplePropertyBlueprint) PropertyType() string
type SimplePropertyInput ¶
type SimplePropertyInput struct { Reference string `yaml:"reference"` Label string `yaml:"label"` Description string `yaml:"description,omitempty"` Placeholder string `yaml:"placeholder,omitempty"` }
func (SimplePropertyInput) Ref ¶ added in v0.77.2
func (input SimplePropertyInput) Ref() string
type StemcellCriteria ¶
type ValidationError ¶
func NewValidationError ¶
func NewValidationError(kind any, message string) ValidationError
func (ValidationError) Error ¶
func (ve ValidationError) Error() string
type VerifierBlueprint ¶
type ZeroIfBinding ¶
Source Files
¶
- collection_property_blueprint.go
- collection_property_input.go
- collection_subfield_property_input.go
- constraints.go
- errand_template.go
- form_type.go
- install_time_verifier.go
- instance_definition.go
- job_type.go
- named_manifest.go
- parse.go
- product_template.go
- product_version.go
- property_blueprints.go
- property_inputs.go
- release.go
- resource_definition.go
- resource_definitions.go
- runtime_config_template.go
- selector_option_property_input.go
- selector_property_blueprint.go
- selector_property_input.go
- selector_property_option_template.go
- simple_property_blueprint.go
- simple_property_input.go
- stemcell_criteria.go
- template.go
- validation_error.go
- variable.go
- verifier_blueprint.go
- zero_if_binding.go
Click to show internal directories.
Click to hide internal directories.