ec2instance

package
v0.0.0-...-c5563bb Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2017 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Log Logger for this package
	Log = newLogger()
	// Cfg Config for this package
	Cfg *config.Config
)

Functions

This section is empty.

Types

type EC2Error

type EC2Error struct {
	Ignore bool
	// contains filtered or unexported fields
}

EC2Error error definition

func NewEC2Error

func NewEC2Error(id, msg string, ignore bool) EC2Error

NewEC2Error create new EC2Error

func (EC2Error) Error

func (e EC2Error) Error() string

type EC2inst

type EC2inst struct {
	State *ec2.Instance
}

func NewEC2

func NewEC2(ec2out *ec2.Instance) EC2inst

NewEC2 create a new EC2 object

func NewEC2WithStatus

func NewEC2WithStatus(eID string, accountID string) (EC2inst, error)

NewEC2WithStatus create a new EC2 object including the current status of the AWS resource

func (*EC2inst) GetId

func (e *EC2inst) GetId() string

func (*EC2inst) GetProperties

func (e *EC2inst) GetProperties(key string) []string

GetProperties returns the given properties for <key> argument

type Snapshot

type Snapshot struct {
	State *ec2.Snapshot
}

func NewSnapshot

func NewSnapshot(snap *ec2.Snapshot) Snapshot

NewSnapshot create a new Snapshot object

func NewSnapshotWithStatus

func NewSnapshotWithStatus(snapId string, accountID string) (Snapshot, error)

NewSnapshotWithStatus create a new Snapshot object including the current status of the AWS resource

func (*Snapshot) GetId

func (s *Snapshot) GetId() string

func (*Snapshot) GetProperties

func (snap *Snapshot) GetProperties(key string) []string

GetProperties returns the given properties for <key> argument

type Volume

type Volume struct {
	State *ec2.Volume
}

func NewVolume

func NewVolume(volOut *ec2.Volume) Volume

NewVolume create a new Volume object

func NewVolumeWithStatus

func NewVolumeWithStatus(vID string, accountID string) (Volume, error)

NewVolumeWithStatus create a new Volume object including the current status of the AWS resource

func (*Volume) GetId

func (v *Volume) GetId() string

func (*Volume) GetProperties

func (vol *Volume) GetProperties(key string) []string

GetProperties returns the given properties for <key> argument

Jump to

Keyboard shortcuts

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