policy

package
v0.38.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNoUpdateStrategy is an update error when the update strategy is not
	// specified.
	ErrNoUpdateStrategy = errors.New("no update strategy")
	// ErrUnsupportedUpdateStrategy is an update error when the provided update
	// strategy is not supported.
	ErrUnsupportedUpdateStrategy = errors.New("unsupported update strategy")
)

Functions

func ApplyPolicies

func ApplyPolicies(ctx context.Context, workDir string, obj *imagev1.ImageUpdateAutomation, policies []imagev1_reflect.ImagePolicy) (update.ResultV2, error)

ApplyPolicies applies the given set of policies on the source present in the workDir based on the provided ImageUpdateAutomation configuration.

Types

This section is empty.

Jump to

Keyboard shortcuts

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