storage_cli

package
v0.51.2 Latest Latest
Warning

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

Go to latest
Published: May 7, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CliStorage

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

CliStorage wraps cli args to provide storage.

func NewCliStorage

func NewCliStorage(args *hcli.DaemonArgs) *CliStorage

NewCliStorage constructs storage from CLI args.

func (*CliStorage) AddFactories

func (s *CliStorage) AddFactories(b bus.Bus, sr *static.Resolver)

AddFactories adds the factories to the resolver.

func (*CliStorage) BuildVolumeConfig

func (s *CliStorage) BuildVolumeConfig(id string, baseVolCtrlConf *volume_controller.Config) (config.Config, error)

BuildVolumeConfig creates the volume config for the store ID. Returns nil if the storage cannot produce Volume. baseVolCtrlConf can be nil

func (*CliStorage) DeleteVolume

func (s *CliStorage) DeleteVolume(id string) error

DeleteVolume is not supported for CLI storage.

func (*CliStorage) GetStorageInfo

func (s *CliStorage) GetStorageInfo() *storage.StorageInfo

GetStorageInfo returns StorageInfo.

Jump to

Keyboard shortcuts

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