policies

package
v0.6.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const CellComponentTargetType = "component"
View Source
const CellGatewayTargetType = "gateway"
View Source
const CelleryApiVersion = "mesh.cellery.io/v1alpha1"
View Source
const CelleryAutoscalePolicyKind = "AutoscalePolicy"
View Source
const K8sScaleTargetApiVersion = "apps/v1"
View Source
const K8sScaleTargetKind = "Deployment"
View Source
const PolicyTypeAutoscale = "AutoscalePolicy"

Variables

This section is empty.

Functions

func BuildAutoscalePolicyNonExistErrorMatcher

func BuildAutoscalePolicyNonExistErrorMatcher(name string) string

func GetComponentAutoscalePolicyName

func GetComponentAutoscalePolicyName(instance string, component string) string

func GetGatewayAutoscalePolicyName

func GetGatewayAutoscalePolicyName(instance string) string

func GetTargetComponentDeploymentName

func GetTargetComponentDeploymentName(instance string, component string) string

func GetTargetGatewayeploymentName

func GetTargetGatewayeploymentName(instance string) string

Types

type CellPolicy

type CellPolicy struct {
	Type  string `json:"type"`
	Rules []Rule `json:"rules"`
}

type Metric

type Metric struct {
	Type     string   `json:"type,omitempty"`
	Resource Resource `json:"resource,omitempty"`
}

type Policy

type Policy struct {
	MinReplicas string   `json:"minReplicas"`
	MaxReplicas int      `json:"maxReplicas"`
	Metrics     []Metric `json:"metrics,omitempty"`
}

type PolicyNotFoundError

type PolicyNotFoundError struct {
	Err error
	// contains filtered or unexported fields
}

func (PolicyNotFoundError) Error

func (e PolicyNotFoundError) Error() string

type Resource

type Resource struct {
	Name                     string `json:"name"`
	TargetAverageUtilization int    `json:"targetAverageUtilization,omitempty"`
	TargetAverageValue       string `json:"targetAverageValue,omitempty"`
}

type Rule

type Rule struct {
	Overridable bool   `json:"overridable"`
	Target      Target `json:"target,omitempty"`
	Policy      Policy `json:"policy,omitempty"`
}

type Target

type Target struct {
	Type string `json:"type,omitempty"`
	Name string `json:"name,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL