helper

package
v0.0.0-...-46270a6 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DriverHelper

type DriverHelper interface {
	GetValidator() Validator

	GetClientSet() (kubernetes.Interface, dynamic.Interface, error)
	GetMountCommand() string

	ParseJWTclaims(token string) (jwt.MapClaims, error)
	GetClaimValue(claims jwt.MapClaims, key string) (string, error)

	MarshaljSON(v interface{}) ([]byte, error)
	UnMarshaljSON(data []byte, v interface{}) error

	GetDatasetDirectoryNames(targetPath string) []string
	CheckMount(targetPath string) (bool, error)
	CleanMountPoint(targetPath string) error
	WaitForMount(path string, timeout time.Duration) error
	MkdirAll(path string, perm os.FileMode) error
	WriteFile(name, content string, flag int, perm os.FileMode) error
	FileStat(path string) (os.FileInfo, error)
	ReadDir(path string) ([]os.FileInfo, error)
	RemoveFile(path string) error
}

func NewDriverHelper

func NewDriverHelper() DriverHelper

type Validator

type Validator interface {
	CheckCreateVolumeAllowed(req *csi.CreateVolumeRequest) error
	CheckDeleteVolumeAllowed(req *csi.DeleteVolumeRequest) error
	CheckValidateVolumeCapabilitiesAllowed(req *csi.ValidateVolumeCapabilitiesRequest) error
}

func NewValidator

func NewValidator() Validator

Jump to

Keyboard shortcuts

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