gen

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bundle

func Bundle(name string, mods ...BundleModifier) *trustapi.Bundle

Bundle constructs a Bundle object with BundleModifiers which can be defined in-line. Intended for testing.

func BundleFrom

func BundleFrom(bundle *trustapi.Bundle, mods ...BundleModifier) *trustapi.Bundle

BundleFrom deep copies a Bundle object and applies the given BundleModifiers.

Types

type BundleModifier

type BundleModifier func(*trustapi.Bundle)

BundleModifier is used to modify a Bundle object in-line. Intended for testing.

func AppendBundleUsesDefaultPackage added in v0.4.0

func AppendBundleUsesDefaultPackage() BundleModifier

AppendBundleUsesDefaultPackage appends a source to the bundle which requests the default bundle package.

func SetBundleResourceVersion

func SetBundleResourceVersion(resourceVersion string) BundleModifier

SetResourceVersion sets the Bundle object's resource version as a BundleModifier.

func SetBundleStatus

func SetBundleStatus(status trustapi.BundleStatus) BundleModifier

SetBundleStatus sets the Bundle object's status as a BundleModifier.

func SetBundleTargetAdditionalFormats added in v0.5.0

func SetBundleTargetAdditionalFormats(formats trustapi.AdditionalFormats) BundleModifier

func SetBundleTargetNamespaceSelectorMatchLabels

func SetBundleTargetNamespaceSelectorMatchLabels(matchLabels map[string]string) BundleModifier

SetBundleTargetNamespaceSelectorMatchLabels sets the Bundle object's spec target namespace selector.

Jump to

Keyboard shortcuts

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