volumes

package
v0.0.0-...-6fb96df Latest Latest
Warning

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

Go to latest
Published: May 25, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateVolumeSnapshotDetails

func GenerateVolumeSnapshotDetails(snapshots []*ec2.Snapshot) map[string]VolumeSnapshotData

func GetInstanceIds

func GetInstanceIds(instances *ec2.DescribeInstancesOutput) ([]*string, error)

func GetUnattachedVolumes

func GetUnattachedVolumes(volumes []*ec2.Volume) []*ec2.Volume

Types

type AmiData

type AmiData struct {
	Images []struct {
		ImageId string `json:"ImageId"`
	} `json:"Images"`
}

type EC2Client

type EC2Client struct {
	Client ec2iface.EC2API
	// contains filtered or unexported fields
}

func (*EC2Client) DescribeImages

func (e *EC2Client) DescribeImages(input *ec2.DescribeImagesInput) (*ec2.DescribeImagesOutput, error)

func (*EC2Client) DescribeInstances

func (e *EC2Client) DescribeInstances(input *ec2.DescribeInstancesInput) (*ec2.DescribeInstancesOutput, error)

func (*EC2Client) DescribeSnapshots

func (e *EC2Client) DescribeSnapshots(input *ec2.DescribeSnapshotsInput) (*ec2.DescribeSnapshotsOutput, error)

func (*EC2Client) DescribeVolumes

func (e *EC2Client) DescribeVolumes(input *ec2.DescribeVolumesInput) (*ec2.DescribeVolumesOutput, error)

func (*EC2Client) GetImages

func (*EC2Client) GetInstances

func (*EC2Client) GetSnapshots

func (*EC2Client) GetVolumes

type InstanceData

type InstanceData struct {
	Reservations []struct {
		Instances []struct {
			InstanceId string `json:"InstanceId"`
		} `json:"Instances"`
	} `json:"Reservations"`
}

type SnapshotData

type SnapshotData struct {
	Snapshots []struct {
		Description string `json:"Description"`
		SnapshotId  string `json:"SnapshotId"`
		VolumeSize  int64  `json:"VolumeSize"`
	} `json:"Snapshots"`
}

type VolumeSnapshotData

type VolumeSnapshotData struct {
	VolumeSize        int64
	NumberOfSnapshots int64
	SnapshotIds       []string
}

Jump to

Keyboard shortcuts

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