cluster

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2020 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NodeIdsToAwsStrings added in v1.0.1

func NodeIdsToAwsStrings(ids []NodeId) []*string

Types

type Cluster

type Cluster interface {
	// Add upscales the cluster by adding the given number of instances
	// to the autoscaling group
	Add(context.Context, int) error

	// Destroy downscales the cluster by nuking the EC2 instances whose IDs
	// are given
	Destroy(context.Context, []NodeId) error

	// List returns IDs of running drone agent nodes
	List(context.Context) ([]NodeId, error)

	// Describe returns information about agents whose IDs are given
	Describe(context.Context, []NodeId) ([]*ec2.Instance, error)

	// ScalingActivityInProgress returns true if number of instances in
	// cluster ASG is not the same as its desired capacity
	ScalingActivityInProgress(context.Context) (bool, error)
}

Cluster is used to communicate with a Drone agent cluster managed by an AWS autoscaling group.

func New

New returns a new Cluster object

type NodeId

type NodeId string

Jump to

Keyboard shortcuts

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