ebsvolume

package
v0.0.0-...-260e043 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VolumeToEncrypt

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

VolumeToEncrypt contains all needed information for encrypting an EBS volume

func New

func New(ec2Client *ec2.EC2, volumeID string) (*VolumeToEncrypt, error)

New returns a well construct EC2Instance object ec2instance

func (VolumeToEncrypt) DeleteVolume

func (v VolumeToEncrypt) DeleteVolume() error

DeleteVolume will delete the given EBS volume

func (VolumeToEncrypt) EncryptVolume

func (v VolumeToEncrypt) EncryptVolume(kmsKeyID string) (*ec2.Volume, error)

EncryptVolume will produce an encrypted version of the EBS volume

func (VolumeToEncrypt) IsEncrypted

func (v VolumeToEncrypt) IsEncrypted() bool

IsEncrypted will returns true if the given EBS volume is already encrypted

Jump to

Keyboard shortcuts

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