Documentation ¶
Overview ¶
Package v1alpha1 is the v1alpha1 version of the API.
Index ¶
- Constants
- Variables
- func Resource(resource string) schema.GroupResource
- type Fischer
- func (in *Fischer) DeepCopy() *Fischer
- func (in *Fischer) DeepCopyInto(out *Fischer)
- func (in *Fischer) DeepCopyObject() runtime.Object
- func (Fischer) GetGroupVersionResource() schema.GroupVersionResource
- func (f *Fischer) GetObjectMeta() *metav1.ObjectMeta
- func (Fischer) IsStorageVersion() bool
- func (Fischer) NamespaceScoped() bool
- func (Fischer) New() runtime.Object
- func (Fischer) NewList() runtime.Object
- type FischerList
- type Flunder
- func (in *Flunder) DeepCopy() *Flunder
- func (in *Flunder) DeepCopyInto(out *Flunder)
- func (in *Flunder) DeepCopyObject() runtime.Object
- func (Flunder) GetGroupVersionResource() schema.GroupVersionResource
- func (f *Flunder) GetObjectMeta() *metav1.ObjectMeta
- func (Flunder) IsStorageVersion() bool
- func (Flunder) NamespaceScoped() bool
- func (Flunder) New() runtime.Object
- func (Flunder) NewList() runtime.Object
- func (f *Flunder) Validate(_ context.Context) field.ErrorList
- func (f *Flunder) ValidateUpdate(ctx context.Context, _ runtime.Object) field.ErrorList
- type FlunderList
- type FlunderSpec
- type FlunderStatus
- type Fortune
- func (f *Fortune) ConvertToTable(ctx context.Context, object runtime.Object, tableOptions runtime.Object) (*metav1.Table, error)
- func (in *Fortune) DeepCopy() *Fortune
- func (in *Fortune) DeepCopyInto(out *Fortune)
- func (in *Fortune) DeepCopyObject() runtime.Object
- func (f *Fortune) Get(_ context.Context, name string, _ *metav1.GetOptions) (runtime.Object, error)
- func (Fortune) GetGroupVersionResource() schema.GroupVersionResource
- func (f *Fortune) GetObjectMeta() *metav1.ObjectMeta
- func (Fortune) IsStorageVersion() bool
- func (f *Fortune) List(ctx context.Context, o *internalversion.ListOptions) (runtime.Object, error)
- func (Fortune) NamespaceScoped() bool
- func (Fortune) New() runtime.Object
- func (Fortune) NewList() runtime.Object
- type FortuneList
- type ReferenceType
Constants ¶
const ( // FlunderReferenceType is used for Flunder references. FlunderReferenceType = ReferenceType("Flunder") // FischerReferenceType is used for Fischer references. FischerReferenceType = ReferenceType("Fischer") )
Variables ¶
var ( // SchemeGroupVersion contains the API group and version information for the types in this package. SchemeGroupVersion = schema.GroupVersion{Group: "sample.k8s.com", Version: "v1alpha1"} // AddToScheme applies all the stored functions to the scheme. A non-nil error // indicates that one function failed and the attempt was abandoned. AddToScheme = (&runtime.SchemeBuilder{}).AddToScheme )
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type Fischer ¶
type Fischer struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // DisallowedFlunders holds a list of Flunder.Names that are disallowed. DisallowedFlunders []string `json:"disallowedFlunders,omitempty" protobuf:"bytes,2,rep,name=disallowedFlunders"` }
Fischer defines the schema for the "fischers" resource.
func (*Fischer) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Fischer.
func (*Fischer) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Fischer) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (Fischer) GetGroupVersionResource ¶
func (Fischer) GetGroupVersionResource() schema.GroupVersionResource
GetGroupVersionResource returns a GroupVersionResource with "fischers" as the resource. GetGroupVersionResource implements resource.Object
func (*Fischer) GetObjectMeta ¶
func (f *Fischer) GetObjectMeta() *metav1.ObjectMeta
GetObjectMeta implements resource.Object
func (Fischer) IsStorageVersion ¶
IsStorageVersion returns true -- v1alpha1.Fischer is used as the internal version. IsStorageVersion implements resource.Object.
func (Fischer) NamespaceScoped ¶
NamespaceScoped returns false to indicate Fischer is NOT a namespaced resource. NamespaceScoped implements resource.Object.
type FischerList ¶
type FischerList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` Items []Fischer `json:"items" protobuf:"bytes,2,rep,name=items"` }
FischerList is a list of Fischer objects.
func (*FischerList) DeepCopy ¶
func (in *FischerList) DeepCopy() *FischerList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FischerList.
func (*FischerList) DeepCopyInto ¶
func (in *FischerList) DeepCopyInto(out *FischerList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*FischerList) DeepCopyObject ¶
func (in *FischerList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*FischerList) GetListMeta ¶
func (c *FischerList) GetListMeta() *metav1.ListMeta
GetListMeta implements resource.Object
type Flunder ¶
type Flunder struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` Spec FlunderSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` Status FlunderStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` }
Flunder defines the schema for the "flunders" resource.
func (*Flunder) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Flunder.
func (*Flunder) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Flunder) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (Flunder) GetGroupVersionResource ¶
func (Flunder) GetGroupVersionResource() schema.GroupVersionResource
GetGroupVersionResource returns a GroupVersionResource with "flunders" as the resource. GetGroupVersionResource implements resource.Object
func (*Flunder) GetObjectMeta ¶
func (f *Flunder) GetObjectMeta() *metav1.ObjectMeta
GetObjectMeta implements resource.Object
func (Flunder) IsStorageVersion ¶
IsStorageVersion returns true -- v1alpha1.Flunder is used as the internal version. IsStorageVersion implements resource.Object.
func (Flunder) NamespaceScoped ¶
NamespaceScoped returns true to indicate Flunder is a namespaced resource. NamespaceScoped implements resource.Object.
type FlunderList ¶
type FlunderList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` Items []Flunder `json:"items" protobuf:"bytes,2,rep,name=items"` }
FlunderList is a list of Flunder objects.
func (*FlunderList) DeepCopy ¶
func (in *FlunderList) DeepCopy() *FlunderList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FlunderList.
func (*FlunderList) DeepCopyInto ¶
func (in *FlunderList) DeepCopyInto(out *FlunderList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*FlunderList) DeepCopyObject ¶
func (in *FlunderList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*FlunderList) GetListMeta ¶
func (c *FlunderList) GetListMeta() *metav1.ListMeta
GetListMeta returns the ListMeta
type FlunderSpec ¶
type FlunderSpec struct { // A name of another flunder, mutually exclusive to the FischerReference. FlunderReference string `json:"flunderReference,omitempty" protobuf:"bytes,1,opt,name=flunderReference"` // A name of a fischer, mutually exclusive to the FlunderReference. FischerReference string `json:"fischerReference,omitempty" protobuf:"bytes,2,opt,name=fischerReference"` // The reference type. ReferenceType ReferenceType `json:"referenceType,omitempty" protobuf:"bytes,3,opt,name=referenceType"` }
FlunderSpec is the specification of a Flunder.
func (*FlunderSpec) DeepCopy ¶
func (in *FlunderSpec) DeepCopy() *FlunderSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FlunderSpec.
func (*FlunderSpec) DeepCopyInto ¶
func (in *FlunderSpec) DeepCopyInto(out *FlunderSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type FlunderStatus ¶
type FlunderStatus struct { }
FlunderStatus is the status of a Flunder.
func (*FlunderStatus) DeepCopy ¶
func (in *FlunderStatus) DeepCopy() *FlunderStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FlunderStatus.
func (*FlunderStatus) DeepCopyInto ¶
func (in *FlunderStatus) DeepCopyInto(out *FlunderStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Fortune ¶
type Fortune struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` Value string `json:"value,omitempty" protobuf:"bytes,2,opt,name=value"` }
Fortune defines the schema for the "fortunes" resource.
func (*Fortune) ConvertToTable ¶
func (f *Fortune) ConvertToTable(ctx context.Context, object runtime.Object, tableOptions runtime.Object) (*metav1.Table, error)
ConvertToTable handles table printing from kubectl get
func (*Fortune) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Fortune.
func (*Fortune) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Fortune) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (Fortune) GetGroupVersionResource ¶
func (Fortune) GetGroupVersionResource() schema.GroupVersionResource
GetGroupVersionResource returns a GroupVersionResource with "fortunes" as the resource. GetGroupVersionResource implements resource.Object
func (*Fortune) GetObjectMeta ¶
func (f *Fortune) GetObjectMeta() *metav1.ObjectMeta
GetObjectMeta implements resource.Object
func (Fortune) IsStorageVersion ¶
IsStorageVersion returns true -- v1alpha1.Fortune is used as the internal version. IsStorageVersion implements resource.Object.
func (*Fortune) List ¶
func (f *Fortune) List(ctx context.Context, o *internalversion.ListOptions) (runtime.Object, error)
List implements rest.Lister
func (Fortune) NamespaceScoped ¶
NamespaceScoped returns true to indicate Fortune is a namespaced resource. NamespaceScoped implements resource.Object.
type FortuneList ¶
type FortuneList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` Items []Fortune `json:"items" protobuf:"bytes,2,rep,name=items"` }
FortuneList is a list of Fortune objects.
func (*FortuneList) DeepCopy ¶
func (in *FortuneList) DeepCopy() *FortuneList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FortuneList.
func (*FortuneList) DeepCopyInto ¶
func (in *FortuneList) DeepCopyInto(out *FortuneList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*FortuneList) DeepCopyObject ¶
func (in *FortuneList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*FortuneList) GetListMeta ¶
func (f *FortuneList) GetListMeta() *metav1.ListMeta
GetListMeta returns the ListMeta
type ReferenceType ¶
type ReferenceType string
ReferenceType defines the type of an object reference.