Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ec2 ¶
type Ec2 struct{}
Ec2 contains EC2 instance info
func (Ec2) GetInstances ¶
func (e Ec2) GetInstances(options config.FilterOption, service IEc2Service) (instances Ec2Instances, err error)
GetInstances returns Instances
func (Ec2) StartInstance ¶
func (e Ec2) StartInstance(target string, service IEc2Service) error
StartInstance starts target instance
func (Ec2) StopInstance ¶
func (e Ec2) StopInstance(target string, service IEc2Service) error
StopInstance stops target instance
type Ec2Client ¶
type Ec2Client interface { GetInstances(config.FilterOption, IEc2Service) (Ec2Instances, error) StartInstance(string, IEc2Service) error StopInstance(string, IEc2Service) error }
Ec2Client Ec2 Client
type Ec2Instance ¶
type Ec2Instance struct {
// contains filtered or unexported fields
}
Ec2Instance ec2 instance used in this app
type Ec2Instances ¶
type Ec2Instances []Ec2Instance
Ec2Instances contains EC2 instance info
func (Ec2Instances) GetFilteredInstances ¶
func (instances Ec2Instances) GetFilteredInstances(filter ext.ICommand) (selected string, err error)
GetFilteredInstances returns isntanceID of a selected instance
func (Ec2Instances) ToString ¶
func (instances Ec2Instances) ToString(outputFormat config.OutputFormat) (string, error)
ToString returns string value of Ec2Instance
type IEc2Service ¶
type IEc2Service interface {
// contains filtered or unexported methods
}
IEc2Service is an interface for ec2 services
Click to show internal directories.
Click to hide internal directories.