ebsmount

package
v0.0.0-...-2c9fe0f Latest Latest
Warning

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

Go to latest
Published: May 24, 2018 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EC2Mounter

type EC2Mounter struct {
	Session *session.Session
	EC2     *ec2.EC2
	IID     ec2metadata.EC2InstanceIdentityDocument
}

func NewEC2Mounter

func NewEC2Mounter() (*EC2Mounter, error)

func (*EC2Mounter) CreateAndMount

func (mounter *EC2Mounter) CreateAndMount(args *MountRequest) (*MountResponse, error)

func (*EC2Mounter) DetachAndDelete

func (mounter *EC2Mounter) DetachAndDelete(volumeID string, mountPoint string) error

type MountRequest

type MountRequest struct {
	Size       int64
	MountPoint string
	VolumeType string
	FSType     string
	Iops       int64
	Keep       bool
}

func (*MountRequest) Validate

func (m *MountRequest) Validate() error

type MountResponse

type MountResponse struct {
	Device   string
	VolumeID string
}

Jump to

Keyboard shortcuts

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