Documentation
¶
Index ¶
- Constants
- Variables
- func ProbeVolumePlugins() []volume.VolumePlugin
- type Controller
- func (c *Controller) ControllerPublishVolume(req *csi.ControllerPublishVolumeRequest) (*csi.ControllerPublishVolumeResponse, error)
- func (c *Controller) ControllerUnpublishVolume(req *csi.ControllerUnpublishVolumeRequest) (*csi.ControllerUnpublishVolumeResponse, error)
- func (c *Controller) CreateVolume(req *csi.CreateVolumeRequest) (*csi.CreateVolumeResponse, error)
- func (c *Controller) DeleteVolume(req *csi.DeleteVolumeRequest) (*csi.DeleteVolumeResponse, error)
- type Driver
- type DriversStore
- type RegistrationHandler
Constants ¶
const (
// CSIPluginName is the name of the in-tree CSI Plugin
CSIPluginName = "kubernetes.io/csi"
)
Variables ¶
var PluginHandler = &RegistrationHandler{}
PluginHandler is the plugin registration handler interface passed to the pluginwatcher module in kubelet
Functions ¶
func ProbeVolumePlugins ¶
func ProbeVolumePlugins() []volume.VolumePlugin
ProbeVolumePlugins returns implemented plugins
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶
func NewController() *Controller
NewController returns a csi controller instance
func (*Controller) ControllerPublishVolume ¶
func (c *Controller) ControllerPublishVolume(req *csi.ControllerPublishVolumeRequest) (*csi.ControllerPublishVolumeResponse, error)
func (*Controller) ControllerUnpublishVolume ¶
func (c *Controller) ControllerUnpublishVolume(req *csi.ControllerUnpublishVolumeRequest) (*csi.ControllerUnpublishVolumeResponse, error)
func (*Controller) CreateVolume ¶
func (c *Controller) CreateVolume(req *csi.CreateVolumeRequest) (*csi.CreateVolumeResponse, error)
func (*Controller) DeleteVolume ¶
func (c *Controller) DeleteVolume(req *csi.DeleteVolumeRequest) (*csi.DeleteVolumeResponse, error)
type Driver ¶
type Driver struct {
// contains filtered or unexported fields
}
Driver is a description of a CSI Driver, defined by an endpoint and the highest CSI version supported
type DriversStore ¶
DriversStore holds a list of CSI Drivers
func (*DriversStore) Clear ¶
func (s *DriversStore) Clear()
Clear deletes all entries in the store. This methiod is protected by a mutex.
func (*DriversStore) Delete ¶
func (s *DriversStore) Delete(driverName string)
Delete lets you delete a CSI Driver by name. This method is protected by a mutex.
func (*DriversStore) Get ¶
func (s *DriversStore) Get(driverName string) (Driver, bool)
Get lets you retrieve a CSI Driver by name. This method is protected by a mutex.
func (*DriversStore) Set ¶
func (s *DriversStore) Set(driverName string, driver Driver)
Set lets you save a CSI Driver to the list and give it a specific name. This method is protected by a mutex.
type RegistrationHandler ¶
type RegistrationHandler struct { }
RegistrationHandler is the handler which is fed to the pluginwatcher API.
func (*RegistrationHandler) DeRegisterPlugin ¶
func (h *RegistrationHandler) DeRegisterPlugin(pluginName string)
DeRegisterPlugin is called when a plugin removed its socket, signaling it is no longer available
func (*RegistrationHandler) RegisterPlugin ¶
func (h *RegistrationHandler) RegisterPlugin(pluginName string, endpoint string, versions []string) error
RegisterPlugin is called when a plugin can be registered
func (*RegistrationHandler) ValidatePlugin ¶
func (h *RegistrationHandler) ValidatePlugin(pluginName string, endpoint string, versions []string) error
ValidatePlugin is called by kubelet's plugin watcher upon detection of a new registration socket opened by CSI Driver registrar side car.
Source Files
¶
Directories
¶
Path | Synopsis |
---|---|
Package nodeinfomanager includes internal functions used to add/delete labels to kubernetes nodes for corresponding CSI drivers
|
Package nodeinfomanager includes internal functions used to add/delete labels to kubernetes nodes for corresponding CSI drivers |