dnszone

package
v1.0.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(opts ...Option) *hivev1.DNSZone

Build runs each of the functions passed in to generate the object.

Types

type Option

type Option func(*hivev1.DNSZone)

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

func Generic

func Generic(opt generic.Option) Option

Generic allows common functions applicable to all objects to be used as Options to Build

func WithControllerOwnerReference added in v1.0.2

func WithControllerOwnerReference(owner metav1.Object) Option

WithControllerOwnerReference sets the owner reference to the supplied object.

func WithIncrementedResourceVersion added in v1.0.2

func WithIncrementedResourceVersion() Option

WithIncrementedResourceVersion increments by one the resource version on the supplied object. If the resource version is not an integer, then the new resource version will be set to 1.

func WithLabelOwner added in v1.0.2

func WithLabelOwner(owner *hivev1.ClusterDeployment) Option

WithLabelOwner sets the labels so that the specific ClusterDeployment is the labeled as the owner.

func WithResourceVersion added in v1.0.2

func WithResourceVersion(resourceVersion string) Option

WithResourceVersion sets the specified resource version on the supplied object.

func WithTypeMeta added in v1.0.2

func WithTypeMeta() Option

WithTypeMeta populates the type meta for the object.

Jump to

Keyboard shortcuts

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