generic

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(metav1.Object)

Option defines a function signature for any function that wants to be passed into Build

func WithAnnotationsPopulated

func WithAnnotationsPopulated() Option

WithAnnotationsPopulated ensures that object.Annotations is not nil.

func WithControllerOwnerReference

func WithControllerOwnerReference(owner metav1.Object) Option

WithControllerOwnerReference sets the owner reference to the supplied object.

func WithLabel

func WithLabel(key, value string) Option

WithLabel sets the specified label on the supplied object.

func WithName

func WithName(name string) Option

WithName sets the object.Name field when building an object with Build.

func WithNamePostfix

func WithNamePostfix(postfix string) Option

WithNamePostfix appends the string passed in to the object.Name field when building an with Build.

func WithNamespace

func WithNamespace(namespace string) Option

WithNamespace sets the object.Namespace field when building an object with Build.

Jump to

Keyboard shortcuts

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