v1alpha1

package
v1.12.0-RC1 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 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 Builder

type Builder struct {
	// contains filtered or unexported fields
}

Builder helps to build OwnerReference

func NewBuilder

func NewBuilder() *Builder

NewBuilder returns a new instance of Builder

func NewBuilderForAPIObject

func NewBuilderForAPIObject(meta *metav1.OwnerReference) *Builder

NewBuilderForAPIObject returns a new instance of Builder for given metav1.OwnerReference

func (*Builder) Build

func (b *Builder) Build() (*metav1.OwnerReference, error)

Build builds a new instance of matav1.OwnerReference

func (*Builder) WithAPIVersion

func (b *Builder) WithAPIVersion(apiVersion string) *Builder

WithAPIVersion sets api version in OwnerReference instance

func (*Builder) WithBlockOwnerDeletionOption

func (b *Builder) WithBlockOwnerDeletionOption(blockOwnerDeletion *bool) *Builder

WithBlockOwnerDeletionOption sets BlockOwnerDeletion property in OwnerReference instance

func (*Builder) WithControllerOption

func (b *Builder) WithControllerOption(controller *bool) *Builder

WithControllerOption sets Controller property in OwnerReference instance

func (*Builder) WithKind

func (b *Builder) WithKind(kind string) *Builder

WithKind sets kind in OwnerReference instance

func (*Builder) WithName

func (b *Builder) WithName(name string) *Builder

WithName sets name in OwnerReference instance

func (*Builder) WithUID

func (b *Builder) WithUID(uid types.UID) *Builder

WithUID sets uid in OwnerReference instance

type OwnerReference

type OwnerReference struct {
	// contains filtered or unexported fields
}

OwnerReference is a wrapper over metav1.OwnerReference

func (OwnerReference) GoString

func (or OwnerReference) GoString() string

GoString implements GoStringer interface

func (OwnerReference) String

func (or OwnerReference) String() string

String implements Stringer interface

Jump to

Keyboard shortcuts

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