Documentation ¶
Overview ¶
Package awscommon has set of methods which performs the task idependent of resource types in cloud such as dealing with availability-zone, region and etc.
Index ¶
- type CommonInput
- func (r *CommonInput) GetAvailabilityZones(con aws.EstablishConnectionInput) ([]string, error)
- func (r *CommonInput) GetRegionFromAvail(con aws.EstablishConnectionInput) (string, error)
- func (r *CommonInput) GetRegions(con aws.EstablishConnectionInput) (CommonResponse, error)
- func (r *CommonInput) GetUniqueNumberFromTags() (int, error)
- type CommonResponse
- type Tag
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommonInput ¶
CommonInput Implements GetAvailabilityZones, GetRegions, GetRegionFromAvail and GetUniqueNumberFromTags
func (*CommonInput) GetAvailabilityZones ¶
func (r *CommonInput) GetAvailabilityZones(con aws.EstablishConnectionInput) ([]string, error)
GetAvailabilityZones gets the list of availability-zones in the selected region.
func (*CommonInput) GetRegionFromAvail ¶
func (r *CommonInput) GetRegionFromAvail(con aws.EstablishConnectionInput) (string, error)
GetRegionFromAvail will fetch the region from the availability-zone selected.
func (*CommonInput) GetRegions ¶
func (r *CommonInput) GetRegions(con aws.EstablishConnectionInput) (CommonResponse, error)
GetRegions get the list of regions available in the selected cloud provider.
func (*CommonInput) GetUniqueNumberFromTags ¶
func (r *CommonInput) GetUniqueNumberFromTags() (int, error)
GetUniqueNumberFromTags will return an unique number generated from the latest created resource type. Newly created number will be appended to the name of the resource that will be created further.
type CommonResponse ¶
type CommonResponse struct { Regions []string GetRegionsRaw *ec2.DescribeRegionsOutput }
CommonResponse holds the responses form the methods implemented by above structure
type Tag ¶
Tag holds the info for tagging cloud resource which was or will be created.
func (*Tag) CreateTags ¶
func (t *Tag) CreateTags(con aws.EstablishConnectionInput) (string, error)
CreateTags will create the tags to the selected resource and sends back the response.