aws

package
v0.0.0-...-639fe47 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAWSVolumeID

func GetAWSVolumeID(kubeVolumeID string) (string, error)

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

type EC2 interface {
	CreateTags(resourceID string, additionalTags map[string]string) error
}

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)

func Compute

func Compute() (EC2, error)

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

Jump to

Keyboard shortcuts

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