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" // TopologyKey simulates a per-node topology. TopologyKey = Name + "/node" // TopologyValue is the one, fixed node on which the driver runs. TopologyValue = "some-mock-node" )
Variables ¶
View Source
var Manifest = map[string]string{
"url": "https://github.com/kubernetes/kubernetes/tree/master/test/e2e/storage/drivers/csi-test/mock",
}
Manifest is the SP's manifest.
View Source
var MockVolumes map[string]Volume
Functions ¶
This section is empty.
Types ¶
type DirIO ¶
type DirIO interface { // DirExists returns false if the path doesn't exist, true if it exists and is a directory, an error otherwise. DirExists(path string) (bool, error) // Mkdir creates the directory, but not its parents, with 0755 permissions. Mkdir(path string) error // RemoveAll removes the path and everything contained inside it. It's not an error if the path does not exist. RemoveAll(path string) error }
DirIO is an abstraction over direct os calls.
type Service ¶
type Service interface { csi.ControllerServer csi.IdentityServer csi.NodeServer }
Service is the CSI Mock service provider.
Click to show internal directories.
Click to hide internal directories.