dnszone

package
v1.1.16 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2021 License: Apache-2.0 Imports: 5 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 Builder added in v1.0.5

type Builder interface {
	Build(opts ...Option) *hivev1.DNSZone

	Options(opts ...Option) Builder

	GenericOptions(opts ...generic.Option) Builder
}

func BasicBuilder added in v1.0.5

func BasicBuilder() Builder

func FullBuilder added in v1.0.5

func FullBuilder(namespace, name string, typer runtime.ObjectTyper) Builder

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 WithCondition added in v1.1.0

func WithCondition(cond hivev1.DNSZoneCondition) Option

WithCondition adds the specified condition to the DNSZone

func WithControllerOwnerReference added in v1.0.2

func WithControllerOwnerReference(owner metav1.Object) Option

WithControllerOwnerReference sets the controller owner reference to the supplied object.

func WithGCPPlatform added in v1.0.10

func WithGCPPlatform(zoneName string) Option

WithGCPPlatform will set the GCP spce and status fields non-nil and populate the status fields with the provided name for the zone.

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 WithOwnerReference added in v1.0.6

func WithOwnerReference(owner hivev1.MetaRuntimeObject) Option

WithOwnerReference sets the owner reference to the supplied object.

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(typers ...runtime.ObjectTyper) Option

WithTypeMeta populates the type meta for the object.

func WithZone added in v1.0.5

func WithZone(zone string) Option

Jump to

Keyboard shortcuts

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