awsUtil

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2017 License: GPL-3.0 Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AwsInterface

type AwsInterface interface {
	// ReadAllLoadBalancers gets the load balancer information for all regions
	ReadAllLoadBalancers() (map[string]string, error)
	// ReadAllInstances gets the instance information for all regions
	ReadAllInstances(templ *template.Template) (map[string]string, error)
	// ListAllProfiles lists all available aws credential profiles
	ListAllProfiles() ([]string, error)
	// SetProfile sets the aws credential profile to use
	SetProfile(string)
}

AwsInterface defines a simple way to interact with AWS

type AwsUtil

type AwsUtil struct {
	// contains filtered or unexported fields
}

AwsUtil handles connecting to AWS and retrieving host data

func NewAwsUtil

func NewAwsUtil(profileName string) *AwsUtil

NewAwsUtil creates a new awsUtil with a given profileName

func (*AwsUtil) ListAllProfiles

func (util *AwsUtil) ListAllProfiles() ([]string, error)

ListAllProfiles lists all available aws credential profiles

func (*AwsUtil) ReadAllInstances

func (util *AwsUtil) ReadAllInstances(templ *template.Template) (map[string]string, error)

ReadAllInstances gets the instance information for all regions

func (*AwsUtil) ReadAllLoadBalancers

func (util *AwsUtil) ReadAllLoadBalancers() (map[string]string, error)

ReadAllLoadBalancers gets the load balancer information for all regions

func (*AwsUtil) SetProfile

func (util *AwsUtil) SetProfile(profile string)

SetProfile sets the aws credential profile to use

Jump to

Keyboard shortcuts

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