v1

package
v0.5.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

+k8s:deepcopy-gen=package +groupName=example.loft.sh

Package v1 contains API Schema definitions for the config v1beta1 API group +kubebuilder:object:generate=true +groupName=example.loft.sh

Index

Constants

This section is empty.

Variables

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

	// 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

	// SchemeGroupVersion is a shim that expect this to be present in the api package
	SchemeGroupVersion = GroupVersion
)

Functions

This section is empty.

Types

type Car

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

	Spec   CarSpec   `json:"spec,omitempty"`
	Status CarStatus `json:"status,omitempty"`
}

Car holds the webhook configuration +k8s:openapi-gen=true +kubebuilder:subresource:status

func (*Car) DeepCopy

func (in *Car) DeepCopy() *Car

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

func (*Car) DeepCopyInto

func (in *Car) DeepCopyInto(out *Car)

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

func (*Car) DeepCopyObject

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

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

type CarList

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

CarList contains a list of cars

func (*CarList) DeepCopy

func (in *CarList) DeepCopy() *CarList

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

func (*CarList) DeepCopyInto

func (in *CarList) DeepCopyInto(out *CarList)

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

func (*CarList) DeepCopyObject

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

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

type CarSpec

type CarSpec struct {
	// Type is the type of the car
	Type CarType `json:"type,omitempty"`

	// Number of seats within the car
	// +optional
	Seats int `json:"seats,omitempty"`
}

func (*CarSpec) DeepCopy

func (in *CarSpec) DeepCopy() *CarSpec

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

func (*CarSpec) DeepCopyInto

func (in *CarSpec) DeepCopyInto(out *CarSpec)

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

type CarStatus

type CarStatus struct {
}

func (*CarStatus) DeepCopy

func (in *CarStatus) DeepCopy() *CarStatus

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

func (*CarStatus) DeepCopyInto

func (in *CarStatus) DeepCopyInto(out *CarStatus)

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

type CarType

type CarType string

CarType is the type of the car

const (
	BMW   CarType = "BMW"
	Tesla CarType = "Tesla"
	Audi  CarType = "Audi"
)

Jump to

Keyboard shortcuts

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