crd

package
v0.0.0-...-fc21188 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FieldSetterFunc

type FieldSetterFunc func(*Recipient) error

func GroupVersionSetter

func GroupVersionSetter(group, version string) FieldSetterFunc

func NamespaceScopedSetter

func NamespaceScopedSetter(isNamespaced bool) FieldSetterFunc

func ScopeSetter

func ScopeSetter(isNamespaced bool) FieldSetterFunc

type Recipient

type Recipient struct {
	Group, Version, Scope, Plural, Singular, Kind, ListKind string
	ShortNames                                              []string
}

func NewRecipient

func NewRecipient(group, version, plural, singular string, options ...FieldSetterFunc) (*Recipient, error)

func (*Recipient) Generate

func (recipe *Recipient) Generate() (*v1beta1.CustomResourceDefinition, error)

func (*Recipient) Parse

func (recipe *Recipient) Parse() (*bytes.Buffer, error)

Jump to

Keyboard shortcuts

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