v1

package
v0.0.0-...-53abe87 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2019 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// SchemeBuilder initializes a scheme builder
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	// AddToScheme is a global function that registers this API group & version to a scheme
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: autoscalingrule.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 AutoMode

type AutoMode struct {
	DeltaMetric string `json:"deltaMetric"`
	ValueMetric string `json:"valueMetric"`
	Limits      Limits `json:"limits"`
}

func (*AutoMode) DeepCopy

func (in *AutoMode) DeepCopy() *AutoMode

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

func (*AutoMode) DeepCopyInto

func (in *AutoMode) DeepCopyInto(out *AutoMode)

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

type AutoscalingRule

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

	Spec AutoscalingRuleSpec `json:"spec"`
}

func (*AutoscalingRule) DeepCopy

func (in *AutoscalingRule) DeepCopy() *AutoscalingRule

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

func (*AutoscalingRule) DeepCopyInto

func (in *AutoscalingRule) DeepCopyInto(out *AutoscalingRule)

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

func (*AutoscalingRule) DeepCopyObject

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

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

type AutoscalingRuleList

type AutoscalingRuleList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

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

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*AutoscalingRuleList) DeepCopy

func (in *AutoscalingRuleList) DeepCopy() *AutoscalingRuleList

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

func (*AutoscalingRuleList) DeepCopyInto

func (in *AutoscalingRuleList) DeepCopyInto(out *AutoscalingRuleList)

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

func (*AutoscalingRuleList) DeepCopyObject

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

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

type AutoscalingRuleSpec

type AutoscalingRuleSpec struct {
	MetricName      string     `json:"metricName"`
	TargetNamespace string     `json:"targetNamespace"`
	Modes           Modes      `json:"modes"`
	Priority        int32      `json:"priority"`
	Thresholds      Thresholds `json:"thresholds"`
	AutoMode        AutoMode   `json:"autoMode"`
}

func (*AutoscalingRuleSpec) DeepCopy

func (in *AutoscalingRuleSpec) DeepCopy() *AutoscalingRuleSpec

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

func (*AutoscalingRuleSpec) DeepCopyInto

func (in *AutoscalingRuleSpec) DeepCopyInto(out *AutoscalingRuleSpec)

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

type Limits

type Limits struct {
	UpperLimit        resource.Quantity `json:"upperLimit"`
	LowerLimit        resource.Quantity `json:"lowerLimit"`
	DesiredUsage      resource.Quantity `json:"desiredUsage"`
	MaxViolationCount float64           `json:"maxViolationCount"`
}

func (*Limits) DeepCopy

func (in *Limits) DeepCopy() *Limits

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

func (*Limits) DeepCopyInto

func (in *Limits) DeepCopyInto(out *Limits)

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

type Modes

type Modes struct {
	UpscalingMode   string `json:"upscaling"`
	DownscalingMode string `json:"downscaling"`
}

func (*Modes) DeepCopy

func (in *Modes) DeepCopy() *Modes

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

func (*Modes) DeepCopyInto

func (in *Modes) DeepCopyInto(out *Modes)

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

type Thresholds

type Thresholds struct {
	UpperThreshold    resource.Quantity `json:"upperThreshold"`
	LowerThreshold    resource.Quantity `json:"lowerThreshold"`
	MaxViolationCount float64           `json:"maxViolationCount"`
}

func (*Thresholds) DeepCopy

func (in *Thresholds) DeepCopy() *Thresholds

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

func (*Thresholds) DeepCopyInto

func (in *Thresholds) DeepCopyInto(out *Thresholds)

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