volumize

package
v1.25.2-1 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Blkid = "blkid"
	Mkfs  = "mkfs"
	Fstab = "/etc/fstab"
)

Variables

This section is empty.

Functions

func DoIt

func DoIt(device, volumeTag, fsType, mountPoint, clusterName string, minutes int) error

func EnsureFilesystemsMounted

func EnsureFilesystemsMounted() error

func GetUUID

func GetUUID(device string) (string, error)

func NormalizeDevice

func NormalizeDevice(device string) string

func PersistFilesystem

func PersistFilesystem(uuid, fsType, mountPoint, fstabPath string) error

Types

type Volumizer

type Volumizer struct {
	// contains filtered or unexported fields
}

func NewVolumizer

func NewVolumizer(sess *session.Session, availabilityZone, instanceID string) *Volumizer

func (*Volumizer) AttachVolume

func (v *Volumizer) AttachVolume(volume *ec2.Volume, device string) error

func (*Volumizer) AttachedVolume

func (v *Volumizer) AttachedVolume(clusterName, volumeTag, device *string) (*ec2.Volume, error)

func (*Volumizer) HasFilesystem

func (v *Volumizer) HasFilesystem(device, fstype string) (bool, error)

func (*Volumizer) MakeFilesystem

func (v *Volumizer) MakeFilesystem(device, fstype string) error

func (*Volumizer) WaitForDevice

func (v *Volumizer) WaitForDevice(device string) error

func (*Volumizer) WaitForVolume

func (v *Volumizer) WaitForVolume(clusterName, volumeTag *string, minutes time.Duration) (*ec2.Volume, error)

Jump to

Keyboard shortcuts

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