Documentation
¶
Index ¶
- Constants
- type CloudConnection
- func (connection *CloudConnection) GetAllRegions() (regions []string, err error)
- func (connection *CloudConnection) GetAllTagNames() (tagNames []string, err error)
- func (connection *CloudConnection) GetIPTagMapping() (ipToKeyToValue map[domain.CloudIP]map[string]string, err error)
- func (connection *CloudConnection) IPAddresses() (ips []domain.CloudIP, err error)
- type CloudSyncPayload
Constants ¶
View Source
const ( // State can be found using the tag API, but is not technically a tag, so it is included in the code State = "State" // InstanceID can be found using the tag API, but is not technically a tag, so it is included in the code InstanceID = "InstanceId" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloudConnection ¶
type CloudConnection struct {
// contains filtered or unexported fields
}
CloudConnection is a struct that implements the interface for gathering tags
func CreateConnection ¶
func CreateConnection(authInfoJSON string, payloadJSON string) (connection *CloudConnection, err error)
CreateConnection returns a struct that is used to interact with the AWS API
func (*CloudConnection) GetAllRegions ¶
func (connection *CloudConnection) GetAllRegions() (regions []string, err error)
GetAllRegions retrieves a list of regions from AWS
func (*CloudConnection) GetAllTagNames ¶
func (connection *CloudConnection) GetAllTagNames() (tagNames []string, err error)
GetAllTagNames returns a unique list of the names of tags found from the API
func (*CloudConnection) GetIPTagMapping ¶
func (connection *CloudConnection) GetIPTagMapping() (ipToKeyToValue map[domain.CloudIP]map[string]string, err error)
GetIPTagMapping returns a map, where the first key is an IP address that returns another map the inner map is a series of key-value pairs for tags and their values
func (*CloudConnection) IPAddresses ¶
func (connection *CloudConnection) IPAddresses() (ips []domain.CloudIP, err error)
IPAddresses returns the IP Address associated with the AWS connection
type CloudSyncPayload ¶
type CloudSyncPayload struct {
Region string `json:"region"`
}
CloudSyncPayload parses the job history Payload for the cloud sync job
Click to show internal directories.
Click to hide internal directories.