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
Click to show internal directories.
Click to hide internal directories.