v1

package
v0.0.0-...-0bdd209 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Group                   string = "crdexample.io"
	GroupVersion            string = "v1"
	CRDSpecPath             string = "github.com/ligato/crd-example/pkg/apis" + Group
	CRDExampleSingular      string = "crdexample"
	CRDExamplePlural        string = CRDExampleSingular + "s"
	CRDExampleEmbedSingular string = "crdexampleembed"
	CRDExampleEmbedPlural   string = CRDExampleEmbedSingular + "s"
)

CRD Constants

Variables

View Source
var (
	// SchemeBuilder is used outside this file
	// TODO: move SchemeBuilder with zz_generated.deepcopy.go to k8s.io/api.
	// localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes.
	SchemeBuilder runtime.SchemeBuilder

	// AddToScheme is used outside this file
	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var (
	CRDExampleTypeName      = reflect.TypeOf(CrdExample{}).Name()
	FullCRDExampleName      = CRDSpecPath + "/" + GroupVersion + "." + CRDExampleTypeName
	CRDExampleEmbedTypeName = reflect.TypeOf(CrdExampleEmbed{}).Name()
	FullCRDExampleEmbedName = CRDSpecPath + "/" + GroupVersion + "." + CRDExampleEmbedTypeName
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: Group, Version: GroupVersion}

SchemeGroupVersion is the version of the schema

Functions

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type CrdExample

type CrdExample struct {
	meta.TypeMeta   `json:",inline"`
	meta.ObjectMeta `json:"metadata,omitempty"`
	Spec            crdexample.CrdExample `json:"spec"`
	Status          CrdExampleStatus      `json:"status,omitempty"`
}

CrdExample CRD +genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +k8s:openapi-gen=true

func (*CrdExample) DeepCopy

func (in *CrdExample) DeepCopy() *CrdExample

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CrdExample.

func (*CrdExample) DeepCopyInto

func (in *CrdExample) DeepCopyInto(out *CrdExample)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*CrdExample) DeepCopyObject

func (in *CrdExample) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type CrdExampleEmbed

type CrdExampleEmbed struct {
	meta.TypeMeta   `json:",inline"`
	meta.ObjectMeta `json:"metadata,omitempty"`
	Spec            crdexample.CrdExample_CrdExampleEmbed `json:"spec"`
	Status          CrdExampleEmbedStatus                 `json:"status,omitempty"`
}

CrdExampleEmbed CRD +genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +k8s:openapi-gen=true

func (*CrdExampleEmbed) DeepCopy

func (in *CrdExampleEmbed) DeepCopy() *CrdExampleEmbed

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CrdExampleEmbed.

func (*CrdExampleEmbed) DeepCopyInto

func (in *CrdExampleEmbed) DeepCopyInto(out *CrdExampleEmbed)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*CrdExampleEmbed) DeepCopyObject

func (in *CrdExampleEmbed) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type CrdExampleEmbedList

type CrdExampleEmbedList struct {
	meta.TypeMeta `json:",inline"`
	// +optional
	meta.ListMeta `json:"metadata,omitempty"`
	Items         []CrdExampleEmbed `json:"items"`
}

CrdExampleEmbedList is the list schema for this CRD -genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +k8s:openapi-gen=true

func (*CrdExampleEmbedList) DeepCopy

func (in *CrdExampleEmbedList) DeepCopy() *CrdExampleEmbedList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CrdExampleEmbedList.

func (*CrdExampleEmbedList) DeepCopyInto

func (in *CrdExampleEmbedList) DeepCopyInto(out *CrdExampleEmbedList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*CrdExampleEmbedList) DeepCopyObject

func (in *CrdExampleEmbedList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type CrdExampleEmbedStatus

type CrdExampleEmbedStatus struct {
	State   string `json:"state,omitempty"`
	Message string `json:"message,omitempty"`
}

CrdExampleEmbedStatus is the status schema for this CRD

func (*CrdExampleEmbedStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CrdExampleEmbedStatus.

func (*CrdExampleEmbedStatus) DeepCopyInto

func (in *CrdExampleEmbedStatus) DeepCopyInto(out *CrdExampleEmbedStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type CrdExampleList

type CrdExampleList struct {
	meta.TypeMeta `json:",inline"`
	// +optional
	meta.ListMeta `json:"metadata,omitempty"`
	Items         []CrdExample `json:"items"`
}

CrdExampleList is the list schema for this CRD -genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +k8s:openapi-gen=true

func (*CrdExampleList) DeepCopy

func (in *CrdExampleList) DeepCopy() *CrdExampleList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CrdExampleList.

func (*CrdExampleList) DeepCopyInto

func (in *CrdExampleList) DeepCopyInto(out *CrdExampleList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*CrdExampleList) DeepCopyObject

func (in *CrdExampleList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type CrdExampleStatus

type CrdExampleStatus struct {
	State   string `json:"state,omitempty"`
	Message string `json:"message,omitempty"`
}

CrdExampleStatus is the status schema for this CRD

func (*CrdExampleStatus) DeepCopy

func (in *CrdExampleStatus) DeepCopy() *CrdExampleStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CrdExampleStatus.

func (*CrdExampleStatus) DeepCopyInto

func (in *CrdExampleStatus) DeepCopyInto(out *CrdExampleStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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