Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ec2Collection ¶
type Ec2Collection struct { Instances []Ec2Instance EIPs []Eip }
Ec2Collection holds structs of Ec2Instance's and Eip's queried from AWS API
func GetServers ¶
func GetServers(conf *config.AwsshConf) *Ec2Collection
GetServers is a constructor for Ec2Collection and loads instances and EIPs slice
func (*Ec2Collection) Filtered ¶
func (ec *Ec2Collection) Filtered(args []string) []Ec2Instance
func (*Ec2Collection) HasEip ¶
func (col *Ec2Collection) HasEip(e *Ec2Instance) bool
HasEip will check if the Ec2Instance public ip is a ElasticIp
func (*Ec2Collection) ListServers ¶
func (col *Ec2Collection) ListServers()
ListServers prints our a formatted list of the instances slice
func (*Ec2Collection) LoadEips ¶
func (col *Ec2Collection) LoadEips(conf *config.AwsshConf)
type Ec2Instance ¶
func (*Ec2Instance) GetLine ¶
func (e *Ec2Instance) GetLine() string
func (*Ec2Instance) GetLinePrivate ¶
func (e *Ec2Instance) GetLinePrivate() string
func (*Ec2Instance) GetTplMap ¶
func (e *Ec2Instance) GetTplMap() map[string]string
func (*Ec2Instance) Match ¶
func (e *Ec2Instance) Match(args []string) bool
Click to show internal directories.
Click to hide internal directories.