Documentation ¶
Index ¶
Constants ¶
View Source
const (
// DeviceDirectory is a directory where TopoLVM Node service creates device files.
DeviceDirectory = "/dev/topolvm"
)
Variables ¶
This section is empty.
Functions ¶
func NewControllerServer ¶ added in v0.18.1
func NewControllerServer(mgr manager.Manager) (csi.ControllerServer, error)
NewControllerServer returns a new ControllerServer.
func NewIdentityServer ¶ added in v0.18.1
func NewIdentityServer(ready func() (bool, error)) csi.IdentityServer
NewIdentityServer returns a new IdentityServer.
ready is a function to check the plugin status. It should return non-nil error if the plugin is not healthy. If the plugin is not yet ready, it should return (false, nil). Otherwise, return (true, nil).
func NewNodeServer ¶ added in v0.18.1
func NewNodeServer(nodeName string, vgServiceClient proto.VGServiceClient, lvServiceClient proto.LVServiceClient, mgr manager.Manager) (csi.NodeServer, error)
NewNodeServer returns a new NodeServer.
Types ¶
type LockByID ¶ added in v0.18.1
type LockByID struct {
// contains filtered or unexported fields
}
LockByID is a mutex which takes lock with a given ID. If same id is given, only one process can take lock. If different id is given, each process can take lock separately.
func NewLockWithID ¶ added in v0.18.1
func NewLockWithID() *LockByID
func (*LockByID) UnlockByID ¶ added in v0.18.1
Click to show internal directories.
Click to hide internal directories.