awsclient

package module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 30, 2019 License: Apache-2.0 Imports: 8 Imported by: 2

README

aws

Build Status Go Report Card GoDoc License PRs Welcome

aws

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL