v1alpha1

package
v1.12.1 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 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 TypeMeta

func NewBuilder

func NewBuilder() *Builder

NewBuilder returns a new instance of Builder

func NewBuilderForAPIObject

func NewBuilderForAPIObject(meta *metav1.TypeMeta) *Builder

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

func (*Builder) Build

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

Build returns a new instance of metav1.TypeMeta

func (*Builder) WithAPIVersion

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

WithAPIVersion sets APIVersion property in TypeMeta instance

func (*Builder) WithKind

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

WithKind sets Kind property in TypeMeta instance

type TypeMeta

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

TypeMeta is a wrapper over metav1.TypeMeta

func (TypeMeta) GoString

func (tm TypeMeta) GoString() string

GoString implements GoStringer interface

func (TypeMeta) String

func (tm TypeMeta) String() string

String implements Stringer interface

Jump to

Keyboard shortcuts

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