asg

package
v3.3.3+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2018 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsList

func AsList() []string

AsList returns the names of registered providers.

func AsMap

func AsMap() map[string]Provider

AsMap returns a map representing the registered Providers.

func Register

func Register(name string, p Provider)

Register makes a Provider available by the provided name.

If called twice with the same name, the name is blank, or if the provided Provider is nil, this function panics.

Types

type Config

type Config struct {
	Provider string                 `yaml:"provider"`
	Params   map[string]interface{} `yaml:",inline"`
}

Config represents the configuration of the auto-scaling group provider.

type Instance

type Instance interface {
	Name() string
	Address() string
}

type Provider

type Provider interface {
	Configure(Config) error

	AutoScalingGroupStatus() ([]Instance, Instance, int, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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