Documentation ¶
Overview ¶
+k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=sigs.k8s.io/apiserver-builder-alpha/example/basic/pkg/apis/kingsport +k8s:defaulter-gen=TypeMeta +groupName=kingsport.k8s.io
Index ¶
- Variables
- type Festival
- func (in *Festival) GetGroupVersionResource() schema.GroupVersionResource
- func (in *Festival) GetObjectMeta() *metav1.ObjectMeta
- func (in *Festival) GetStatus() resource.StatusSubResource
- func (in *Festival) IsStorageVersion() bool
- func (in *Festival) NamespaceScoped() bool
- func (in *Festival) New() runtime.Object
- func (in *Festival) NewList() runtime.Object
- func (in *Festival) Validate(ctx context.Context) field.ErrorList
- type FestivalList
- type FestivalSpec
- type FestivalStatus
Constants ¶
This section is empty.
Variables ¶
View Source
var AddToScheme = func(scheme *runtime.Scheme) error { metav1.AddToGroupVersion(scheme, schema.GroupVersion{ Group: "kingsport.k8s.io", Version: "v1", }) scheme.AddKnownTypes(schema.GroupVersion{ Group: "kingsport.k8s.io", Version: "v1", }, &Festival{}, &FestivalList{}) return nil }
Functions ¶
This section is empty.
Types ¶
type Festival ¶
type Festival struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec FestivalSpec `json:"spec,omitempty"` Status FestivalStatus `json:"status,omitempty"` }
Festival +k8s:openapi-gen=true +resource:path=festivals,strategy=FestivalStrategy,shortname=fs
func (*Festival) GetGroupVersionResource ¶
func (in *Festival) GetGroupVersionResource() schema.GroupVersionResource
func (*Festival) GetObjectMeta ¶
func (in *Festival) GetObjectMeta() *metav1.ObjectMeta
func (*Festival) GetStatus ¶
func (in *Festival) GetStatus() resource.StatusSubResource
func (*Festival) IsStorageVersion ¶
func (*Festival) NamespaceScoped ¶
type FestivalList ¶
type FestivalList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Festival `json:"items"` }
+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*FestivalList) GetListMeta ¶
func (in *FestivalList) GetListMeta() *metav1.ListMeta
type FestivalSpec ¶
type FestivalSpec struct { // Year when the festival was held, may be negative (BC) Year int `json:"year,omitempty"` // Invited holds the number of invited attendees Invited uint `json:"invited,omitempty"` }
FestivalSpec defines the desired state of Festival
type FestivalStatus ¶
type FestivalStatus struct { // Attended holds the actual number of attendees Attended uint `json:"attended,omitempty"` }
FestivalStatus defines the observed state of Festival
func (FestivalStatus) CopyTo ¶
func (in FestivalStatus) CopyTo(parent resource.ObjectWithStatusSubResource)
func (FestivalStatus) SubResourceName ¶
func (in FestivalStatus) SubResourceName() string
Click to show internal directories.
Click to hide internal directories.