v1alpha1

package
v0.0.0-...-49ddd11 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package v1alpha1 is the v1alpha1 version of the API.

Index

Constants

View Source
const (
	// FlunderReferenceType is used for Flunder references.
	FlunderReferenceType = ReferenceType("Flunder")
	// FischerReferenceType is used for Fischer references.
	FischerReferenceType = ReferenceType("Fischer")
)

Variables

View Source
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

func (in *Fischer) DeepCopy() *Fischer

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

func (*Fischer) DeepCopyInto

func (in *Fischer) DeepCopyInto(out *Fischer)

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

func (*Fischer) DeepCopyObject

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

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

func (Fischer) IsStorageVersion() bool

IsStorageVersion returns true -- v1alpha1.Fischer is used as the internal version. IsStorageVersion implements resource.Object.

func (Fischer) NamespaceScoped

func (Fischer) NamespaceScoped() bool

NamespaceScoped returns false to indicate Fischer is NOT a namespaced resource. NamespaceScoped implements resource.Object.

func (Fischer) New

func (Fischer) New() runtime.Object

New implements resource.Object

func (Fischer) NewList

func (Fischer) NewList() runtime.Object

NewList 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

func (in *Flunder) DeepCopy() *Flunder

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

func (*Flunder) DeepCopyInto

func (in *Flunder) DeepCopyInto(out *Flunder)

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

func (*Flunder) DeepCopyObject

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

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

func (Flunder) IsStorageVersion() bool

IsStorageVersion returns true -- v1alpha1.Flunder is used as the internal version. IsStorageVersion implements resource.Object.

func (Flunder) NamespaceScoped

func (Flunder) NamespaceScoped() bool

NamespaceScoped returns true to indicate Flunder is a namespaced resource. NamespaceScoped implements resource.Object.

func (Flunder) New

func (Flunder) New() runtime.Object

New implements resource.Object

func (Flunder) NewList

func (Flunder) NewList() runtime.Object

NewList implements resource.Object

func (*Flunder) Validate

func (f *Flunder) Validate(_ context.Context) field.ErrorList

Validate implements resource.Validater

func (*Flunder) ValidateUpdate

func (f *Flunder) ValidateUpdate(ctx context.Context, _ runtime.Object) field.ErrorList

ValidateUpdate implements resource.ValidateUpdater

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

func (in *Fortune) DeepCopy() *Fortune

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

func (*Fortune) DeepCopyInto

func (in *Fortune) DeepCopyInto(out *Fortune)

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

func (*Fortune) DeepCopyObject

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

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

func (*Fortune) Get

Get implements rest.Getter

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

func (Fortune) IsStorageVersion() bool

IsStorageVersion returns true -- v1alpha1.Fortune is used as the internal version. IsStorageVersion implements resource.Object.

func (*Fortune) List

List implements rest.Lister

func (Fortune) NamespaceScoped

func (Fortune) NamespaceScoped() bool

NamespaceScoped returns true to indicate Fortune is a namespaced resource. NamespaceScoped implements resource.Object.

func (Fortune) New

func (Fortune) New() runtime.Object

New implements resource.Object

func (Fortune) NewList

func (Fortune) NewList() runtime.Object

NewList 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.

Jump to

Keyboard shortcuts

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