Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Disk ¶
Disk holds information about an AWS EC2 volume.
func (*Disk) LastUsedAt ¶
LastUsedAt returns a zero time.Time value, as AWS does not provide this information.
func (*Disk) Name ¶
Name returns the name of this AWS EC2 volume.
AWS EC2 volumes do not have a name property, instead they store the name in tags. This method will try to find the Name or CSIVolumeName, otherwise it will return empty.
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider implements unused.Provider for AWS.
func NewProvider ¶
NewProvider creates a new AWS unused.Provider.
A valid EC2 client must be supplied in order to list the unused resources. The metadata passed will be used to identify the provider.
func (*Provider) ListUnusedDisks ¶
ListUnusedDisks returns all the AWS EC2 volumes that are available, ie. not used by any other resource.