Documentation
¶
Index ¶
- Variables
- func MergeAdditionalProductProperties(configFile io.Reader, additionalProperties map[string]any) (io.Reader, error)
- type CommandRunner
- type EnvironmentSharingCommandRunner
- type FileIO
- type OMError
- type OMRunner
- func (o OMRunner) FindStagedProduct(productName string) (StagedProduct, error)
- func (o OMRunner) GetManifest(productGUID string) (map[string]any, error)
- func (o OMRunner) ResetAndConfigure(productName string, productVersion string, configJSON string) error
- func (o OMRunner) StagedProducts() ([]StagedProduct, error)
- type OMRunnerI
- type OMService
- type OpsManifestRunner
- type OpsManifestRunnerI
- type OpsManifestService
- type ProductConfiguration
- type RenderService
- type StagedProduct
Constants ¶
This section is empty.
Variables ¶
View Source
var RealIO = fileIO{}
Functions ¶
func MergeAdditionalProductProperties ¶
func MergeAdditionalProductProperties(configFile io.Reader, additionalProperties map[string]any) (io.Reader, error)
MergeAdditionalProductProperties takes product properties from the provided reader and merges them with data from the additionalProperties parameter. It also does some validation to ensure required fields are set.
Types ¶
type CommandRunner ¶
type EnvironmentSharingCommandRunner ¶
type EnvironmentSharingCommandRunner struct {
// contains filtered or unexported fields
}
func NewEnvironmentSharingCommandRunner ¶
func NewEnvironmentSharingCommandRunner(env []string) *EnvironmentSharingCommandRunner
type OMError ¶
type OMError struct { // Messages: reconsider, the key here may change depending on the endpoint Messages []string `json:"base"` }
type OMRunner ¶
type OMRunner struct { FileIO FileIO // contains filtered or unexported fields }
func NewOMRunner ¶
func NewOMRunner(cmdRunner CommandRunner, fileIO FileIO) OMRunner
func (OMRunner) FindStagedProduct ¶
func (o OMRunner) FindStagedProduct(productName string) (StagedProduct, error)
func (OMRunner) GetManifest ¶
func (OMRunner) ResetAndConfigure ¶
func (OMRunner) StagedProducts ¶
func (o OMRunner) StagedProducts() ([]StagedProduct, error)
type OMService ¶
type OMService struct {
// contains filtered or unexported fields
}
func NewOMServiceWithRunner ¶
type OpsManifestRunner ¶
type OpsManifestRunner struct { FileIO FileIO // contains filtered or unexported fields }
func NewOpsManifestRunner ¶
func NewOpsManifestRunner(cmdRunner CommandRunner, fileIO FileIO, additionalArgs ...string) OpsManifestRunner
func (OpsManifestRunner) GetManifest ¶
func (o OpsManifestRunner) GetManifest(productProperties, metadataFilePath string) (map[string]any, error)
type OpsManifestRunnerI ¶
type OpsManifestService ¶
type OpsManifestService struct {
// contains filtered or unexported fields
}
func NewOpsManifestServiceWithRunner ¶
func NewOpsManifestServiceWithRunner(opsManifestRunner OpsManifestRunnerI, fileIO FileIO) (*OpsManifestService, error)
func (OpsManifestService) RenderManifest ¶
type ProductConfiguration ¶
type ProductConfiguration struct { ProductName string `yaml:"product-name,omitempty"` ProductProperties map[string]any `yaml:"product-properties"` // remove omitempty NetworkProperties map[string]any `yaml:"network-properties,omitempty"` ResourceConfigProperties map[string]config.ResourceConfig `yaml:"resource-config,omitempty"` ErrandConfigs map[string]config.ErrandConfig `yaml:"errand-config,omitempty"` SyslogProperties map[string]any `yaml:"syslog-properties,omitempty"` }
ProductConfiguration is a data structure for configuring a tile. Formerly, we relied on om/config.ProductConfiguration for marshalling/unmarshalling the product configuration file. Unfortunately, they now set product-properties to omit-empty, which causes Ops Manifest to error when product-properties is set to an empty hash.
To work around this, we now have our own copy of ProductConfiguration without omit-empty on product-properties
type RenderService ¶
type StagedProduct ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.