Documentation ¶
Index ¶
- type Client
- type Config
- type EventDetails
- type ExternalCheck
- type HealthResp
- type InfoResp
- type JobGroupPolicy
- type LeaderResp
- type Policies
- func (p *Policies) DeleteJobGroupPolicy(job, group string) error
- func (p *Policies) DeleteJobPolicy(job string) error
- func (p *Policies) List() (*map[string]map[string]*JobGroupPolicy, error)
- func (p *Policies) ReadJobGroupPolicy(job, group string) (*JobGroupPolicy, error)
- func (p *Policies) ReadJobPolicy(job string) (*map[string]*JobGroupPolicy, error)
- func (p *Policies) WriteJobGroupPolicy(job, group string, policy *JobGroupPolicy) error
- func (p *Policies) WriteJobPolicy(job string, policy *map[string]*JobGroupPolicy) error
- type QueryOptions
- type Scale
- func (s *Scale) Info(id string) (map[string]*ScalingEvent, error)
- func (s *Scale) JobGroupIn(job, group string, count int, meta map[string]string) (*ScaleResp, error)
- func (s *Scale) JobGroupOut(job, group string, count int, meta map[string]string) (*ScaleResp, error)
- func (s *Scale) List(latest bool) (map[uuid.UUID]map[string]*ScalingEvent, error)
- type ScaleReq
- type ScaleResp
- type ScalingEvent
- type System
- type TLSConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Address string TLSConfig *TLSConfig // contains filtered or unexported fields }
func DefaultConfig ¶
func (*Config) ConfigureTLS ¶
type EventDetails ¶ added in v0.1.0
type ExternalCheck ¶ added in v0.4.0
type ExternalCheck struct { Enabled bool Provider string Query string ComparisonOperator string ComparisonValue int Action string }
ExternalCheck represents an individual external check within a group scaling policy.
type HealthResp ¶
type HealthResp struct {
Status string
}
type JobGroupPolicy ¶
type JobGroupPolicy struct { Enabled bool Cooldown int MaxCount int MinCount int ScaleOutCount int ScaleInCount int ScaleOutCPUPercentageThreshold *int ScaleOutMemoryPercentageThreshold *int ScaleInCPUPercentageThreshold *int ScaleInMemoryPercentageThreshold *int ExternalChecks map[string]*ExternalCheck }
JobGroupPolicy represents an individual job group scaling policy.
type LeaderResp ¶ added in v0.2.0
type LeaderResp struct { IsSelf bool HAEnabled bool LeaderAddress string LeaderClusterAddress string }
LeaderResp is the response from the Leader API call.
type Policies ¶
type Policies struct {
// contains filtered or unexported fields
}
func (*Policies) DeleteJobGroupPolicy ¶
func (*Policies) DeleteJobPolicy ¶
func (*Policies) ReadJobGroupPolicy ¶
func (p *Policies) ReadJobGroupPolicy(job, group string) (*JobGroupPolicy, error)
func (*Policies) ReadJobPolicy ¶
func (p *Policies) ReadJobPolicy(job string) (*map[string]*JobGroupPolicy, error)
func (*Policies) WriteJobGroupPolicy ¶
func (p *Policies) WriteJobGroupPolicy(job, group string, policy *JobGroupPolicy) error
func (*Policies) WriteJobPolicy ¶
func (p *Policies) WriteJobPolicy(job string, policy *map[string]*JobGroupPolicy) error
type QueryOptions ¶
type QueryOptions struct { // Params are HTTP parameters on the query URL. Params map[string]string }
QueryOptions are used to create a query which includes query params. This is used for GET, POST and PUT calls.
type Scale ¶
type Scale struct {
// contains filtered or unexported fields
}
func (*Scale) Info ¶ added in v0.1.0
func (s *Scale) Info(id string) (map[string]*ScalingEvent, error)
func (*Scale) JobGroupIn ¶
func (*Scale) JobGroupOut ¶
type ScalingEvent ¶ added in v0.1.0
Click to show internal directories.
Click to hide internal directories.