ebs

package
v0.0.0-...-4deac7f Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2018 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 EBS

type EBS struct {
	EBSVolumes []Volume
	Statistics []Stat
	// contains filtered or unexported fields
}

EBS contains info relating to EBS resources within AWS EC2

func New

func New(region string) *EBS

New creates a pointer to EBS instance with an initialised client

func (*EBS) DetailedTextOutput

func (ebs *EBS) DetailedTextOutput() []string

DetailedTextOutput returns the slice of data about all the EBS Volumes found. output is formatted so it ca be used by tabwriter for better CLI formatting.

func (*EBS) Volumes

func (ebs *EBS) Volumes() error

Volumes gets information about EBS Volumes

type Stat

type Stat struct {
	Region          string
	Available       int
	InUse           int
	OlderThan14Days int
}

Stat describes the statistics about EBS Volumes

type Volume

type Volume struct {
	Created time.Time
	ID      string
	State   string
	Type    string
	Tags    []*ec2.Tag
}

Volume contains fields pertaining to an AWS EBS VColume

Jump to

Keyboard shortcuts

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