Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Plugin ¶
type Plugin interface {
Init(host Host) error
Name() string
GetBackingVolumeID(spec *api.VolumeSpec) (string, error)
CanSupport(spec *api.VolumeSpec) bool
Apply(ctx context.Context, spec *api.VolumeSpec, machineID string) (*api.VolumeStatus, error)
Delete(ctx context.Context, computeVolumeName string, machineID string) error
}
type PluginManager ¶
type PluginManager struct {
// contains filtered or unexported fields
}
func NewPluginManager ¶
func NewPluginManager() *PluginManager
func (*PluginManager) FindPluginByName ¶
func (m *PluginManager) FindPluginByName(name string) (Plugin, error)
func (*PluginManager) FindPluginBySpec ¶
func (m *PluginManager) FindPluginBySpec(volume *api.VolumeSpec) (Plugin, error)
func (*PluginManager) InitPlugins ¶
func (m *PluginManager) InitPlugins(host Host, plugins []Plugin) error
Click to show internal directories.
Click to hide internal directories.