v1alpha1

package
v0.0.0-...-6bb720d Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the petstore v1alpha1 API group +kubebuilder:object:generate=true +groupName=petstore.example.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "petstore.example.com", Version: "v1alpha1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type Pet

type Pet struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   PetSpec   `json:"spec,omitempty"`
	Status PetStatus `json:"status,omitempty"`
}

Pet is the Schema for the pets API

func (*Pet) DeepCopy

func (in *Pet) DeepCopy() *Pet

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

func (*Pet) DeepCopyInto

func (in *Pet) DeepCopyInto(out *Pet)

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

func (*Pet) DeepCopyObject

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

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

type PetList

type PetList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Pet `json:"items"`
}

PetList contains a list of Pet

func (*PetList) DeepCopy

func (in *PetList) DeepCopy() *PetList

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

func (*PetList) DeepCopyInto

func (in *PetList) DeepCopyInto(out *PetList)

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

func (*PetList) DeepCopyObject

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

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

type PetSpec

type PetSpec struct {
	// Name is the name of the pet
	Name string `json:"name"`
	// Type is the type of pet
	Type PetType `json:"type"`
	// Birthday is the date the pet was born
	Birthday metav1.Time `json:"birthday"`
}

PetSpec defines the desired state of Pet

func (*PetSpec) DeepCopy

func (in *PetSpec) DeepCopy() *PetSpec

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

func (*PetSpec) DeepCopyInto

func (in *PetSpec) DeepCopyInto(out *PetSpec)

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

type PetStatus

type PetStatus struct {
	// ID is the unique identifier created by the service for the pet
	ID string `json:"id,omitempty"`
}

PetStatus defines the observed state of Pet

func (*PetStatus) DeepCopy

func (in *PetStatus) DeepCopy() *PetStatus

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

func (*PetStatus) DeepCopyInto

func (in *PetStatus) DeepCopyInto(out *PetStatus)

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

type PetType

type PetType string

PetType is the type of the pet. For example, a dog. +kubebuilder:validation:Enum=dog;cat;bird;reptile

const (
	DogPetType     PetType = "dog"
	CatPetType     PetType = "cat"
	BirdPetType    PetType = "bird"
	ReptilePetType PetType = "reptile"
)

Jump to

Keyboard shortcuts

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