flexvolume

package
v0.0.0-...-273f5df Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2020 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