v1

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2020 License: MPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scale

type Scale struct {
	// contains filtered or unexported fields
}

func NewScaleServer

func NewScaleServer(strict bool, cfg *ScaleConfig) *Scale

func (*Scale) InJobGroup

func (s *Scale) InJobGroup(w http.ResponseWriter, r *http.Request)

func (*Scale) OutJobGroup

func (s *Scale) OutJobGroup(w http.ResponseWriter, r *http.Request)

func (*Scale) StatusInfo added in v0.1.0

func (s *Scale) StatusInfo(w http.ResponseWriter, r *http.Request)

func (*Scale) StatusList added in v0.1.0

func (s *Scale) StatusList(w http.ResponseWriter, r *http.Request)

type ScaleConfig added in v0.2.0

type ScaleConfig struct {
	Logger zerolog.Logger
	Policy policyBackend.PolicyBackend
	Scale  scale.Scale
	State  stateBackend.Backend
}

ScaleConfig is a convenience for setting up the scale server. These objects are centrally built and passed to the server.

type ScaleReq

type ScaleReq struct {
	Count int `json:"count"`
}

type ScaleResp

type ScaleResp struct {
	EvalID string `json:"eval_id"`
}

Jump to

Keyboard shortcuts

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