service

package
v2.3.0-go-mod Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxStorageCapacity = tib
	ReadOnlyKey        = "readonly"
)
View Source
const (
	// Name is the name of the CSI plug-in.
	Name = "io.kubernetes.storage.mock"

	// VendorVersion is the version returned by GetPluginInfo.
	VendorVersion = "0.3.0"
)

Variables

View Source
var Manifest = map[string]string{
	"url": "https://github.com/IdanAtias/csi-test/v2/mock",
}

Manifest is the SP's manifest.

View Source
var MockVolumes map[string]Volume

Functions

This section is empty.

Types

type Config

type Config struct {
	DisableAttach              bool
	DriverName                 string
	AttachLimit                int64
	NodeExpansionRequired      bool
	DisableControllerExpansion bool
	DisableOnlineExpansion     bool
	PermissiveTargetPath       bool
}

type Service

type Service interface {
	csi.ControllerServer
	csi.IdentityServer
	csi.NodeServer
}

Service is the CSI Mock service provider.

func New

func New(config Config) Service

New returns a new Service.

type Volume

type Volume struct {
	sync.Mutex
	VolumeCSI       csi.Volume
	NodeID          string
	ISStaged        bool
	ISPublished     bool
	ISEphemeral     bool
	StageTargetPath string
	TargetPath      string
}

Jump to

Keyboard shortcuts

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