Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAWSVolumeID ¶
GetAWSVolumeID converts a Kubernetes volume ID to an AWS volume ID
Types ¶
type EBSVolumeID ¶
type EBSVolumeID string
EBSVolumeID represents the ID of the volume in the AWS API, e.g. vol-12345678 The "traditional" format is "vol-12345678" A new longer format is also being introduced: "vol-12345678abcdef01" We should not assume anything about the length or format, though it seems reasonable to assume that volumes will continue to start with "vol-".
type EC2 ¶
EC2 is an abstraction over AWS', to allow mocking/other implementations Note that the DescribeX functions return a list, so callers don't need to deal with paging TODO: Should we rename this to AWS (EBS & ELB are not technically part of EC2)
type KubernetesVolumeID ¶
type KubernetesVolumeID string
KubernetesVolumeID represents the id for a volume in the kubernetes API; a few forms are recognized:
- aws://<zone>/<awsVolumeId>
- aws:///<awsVolumeId>
- <awsVolumeId>
func (KubernetesVolumeID) MapToAWSVolumeID ¶
func (name KubernetesVolumeID) MapToAWSVolumeID() (EBSVolumeID, error)
MapToAWSVolumeID extracts the EBSVolumeID from the KubernetesVolumeID