Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AWSClient ¶ added in v0.2.4
type AWSClient interface { List(instanceNameRegex, vpcName string) ([]*ec2.Instance, error) Stop(instanceID string) error Delete(instanceID string) error Create(ami, vmType, name, keyPairName, subnetID, securityGroupID string) (*ec2.Instance, error) AssociateElasticIP(instanceID, elasticIP string) error }
func NewAWSClient ¶ added in v0.2.4
type Client ¶
type Client interface { CreateVM(ami, instanceType, name, keyName, subnetID, securityGroupID string) (*ec2.Instance, error) DeleteVM(instanceID string) error GetVMInfo(name string) (*ec2.Instance, error) StopVM(instance ec2.Instance) error AssignPublicIP(instance ec2.Instance, ip string) error WaitForStartedVM(instanceName string) error }
type OptionFunc ¶
type OptionFunc func(*client)
func Clock ¶
func Clock(clock clock.Clock) OptionFunc
func Timeout ¶
func Timeout(timeout time.Duration) OptionFunc
type UpgradeOpsMan ¶
type UpgradeOpsMan struct {
// contains filtered or unexported fields
}
func NewUpgradeOpsMan ¶
func NewUpgradeOpsMan(client Client) *UpgradeOpsMan
func (*UpgradeOpsMan) Upgrade ¶
func (s *UpgradeOpsMan) Upgrade(name, ami, instanceType, ip string) error
Click to show internal directories.
Click to hide internal directories.