Documentation ¶
Index ¶
- Variables
- func Create(svc *ec2.EC2, iid *IID, size int64, typ string, iops int64, is ...int) (*ec2.Volume, error)
- func CreateAttach(cli *Args) ([]string, error)
- func DeleteOnTermination(svc *ec2.EC2, instanceId string, volumeId string, attachDevice string) error
- func EFSMain()
- func EFSMount(efs string, mountPoint string, mountOpts string) error
- func LocalMain()
- func Main()
- func MountLocal(deviceCandidates []string, mountBase string) ([]string, error)
- func WaitForVolumeStatus(svc *ec2.EC2, volumeId *string, status string) error
- type Args
- type EFSArgs
- type IID
- type LocalArgs
Constants ¶
This section is empty.
Variables ¶
View Source
var MountedError = errors.New("drive is already mounted")
Functions ¶
func CreateAttach ¶
func DeleteOnTermination ¶
func EFSMount ¶
EFSMount will mount the EFS drive to the requested mount-point. the efs argument looks like: fs-XXXXXX.efs.us-east-1.amazonaws.com:/mnt/efs/
func MountLocal ¶
MountLocal RAID-0's all devices onto a single mount-point.
Types ¶
type Args ¶
type Args struct { Size int64 `arg:"-s,help:size in GB of desired EBS volume"` MountPoint string `arg:"-m,required,help:directory on which to mount the EBS volume"` VolumeType string `` /* 184-byte string literal not displayed */ FSType string `arg:"-t,help:file system type to create (argument must be accepted by mkfs)"` Iops int64 `arg:"-i,help:Provisioned IOPS. Only valid for volume type io1. Range is 100 to 20000 and <= 50*size of volume."` N int `` /* 171-byte string literal not displayed */ Keep bool `arg:"-k,help:dont delete the volume(s) on termination (default is to delete)"` }
type EFSArgs ¶
type EFSArgs struct { MountOptions string `arg:"-o,help:options to send to mount command"` EFS string `arg:"positional,required,help:efs DNS and mount path (e.g.fs-XXXXXX.efs.us-east-1.amazonaws.com:/mnt/efs/)"` MountPoint string `arg:"positional,required,help:local directory on which to mount the EBS volume"` }
type IID ¶
type IID struct { AvailabilityZone string `json:"availabilityZone"` InstanceId string `json:"instanceId"` InstanceType string `json:"instanceType"` ImageId string `json:"imageId"` Region string `json:"region"` }
IID holds the attributes from the instance identity document
Click to show internal directories.
Click to hide internal directories.