v1

package
v0.0.0-...-8958888 Latest Latest
Warning

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

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

Documentation

Overview

Package v1 is the v1 version of the API. +groupName=cronhpa.shareit.com

Index

Constants

View Source
const (
	HpaTypeForNative = "native"
	HpaTypeForConfig = "config"
)

Variables

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: cronhpa.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 CronHpa

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

	Spec   CronHpaSpec   `json:"spec"`
	Status CronHpaStatus `json:"status,omitempty"`
}

CronHpa is a specification for a Foo resource

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"`

	Items []CronHpa `json:"items"`
}

CronHpaList is a list of CronHpa resources

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 {
	HpaName string  `json:"hpa_name"`
	HpaType string  `json:"hpa_type"`
	Cycles  []Cycle `json:"cycles"`
}

CronHpaSpec is the spec for a CronHpa resource

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 {
	Cycles []Cycle `json:"cycles"`
}

CronHpaStatus is the status for a CronHpa resource

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.

type Cycle

type Cycle struct {
	Hour     int32 `json:"hour"`
	Capacity int32 `json:"capacity"`
}

Cycle is the struct of hour and capacity

func (*Cycle) DeepCopy

func (in *Cycle) DeepCopy() *Cycle

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

func (*Cycle) DeepCopyInto

func (in *Cycle) DeepCopyInto(out *Cycle)

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