Documentation ¶
Index ¶
- func GetBlueprintDefinitionFromInstallationTemplate(inst *lsv1alpha1.Installation, subInstTmpl *lsv1alpha1.InstallationTemplate, ...) (*lsv1alpha1.BlueprintDefinition, *lsv1alpha1.ComponentDescriptorDefinition, ...)
- type Operation
- func (o *Operation) Ensure(ctx context.Context, subInstCache *lsv1alpha1.SubInstCache) error
- func (o *Operation) GetSubInstallations(ctx context.Context, inst *lsv1alpha1.Installation, ...) (map[string]*lsv1alpha1.Installation, error)
- func (o *Operation) ValidateSubinstallations(installationTmpl []*lsv1alpha1.InstallationTemplate) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBlueprintDefinitionFromInstallationTemplate ¶
func GetBlueprintDefinitionFromInstallationTemplate( inst *lsv1alpha1.Installation, subInstTmpl *lsv1alpha1.InstallationTemplate, componentVersion model.ComponentVersion, repositoryContext *types.UnstructuredTypedObject, overwriter componentoverwrites.Overwriter) (*lsv1alpha1.BlueprintDefinition, *lsv1alpha1.ComponentDescriptorDefinition, error)
GetBlueprintDefinitionFromInstallationTemplate returns a Blueprint and a ComponentDescriptor from a subinstallation
Types ¶
type Operation ¶
type Operation struct {
*installations.Operation
}
Operation contains all subinstallation operations
func New ¶
func New(op *installations.Operation) *Operation
New creates a new subinstallation operation
func (*Operation) Ensure ¶
func (o *Operation) Ensure(ctx context.Context, subInstCache *lsv1alpha1.SubInstCache) error
Ensure ensures that all referenced definitions are mapped to a sub-installation.
func (*Operation) GetSubInstallations ¶
func (o *Operation) GetSubInstallations(ctx context.Context, inst *lsv1alpha1.Installation, subInstCache *lsv1alpha1.SubInstCache, readID read_write_layer.ReadID) (map[string]*lsv1alpha1.Installation, error)
GetSubInstallations returns a map of all subinstallations indexed by the unique blueprint ref name.
func (*Operation) ValidateSubinstallations ¶
func (o *Operation) ValidateSubinstallations(installationTmpl []*lsv1alpha1.InstallationTemplate) error
ValidateSubinstallations validates the installation templates in context of the current blueprint.
Click to show internal directories.
Click to hide internal directories.