Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CephAuthentication ¶
type CephDisk ¶
type CephDisk struct { Name string Monitors []CephMonitor Auth *CephAuthentication Encryption *CephEncryption }
type CephEncryption ¶
type CephEncryption struct {
EncryptionKey string
}
type CephMonitor ¶
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, machine *api.Machine) (*Volume, error) Delete(ctx context.Context, computeVolumeName string, machineID string) error GetSize(ctx context.Context, spec *api.VolumeSpec) (int64, 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.