v1alpha1

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the gcp v1alpha1 API group +kubebuilder:object:generate=true +groupName=gcp.cloudscaler.io

Index

Constants

This section is empty.

Variables

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

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

	Spec   ScalerSpec          `json:"spec,omitempty"`
	Status common.ScalerStatus `json:"status,omitempty"`
}

Scaler is the Schema for the scalers API

func (*Scaler) DeepCopy

func (in *Scaler) DeepCopy() *Scaler

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

func (*Scaler) DeepCopyInto

func (in *Scaler) DeepCopyInto(out *Scaler)

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

func (*Scaler) DeepCopyObject

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

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

type ScalerList

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

ScalerList contains a list of Scaler

func (*ScalerList) DeepCopy

func (in *ScalerList) DeepCopy() *ScalerList

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

func (*ScalerList) DeepCopyInto

func (in *ScalerList) DeepCopyInto(out *ScalerList)

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

func (*ScalerList) DeepCopyObject

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

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

type ScalerSpec

type ScalerSpec struct {

	// dry-run mode
	DryRun bool `json:"dryRun,omitempty"`

	// Time period to scale
	Periods []*common.ScalerPeriod `json:"periods"`
}

ScalerSpec defines the desired state of Scaler

func (*ScalerSpec) DeepCopy

func (in *ScalerSpec) DeepCopy() *ScalerSpec

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

func (*ScalerSpec) DeepCopyInto

func (in *ScalerSpec) DeepCopyInto(out *ScalerSpec)

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