v1alpha1

package
v0.0.0-...-8640b18 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the shortdb v1alpha1 API group +kubebuilder:object:generate=true +groupName=shortdb.shortdb.shortlink

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "shortdb.shortdb.shortlink", 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 ShortDB

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

	Spec   ShortDBSpec   `json:"spec,omitempty"`
	Status ShortDBStatus `json:"status,omitempty"`
}

ShortDB is the Schema for the shortdbs API

func (*ShortDB) DeepCopy

func (in *ShortDB) DeepCopy() *ShortDB

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

func (*ShortDB) DeepCopyInto

func (in *ShortDB) DeepCopyInto(out *ShortDB)

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

func (*ShortDB) DeepCopyObject

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

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

func (*ShortDB) Default

func (r *ShortDB) Default()

Default implements webhook.Defaulter so a webhook will be registered for the type

func (*ShortDB) SetupWebhookWithManager

func (r *ShortDB) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*ShortDB) ValidateCreate

func (r *ShortDB) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*ShortDB) ValidateDelete

func (r *ShortDB) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*ShortDB) ValidateUpdate

func (r *ShortDB) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type ShortDBHeartBeat

type ShortDBHeartBeat struct {
	// Heartbeat interval in milliseconds
	Interval int `json:"interval,omitempty"`
}

func (*ShortDBHeartBeat) DeepCopy

func (in *ShortDBHeartBeat) DeepCopy() *ShortDBHeartBeat

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

func (*ShortDBHeartBeat) DeepCopyInto

func (in *ShortDBHeartBeat) DeepCopyInto(out *ShortDBHeartBeat)

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

type ShortDBKeepAlive

type ShortDBKeepAlive struct {
	// Keep alive is enabled
	Enabled bool `json:"enabled,omitempty"`
	// Keep alive messages interval in seconds
	Interval int `json:"interval,omitempty"`
}

func (*ShortDBKeepAlive) DeepCopy

func (in *ShortDBKeepAlive) DeepCopy() *ShortDBKeepAlive

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

func (*ShortDBKeepAlive) DeepCopyInto

func (in *ShortDBKeepAlive) DeepCopyInto(out *ShortDBKeepAlive)

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

type ShortDBList

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

ShortDBList contains a list of ShortDB

func (*ShortDBList) DeepCopy

func (in *ShortDBList) DeepCopy() *ShortDBList

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

func (*ShortDBList) DeepCopyInto

func (in *ShortDBList) DeepCopyInto(out *ShortDBList)

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

func (*ShortDBList) DeepCopyObject

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

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

type ShortDBSpec

type ShortDBSpec struct {

	// Deployments count
	Deployments int `json:"deployments,omitempty"`
	// Maximum memory limit in GB (for example, 4)
	MaxMemory *int `json:"maxMemory,omitempty"`
	// Maximum cpu limit (100 = full power)
	MaxCPU *int `json:"maxCPU,omitempty"`
	// Heartbeat configuration
	HeartBeat *ShortDBHeartBeat `json:"heartbeat,omitempty"`
	// Keepalive configuration
	Keepalive *ShortDBKeepAlive `json:"keepalive,omitempty"`
}

ShortDBSpec defines the desired state of ShortDB

func (*ShortDBSpec) DeepCopy

func (in *ShortDBSpec) DeepCopy() *ShortDBSpec

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

func (*ShortDBSpec) DeepCopyInto

func (in *ShortDBSpec) DeepCopyInto(out *ShortDBSpec)

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

type ShortDBStatus

type ShortDBStatus struct {

	// All nodes are prepared and ready
	Deployed bool `json:"deployed"`
	// How many nodes isn't available
	BrokenNodes int `json:"brokenNodes"`
}

ShortDBStatus defines the observed state of ShortDB

func (*ShortDBStatus) DeepCopy

func (in *ShortDBStatus) DeepCopy() *ShortDBStatus

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

func (*ShortDBStatus) DeepCopyInto

func (in *ShortDBStatus) DeepCopyInto(out *ShortDBStatus)

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