volume

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 26, 2026 License: Apache-2.0 Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CephAuthentication

type CephAuthentication struct {
	UserName string
	UserKey  string
}

type CephDisk

type CephDisk struct {
	Name       string
	Monitors   []CephMonitor
	Auth       *CephAuthentication
	Encryption *CephEncryption
}

type CephEncryption

type CephEncryption struct {
	EncryptionKey string
}

type CephMonitor

type CephMonitor struct {
	Name string
	Port string
}

type Host

type Host interface {
	PluginDir(pluginName string) string
	MachinePluginDir(machineID string, pluginName string) string
	MachineVolumeDir(machineID string, pluginName, volumeName string) string
}

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
}

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

type Volume

type Volume struct {
	QCow2File                 string
	RawFile                   string
	CephDisk                  *CephDisk
	Handle                    string
	EffectiveStorageBytesSize int64
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL