Documentation ¶
Index ¶
- func RetrieveFromParameterStore(sess *session.Session, key string) (string, error)
- type ASGDriver
- func (a *ASGDriver) Describe() (AutoscaleGroupDetails, error)
- func (a *ASGDriver) GetAutoscalingActivities(ctx context.Context, nextToken *string) (*autoscaling.DescribeScalingActivitiesOutput, error)
- func (a *ASGDriver) GetLastScalingInAndOutActivity(ctx context.Context, findScaleOut, findScaleIn bool) (*autoscaling.Activity, *autoscaling.Activity, error)
- func (a *ASGDriver) SetDesiredCapacity(count int64) error
- type AutoscaleGroupDetails
- type Params
- type ScaleParams
- type Scaler
- type ScalingCalculator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ASGDriver ¶ added in v1.2.0
func (*ASGDriver) Describe ¶ added in v1.2.0
func (a *ASGDriver) Describe() (AutoscaleGroupDetails, error)
func (*ASGDriver) GetAutoscalingActivities ¶ added in v1.2.0
func (a *ASGDriver) GetAutoscalingActivities(ctx context.Context, nextToken *string) (*autoscaling.DescribeScalingActivitiesOutput, error)
func (*ASGDriver) GetLastScalingInAndOutActivity ¶ added in v1.2.0
func (a *ASGDriver) GetLastScalingInAndOutActivity(ctx context.Context, findScaleOut, findScaleIn bool) (*autoscaling.Activity, *autoscaling.Activity, error)
func (*ASGDriver) SetDesiredCapacity ¶ added in v1.2.0
type AutoscaleGroupDetails ¶
type Params ¶
type Params struct { AutoScalingGroupName string AgentsPerInstance int BuildkiteAgentToken string BuildkiteQueue string UserAgent string PublishCloudWatchMetrics bool DryRun bool IncludeWaiting bool ScaleInParams ScaleParams ScaleOutParams ScaleParams InstanceBuffer int ScaleOnlyAfterAllEvent bool }
type ScaleParams ¶
type Scaler ¶
type Scaler struct {
// contains filtered or unexported fields
}
func (*Scaler) LastScaleIn ¶
func (*Scaler) LastScaleOut ¶
type ScalingCalculator ¶ added in v1.1.0
type ScalingCalculator struct {
// contains filtered or unexported fields
}
func (*ScalingCalculator) DesiredCount ¶ added in v1.1.0
func (sc *ScalingCalculator) DesiredCount(metrics *buildkite.AgentMetrics, asg *AutoscaleGroupDetails) int64
Click to show internal directories.
Click to hide internal directories.