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 ¶
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 SetBundleTargetNamespaceSelectorMatchLabels ¶
func SetBundleTargetNamespaceSelectorMatchLabels(matchLabels map[string]string) BundleModifier
SetBundleTargetNamespaceSelectorMatchLabels sets the Bundle object's spec target namespace selector.
Click to show internal directories.
Click to hide internal directories.