aws

package
v0.0.0-...-4106910 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2016 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	AccessKeyID     string
	SecretAccessKey string
	Region          string
	Ttl             int
}

type EC2Instance

type EC2Instance struct {
	Address    string
	PublicIP   string
	PrivateIP  string
	PubicDNS   string
	PrivateDNS string
	Name       string
	UpdateTime time.Time
}

func (*EC2Instance) Age

func (ec2 *EC2Instance) Age() uint32

type Service

type Service struct {
	Config *Config
	// contains filtered or unexported fields
}

func NewService

func NewService(c Config) *Service

func (*Service) Close

func (s *Service) Close() error

func (*Service) GetAllEC2Names

func (s *Service) GetAllEC2Names() []string

func (*Service) GetEC2FromName

func (s *Service) GetEC2FromName(name string) (instances []EC2Instance)

func (*Service) GetEC2NameFromIP

func (s *Service) GetEC2NameFromIP(ip string) (error, string)

func (*Service) Open

func (s *Service) Open() error

func (*Service) UpdateCache

func (s *Service) UpdateCache() error

Jump to

Keyboard shortcuts

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