filters

package
v0.42.2 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: Apache-2.0 Imports: 13 Imported by: 4

Documentation

Overview

Package filters contains core implementations of the ComponentFilterStrategy interface.

Package filters contains core implementations of the ComponentFilterStrategy interface.

Package filters contains core implementations of the ComponentFilterStrategy interface.

Package filters contains core implementations of the ComponentFilterStrategy interface.

Package filters contains core implementations of the ComponentFilterStrategy interface.

Package filters contains core implementations of the ComponentFilterStrategy interface.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMultipleSameGroup    = fmt.Errorf("cannot specify multiple components from the same group")
	ErrNoDefaultOrSelection = fmt.Errorf("no default or selected component found")
	ErrNotFound             = fmt.Errorf("no compatible components found")
	ErrSelectionCanceled    = fmt.Errorf("selection canceled")
)

Errors for the deployment filter.

View Source
var ErrLocalOSRequired = errors.New("localOS is required")

ErrLocalOSRequired is returned when localOS is not set.

Functions

This section is empty.

Types

type ComponentFilterStrategy

type ComponentFilterStrategy interface {
	Apply(v1alpha1.ZarfPackage) ([]v1alpha1.ZarfComponent, error)
}

ComponentFilterStrategy is a strategy interface for filtering components.

func ByDifferentialData

func ByDifferentialData(diffData *types.DifferentialData) ComponentFilterStrategy

ByDifferentialData filters any images and repos already present in the reference package components.

func ByLocalOS

func ByLocalOS(localOS string) ComponentFilterStrategy

ByLocalOS creates a new filter that filters components based on local (runtime) OS.

func BySelectState

func BySelectState(optionalComponents string) ComponentFilterStrategy

BySelectState creates a new simple included filter.

func Combine

Combine creates a new filter that applies a sequence of filters.

func Empty

Empty returns a filter that does nothing.

func ForDeploy

func ForDeploy(optionalComponents string, isInteractive bool) ComponentFilterStrategy

ForDeploy creates a new deployment filter.

Jump to

Keyboard shortcuts

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