Documentation ¶
Index ¶
- func Build(opts ...Option) *hivev1.DNSZone
- type Builder
- type Option
- func Generic(opt generic.Option) Option
- func WithControllerOwnerReference(owner metav1.Object) Option
- func WithGCPPlatform(zoneName string) Option
- func WithIncrementedResourceVersion() Option
- func WithLabelOwner(owner *hivev1.ClusterDeployment) Option
- func WithOwnerReference(owner hivev1.MetaRuntimeObject) Option
- func WithResourceVersion(resourceVersion string) Option
- func WithTypeMeta(typers ...runtime.ObjectTyper) Option
- func WithZone(zone string) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 ¶
Option defines a function signature for any function that wants to be passed into Build
func Generic ¶
Generic allows common functions applicable to all objects to be used as Options to Build
func WithControllerOwnerReference ¶ added in v1.0.2
WithControllerOwnerReference sets the controller owner reference to the supplied object.
func WithGCPPlatform ¶ added in v1.0.10
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
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.