v1

package
v0.0.0-...-f2f495e Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package v1 is the v1 version of the API. +groupName=cronhpacontroller.gs.io

Index

Constants

This section is empty.

Variables

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: cronhpacontroller.GroupName, Version: "v1"}

SchemeGroupVersion is group version used to register these objects

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type Cron

type Cron struct {
	// The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.
	Schedule string `json:"schedule" protobuf:"bytes,1,opt,name=schedule"`

	TargetReplicas int32 `json:"targetReplicas" protobuf:"varint,2,opt,name=targetReplicas"`
}

func (*Cron) DeepCopy

func (in *Cron) DeepCopy() *Cron

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

func (*Cron) DeepCopyInto

func (in *Cron) DeepCopyInto(out *Cron)

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

type CronHPA

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

	// Spec defines the desired identities of pods in this cronhpa.
	Spec CronHPASpec `json:"spec,omitempty"`

	// Status is the current status of pods in this CronHPA. This data
	// may be out of date by some window of time.
	Status CronHPAStatus `json:"status,omitempty"`
}

CronHPA represents a set of crontabs to set target's replicas.

func (*CronHPA) DeepCopy

func (in *CronHPA) DeepCopy() *CronHPA

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

func (*CronHPA) DeepCopyInto

func (in *CronHPA) DeepCopyInto(out *CronHPA)

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

func (*CronHPA) DeepCopyObject

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

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

type CronHPAList

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

CronHPAList is a collection of CronHPA.

func (*CronHPAList) DeepCopy

func (in *CronHPAList) DeepCopy() *CronHPAList

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

func (*CronHPAList) DeepCopyInto

func (in *CronHPAList) DeepCopyInto(out *CronHPAList)

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

func (*CronHPAList) DeepCopyObject

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

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

type CronHPASpec

type CronHPASpec struct {
	// scaleTargetRef points to the target resource to scale
	ScaleTargetRef autoscalingv2.CrossVersionObjectReference `json:"scaleTargetRef" protobuf:"bytes,1,opt,name=scaleTargetRef"`

	Crons []Cron `json:"crons" protobuf:"bytes,2,opt,name=crons"`
}

A CronHPASpec is the specification of a CronHPA.

func (*CronHPASpec) DeepCopy

func (in *CronHPASpec) DeepCopy() *CronHPASpec

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

func (*CronHPASpec) DeepCopyInto

func (in *CronHPASpec) DeepCopyInto(out *CronHPASpec)

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

type CronHPAStatus

type CronHPAStatus struct {
	// Information when was the last time the schedule was successfully scheduled.
	// +optional
	LastScheduleTime *metav1.Time `json:"lastScheduleTime,omitempty" protobuf:"bytes,2,opt,name=lastScheduleTime"`
}

CronHPAStatus represents the current state of a CronHPA.

func (*CronHPAStatus) DeepCopy

func (in *CronHPAStatus) DeepCopy() *CronHPAStatus

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

func (*CronHPAStatus) DeepCopyInto

func (in *CronHPAStatus) DeepCopyInto(out *CronHPAStatus)

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