v1

package
v0.0.0-...-ba22a63 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

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

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 (in *Festival) IsStorageVersion() bool

func (*Festival) NamespaceScoped

func (in *Festival) NamespaceScoped() bool

func (*Festival) New

func (in *Festival) New() runtime.Object

func (*Festival) NewList

func (in *Festival) NewList() runtime.Object

func (*Festival) Validate

func (in *Festival) Validate(ctx context.Context) field.ErrorList

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 (FestivalStatus) SubResourceName

func (in FestivalStatus) SubResourceName() string

Jump to

Keyboard shortcuts

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