Versions in this module Expand all Collapse all v4 v4.0.0 Jan 10, 2023 Changes in this version + var ErrDryRunFailed = errors.New("dry run failed") + var ErrExternalServiceError = errors.New("external service error") + var ErrInsufficientMachines = errors.New("insufficient machines") + var ErrInvalidClusterID = errors.New("invalid cluster id") + var ErrInvalidMachinesCount = errors.New("invalid machines count") + var ErrInvalidSubnetID = errors.New("invalid subnet") + var ErrInvalidTerminateRequest = errors.New("invalid terminate machines request") + var ErrMachineCreationFailed = errors.New("machine creation failed") + var ErrMissingKeyName = errors.New("missing key name") + var ErrMissingMachineFilters = errors.New("missing machine filters") + var ErrMissingMachineNames = errors.New("missing machine names") + var ErrRequestsLimitExceeded = errors.New("requests limit exceeded") + var ErrRetryable = errors.New("retryable error") + var ErrUnknown = errors.New("unknown error") + func ErrorIsRetryable(err error) bool + func WrapRetryableError(err error) error + type CountMachinesInput struct + Filters map[string][]string + type CreateMachinesInput struct + ClusterID string + FirewallRules []string + Image string + InitScript *string + InstanceProfile *string + KeyName string + Labels map[string]string + MaxCount int64 + MinCount int64 + Retries int + SubnetID *string + Tags []Tag + Type string + Zone *string + type CreateMachinesOutput struct + Instances []string + func (c *CreateMachinesOutput) Length() int + func (c *CreateMachinesOutput) ToTerminateMachinesInput() TerminateMachinesInput + func (c *CreateMachinesOutput) ToWaitMachinesOKInput() WaitMachinesOKInput + type ListMachinesInput struct + Filters map[string][]string + type ListMachinesItem struct + InstanceID string + State string + type ListMachinesOutput struct + Instances []ListMachinesItem + type Machines interface + CalculateCost func(inputs []CreateMachinesInput) (calculator.Rate, error) + Count func(input CountMachinesInput) int + Create func(input []CreateMachinesInput) ([]CreateMachinesOutput, error) + List func(input ListMachinesInput) (*ListMachinesOutput, error) + Terminate func(input TerminateMachinesInput) error + WaitOK func(input []WaitMachinesOKInput) error + type Tag struct + Map map[string]string + Resource string + func NewTags(resourceType string) []Tag + type TerminateMachinesInput struct + Filters map[string][]string + Instances []string + func (in *TerminateMachinesInput) Validate() error + func (in *TerminateMachinesInput) ValidateFilters() error + func (in *TerminateMachinesInput) ValidateInstances() error + type WaitMachinesOKInput struct + Instances []string