v1

package
v0.0.0-...-733dcc4 Latest Latest
Warning

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

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

Documentation

Overview

Package v1 contains API Schema definitions for the podinfo-app v1 API group +kubebuilder:object:generate=true +groupName=podinfo-app.podinfo.vayner.me

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "podinfo-app.podinfo.vayner.me", 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
)

Functions

This section is empty.

Types

type Image

type Image struct {
	Repository string `json:"repository,omitempty"`
	Tag        string `json:"tag,omitempty"`
}

func (*Image) DeepCopy

func (in *Image) DeepCopy() *Image

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

func (*Image) DeepCopyInto

func (in *Image) DeepCopyInto(out *Image)

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

type PodInfoInstance

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

	Spec   PodInfoInstanceSpec   `json:"spec,omitempty"`
	Status PodInfoInstanceStatus `json:"status,omitempty"`
}

PodInfoInstance is the Schema for the podinfoinstances API

func (*PodInfoInstance) DeepCopy

func (in *PodInfoInstance) DeepCopy() *PodInfoInstance

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

func (*PodInfoInstance) DeepCopyInto

func (in *PodInfoInstance) DeepCopyInto(out *PodInfoInstance)

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

func (*PodInfoInstance) DeepCopyObject

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

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

type PodInfoInstanceList

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

PodInfoInstanceList contains a list of PodInfoInstance

func (*PodInfoInstanceList) DeepCopy

func (in *PodInfoInstanceList) DeepCopy() *PodInfoInstanceList

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

func (*PodInfoInstanceList) DeepCopyInto

func (in *PodInfoInstanceList) DeepCopyInto(out *PodInfoInstanceList)

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

func (*PodInfoInstanceList) DeepCopyObject

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

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

type PodInfoInstanceSpec

type PodInfoInstanceSpec struct {

	// Foo is an example field of PodInfoInstance. Edit podinfoinstance_types.go to remove/update
	ReplicaCount int32     `json:"replicaCount,omitempty"`
	Resources    Resources `json:"resources,omitempty"`
	Image        Image     `json:"image,omitempty"`
	UI           UI        `json:"ui,omitempty"`
	Redis        Redis     `json:"redis,omitempty"`
}

PodInfoInstanceSpec defines the desired state of PodInfoInstance

func (*PodInfoInstanceSpec) DeepCopy

func (in *PodInfoInstanceSpec) DeepCopy() *PodInfoInstanceSpec

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

func (*PodInfoInstanceSpec) DeepCopyInto

func (in *PodInfoInstanceSpec) DeepCopyInto(out *PodInfoInstanceSpec)

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

type PodInfoInstanceStatus

type PodInfoInstanceStatus struct {
	// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
	// Important: Run "make" to regenerate code after modifying this file
	AppDeployment   Status `json:"appDeployment,omitempty"`
	AppService      Status `json:"appService,omitempty"`
	RedisDeployment Status `json:"redis,omitempty"`
	RedisService    Status `json:"redisService,omitempty"`
}

PodInfoInstanceStatus defines the observed state of PodInfoInstance

func (*PodInfoInstanceStatus) DeepCopy

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

func (*PodInfoInstanceStatus) DeepCopyInto

func (in *PodInfoInstanceStatus) DeepCopyInto(out *PodInfoInstanceStatus)

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

type Redis

type Redis struct {
	Enabled   bool      `json:"enabled,omitempty"`
	Image     Image     `json:"image,omitempty"`
	Resources Resources `json:"resources,omitempty"`
}

func (*Redis) DeepCopy

func (in *Redis) DeepCopy() *Redis

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

func (*Redis) DeepCopyInto

func (in *Redis) DeepCopyInto(out *Redis)

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

type Resources

type Resources struct {
	MemoryRequest string `json:"memoryRequest,omitempty"`
	MemoryLimit   string `json:"memoryLimit,omitempty"`
	CPURequest    string `json:"cpuRequest,omitempty"`
	CPULimit      string `json:"cpuLimit,omitempty"`
}

func (*Resources) DeepCopy

func (in *Resources) DeepCopy() *Resources

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

func (*Resources) DeepCopyInto

func (in *Resources) DeepCopyInto(out *Resources)

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

type Status

type Status struct {
	Name   string   `json:"name,omitempty"`
	Errors []string `json:"errors,omitempty"`
}

func (*Status) DeepCopy

func (in *Status) DeepCopy() *Status

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

func (*Status) DeepCopyInto

func (in *Status) DeepCopyInto(out *Status)

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

type UI

type UI struct {
	Color   string `json:"color,omitempty"`
	Message string `json:"message,omitempty"`
}

func (*UI) DeepCopy

func (in *UI) DeepCopy() *UI

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

func (*UI) DeepCopyInto

func (in *UI) DeepCopyInto(out *UI)

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

Jump to

Keyboard shortcuts

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