Documentation ¶
Overview ¶
Package v1 is the v1 version of the API. +groupName=myproject
Package v1alpha1 for a sample crd ¶
Package v1alpha1 for a sample crd
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var SampleResource = opkit.CustomResource{ Name: "sample", Plural: "samples", Group: "myproject.io", Version: "v1alpha1", Scope: apiextensionsv1beta1.NamespaceScoped, Kind: reflect.TypeOf(Sample{}).Name(), }
var SchemeGroupVersion = schema.GroupVersion{Group: "myproject.io", Version: "v1alpha1"}
schemeGroupVersion is group version used to register these objects
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns back a Group qualified GroupResource
Types ¶
type Sample ¶
type Sample struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata"` Spec SampleSpec `json:"spec"` }
func (*Sample) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Sample.
func (*Sample) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Sample) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SampleList ¶
type SampleList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []Sample `json:"items"` }
func (*SampleList) DeepCopy ¶
func (in *SampleList) DeepCopy() *SampleList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SampleList.
func (*SampleList) DeepCopyInto ¶
func (in *SampleList) DeepCopyInto(out *SampleList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SampleList) DeepCopyObject ¶
func (in *SampleList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SampleSpec ¶
type SampleSpec struct {
Hello string `json:"hello"`
}
func (*SampleSpec) DeepCopy ¶
func (in *SampleSpec) DeepCopy() *SampleSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SampleSpec.
func (*SampleSpec) DeepCopyInto ¶
func (in *SampleSpec) DeepCopyInto(out *SampleSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.