Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AWSService ¶
type AWSService interface { GetAutoScalingSelfInstances() ([]*EC2Instance, error) NewEC2MetadataService() *EC2MetadataHelper NewAutoScallingService() *AutoScalingGroupHelper NewEC2Service() *EC2Helper }
AWSService interface for ServiceHelper
type AWSServiceHelper ¶
AWSServiceHelper provides access to various AWS resources
func (*AWSServiceHelper) GetAutoScalingSelfInstances ¶ added in v0.3.0
func (h *AWSServiceHelper) GetAutoScalingSelfInstances() ([]*EC2Instance, error)
GetAutoScalingSelfInstances returns autoscaling instances that this instance belongs to
* * This is a helper method that finds the current instance's ASG and then fetches all * the instances that are active within the ASG including the current instnance
func (*AWSServiceHelper) NewAutoScallingService ¶
func (h *AWSServiceHelper) NewAutoScallingService() *AutoScalingGroupHelper
NewAutoScallingService initializes new Autoscaling Helper
func (*AWSServiceHelper) NewEC2MetadataService ¶
func (h *AWSServiceHelper) NewEC2MetadataService() *EC2MetadataHelper
NewEC2MetadataService initializes new EC2Metadata helper
func (*AWSServiceHelper) NewEC2Service ¶
func (h *AWSServiceHelper) NewEC2Service() *EC2Helper
NewEC2Service initializes new EC2 Helper
type AutoScalingGroup ¶
type AutoScalingGroup autoscaling.Group
type AutoScalingGroupHelper ¶
type AutoScalingGroupHelper struct {
// contains filtered or unexported fields
}
func (*AutoScalingGroupHelper) GetAutoScallingGroupOfInstance ¶
func (as *AutoScalingGroupHelper) GetAutoScallingGroupOfInstance(instanceIDs []*string) (*AutoScalingGroup, error)
GetAutoScallingGroupOfInstance returns ASG informattion that the current instnace belongs to
type EC2Helper ¶
type EC2Helper struct {
// contains filtered or unexported fields
}
func (*EC2Helper) GetEC2Instance ¶
func (es *EC2Helper) GetEC2Instance(instanceIds ...*string) ([]*EC2Instance, error)
GetEC2Instance returns EC2 instances from IDs
func (*EC2Helper) GetRunningEC2Instance ¶
func (es *EC2Helper) GetRunningEC2Instance(instanceIds ...*string) ([]*EC2Instance, error)
GetRunningEC2Instance returns EC2 instances which are in "running" state
type EC2Instance ¶
type EC2MetadataHelper ¶
type EC2MetadataHelper struct {
// contains filtered or unexported fields
}
EC2MetadataHelper abstraction for AWS Ec2 Metadata functions
func (*EC2MetadataHelper) GetMetadata ¶
func (es *EC2MetadataHelper) GetMetadata() (Metadata, error)
GetMetadata fetches current instance's metadata document
func (*EC2MetadataHelper) GetPublicIP ¶ added in v0.2.0
func (es *EC2MetadataHelper) GetPublicIP() (string, error)
GetPublicIP fetches instances public IP Address
type Metadata ¶
type Metadata ec2metadata.EC2InstanceIdentityDocument
Metadata document for EC2 instances