flexvolume

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: May 16, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFlexvolumeInfo

func GetFlexvolumeInfo(dir string) (string, int, error)

GetFlexvolumeInfo tries to extract flexvolume uuid and partition number from the specified directory. Negative partition number means that no partition number was specified.

Types

type Driver

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

Driver provides a virtlet specific implementation of https://kubernetes.io/docs/concepts/storage/volumes/#flexVolume

func NewDriver

func NewDriver(uuidGen UUIDGen, fs fs.FileSystem) *Driver

NewDriver creates a Driver struct

func (*Driver) Run

func (d *Driver) Run(args []string) string

Run runs the driver

type UUIDGen

type UUIDGen func() string

UUIDGen type function returns newly generated UUIDv4 as a string

Jump to

Keyboard shortcuts

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