autoscaler

package
v0.0.0-...-b1c395d Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2016 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeleteController

type DeleteController struct {
	beego.Controller
}

func (*DeleteController) Delete

func (c *DeleteController) Delete()

@Title delete @Description delete the autoscaler @Param kind path string true "The type of target autoscaler configured for" @Param name path string true "The name of target autoscaler configured for" @Success 200 {string} {} @Failure 404 error reason @router /:kind/:name [delete]

type EditController

type EditController struct {
	beego.Controller
}

func (*EditController) Get

func (c *EditController) Get()

@Title get @Description get the autoscaler @Param kind path string true "The type of target autoscaler configured for" @Param name path string true "The name of target autoscaler configured for" @Success 200 {object} guirestapi.deploy.autoscaler.ReplicationControllerAutoScaler @Failure 404 error reason @router /:kind/:name [get]

func (*EditController) Put

func (c *EditController) Put()

@Title update @Description update the autoscaler @Param body body guirestapi.deploy.autoscaler.ReplicationControllerAutoScaler true "body for autoscaler" @Success 200 {string} {} @Failure 404 error reason @router / [put]

type Indicator

type Indicator struct {
	Type                  string
	AboveAllOrOne         bool
	AbovePercentageOfData float64
	AboveThreshold        int64
	BelowAllOrOne         bool
	BelowPercentageOfData float64
	BelowThreshold        int64
}

type ListController

type ListController struct {
	beego.Controller
}

func (*ListController) GetAll

func (c *ListController) GetAll()

@Title get @Description get all autoscalers @Success 200 {string} []ReplicationControllerAutoScaler @Failure 404 error reason @router / [get]

type ReplicationControllerAutoScaler

type ReplicationControllerAutoScaler struct {
	Check             bool
	CoolDownDuration  time.Duration
	RemainingCoolDown time.Duration
	KubeapiHost       string
	KubeapiPort       int
	Namespace         string
	Kind              string
	Name              string
	MaximumReplica    int
	MinimumReplica    int
	IndicatorSlice    []Indicator
}

Jump to

Keyboard shortcuts

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