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: 3 Imported by: 1

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 ObjectMeta

func NewBuilder

func NewBuilder() *Builder

NewBuilder returns a new instance of Builder

func NewBuilderForAPIObject

func NewBuilderForAPIObject(meta *metav1.ObjectMeta) *Builder

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

func (*Builder) Build

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

Build builds a new instance of metav1.ObjectMeta

func (*Builder) WithAnnotations

func (b *Builder) WithAnnotations(annotations map[string]string) *Builder

WithAnnotations adds annotations in ObjectMeta instance

func (*Builder) WithGenerateName

func (b *Builder) WithGenerateName(generateName string) *Builder

WithGenerateName adds GenerateName in ObjectMeta instance

func (*Builder) WithLabels

func (b *Builder) WithLabels(labels map[string]string) *Builder

WithLabels adds labels in ObjectMeta instance

func (*Builder) WithName

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

WithName adds name in ObjectMeta instance

func (*Builder) WithNamespace

func (b *Builder) WithNamespace(namespace string) *Builder

WithNamespace adds namespace in ObjectMeta instance

func (*Builder) WithOwnerReferences

func (b *Builder) WithOwnerReferences(ownerReferences ...metav1.OwnerReference) *Builder

WithOwnerReferences owner references in ObjectMeta instance

type ObjectMeta

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

ObjectMeta is a wrapper over metav1.ObjectMeta

func (ObjectMeta) GoString

func (om ObjectMeta) GoString() string

GoString implements GoStringer interface

func (ObjectMeta) String

func (om ObjectMeta) String() string

String implements Stringer interface

Jump to

Keyboard shortcuts

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