lvmd

package
v4.17.0 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultFileConfigDir     = "/etc/topolvm"
	MicroShiftFileConfigDir  = "/var/lib/microshift/lvms"
	DefaultFileConfigPath    = DefaultFileConfigDir + "/lvmd.yaml"
	MicroShiftFileConfigPath = MicroShiftFileConfigDir + "/lvmd.yaml"
)

Variables

View Source
var (
	TypeThin  = lvmd.TypeThin
	TypeThick = lvmd.TypeThick
)

Functions

This section is empty.

Types

type CachedFileConfig

type CachedFileConfig struct {
	*Config
	FileConfig
}

func DefaultConfigurator

func DefaultConfigurator() *CachedFileConfig

func NewFileConfigurator

func NewFileConfigurator(path string) *CachedFileConfig

func (*CachedFileConfig) Load

func (c *CachedFileConfig) Load(ctx context.Context) (*Config, error)

func (*CachedFileConfig) Save

func (c *CachedFileConfig) Save(ctx context.Context, config *Config) error

type Config

type Config = lvmdCMD.Config

type Configurator

type Configurator interface {
	Load(ctx context.Context) (*Config, error)
	Save(ctx context.Context, config *Config) error
	Delete(ctx context.Context) error
}

type DeviceClass

type DeviceClass = lvmd.DeviceClass

type FileConfig

type FileConfig struct {
	// contains filtered or unexported fields
}

func (FileConfig) Delete

func (c FileConfig) Delete(ctx context.Context) error

func (FileConfig) Load

func (c FileConfig) Load(ctx context.Context) (*Config, error)

func (FileConfig) Save

func (c FileConfig) Save(ctx context.Context, config *Config) error

type ThinPoolConfig

type ThinPoolConfig = lvmd.ThinPoolConfig

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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