composer

package
v0.31.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 1, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Overview

Package composer contains functions for composing components within Zarf packages.

Package composer contains functions for composing components within Zarf packages.

Package composer contains functions for composing components within Zarf packages.

Package composer contains functions for composing components within Zarf packages.

Package composer contains functions for composing components within Zarf packages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompatibleComponent

func CompatibleComponent(c types.ZarfComponent, arch, flavor string) bool

CompatibleComponent determines if this component is compatible with the given create options

Types

type ImportChain

type ImportChain struct {
	// contains filtered or unexported fields
}

ImportChain is a doubly linked list of component import definitions

func NewImportChain

func NewImportChain(head types.ZarfComponent, arch, flavor string) (*ImportChain, error)

NewImportChain creates a new import chain from a component

func (*ImportChain) Compose

func (ic *ImportChain) Compose() (composed types.ZarfComponent, err error)

Compose merges the import chain into a single component fixing paths, overriding metadata, etc

func (*ImportChain) ContainsOCIImport

func (ic *ImportChain) ContainsOCIImport() bool

ContainsOCIImport returns true if the import chain contains a remote import

func (*ImportChain) MergeConstants

func (ic *ImportChain) MergeConstants(existing []types.ZarfPackageConstant) (merged []types.ZarfPackageConstant)

MergeConstants merges constants from the import chain

func (*ImportChain) MergeVariables

func (ic *ImportChain) MergeVariables(existing []types.ZarfPackageVariable) (merged []types.ZarfPackageVariable)

MergeVariables merges variables from the import chain

func (*ImportChain) Migrate

func (ic *ImportChain) Migrate(build types.ZarfBuildData) (warnings []string)

Migrate performs migrations on the import chain

func (*ImportChain) String

func (ic *ImportChain) String() string

String returns a string representation of the import chain

type Node

type Node struct {
	types.ZarfComponent
	// contains filtered or unexported fields
}

Node is a node in the import chain

func (*Node) ImportName

func (n *Node) ImportName() string

ImportName returns the name of the component to import

If the component import has a ComponentName defined, that will be used otherwise the name of the component will be used

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL