Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the shortdb v1alpha1 API group +kubebuilder:object:generate=true +groupName=shortdb.shortdb.shortlink
Index ¶
- Variables
- type ShortDB
- func (in *ShortDB) DeepCopy() *ShortDB
- func (in *ShortDB) DeepCopyInto(out *ShortDB)
- func (in *ShortDB) DeepCopyObject() runtime.Object
- func (r *ShortDB) Default()
- func (r *ShortDB) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *ShortDB) ValidateCreate() error
- func (r *ShortDB) ValidateDelete() error
- func (r *ShortDB) ValidateUpdate(old runtime.Object) error
- type ShortDBHeartBeat
- type ShortDBKeepAlive
- type ShortDBList
- type ShortDBSpec
- type ShortDBStatus
Constants ¶
This section is empty.
Variables ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ShortDB.
func (*ShortDB) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ShortDB) DeepCopyObject ¶
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 (*ShortDB) ValidateCreate ¶
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*ShortDB) ValidateDelete ¶
ValidateDelete 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.