client

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2018 License: GPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NodeListKey            = "nodelist"
	ClientListKey          = "clientlist"
	ReplicasOnSameKey      = "replicasonsame"
	ReplicasOnDifferentKey = "replicasondifferent"
	AutoPlaceKey           = "autoplace"
	DoNotPlaceWithRegexKey = "donotplacewithregex"
	SizeKiBKey             = "sizekib"
	StoragePoolKey         = "storagepool"
	DisklessStoragePoolKey = "disklessstoragepool"
	EncryptionKey          = "encryption"
	ControllersKey         = "controllers"
	BlockSizeKey           = "blocksize"
	ForceKey               = "force"
	MountOptsKey           = "mountopts"
	FSOptsKey              = "fsopts"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Linstor

type Linstor struct {
	LogOut         io.Writer
	AnnotationsKey string

	// Mostly just for testing
	DefaultControllers string
	DefaultStoragePool string
	// contains filtered or unexported fields
}

func NewLinstor

func NewLinstor(logOut io.Writer, annotationsKey string) *Linstor

func (*Linstor) Attach

func (s *Linstor) Attach(vol *volume.Info, node string) error

func (*Linstor) Create

func (s *Linstor) Create(vol *volume.Info) error

func (*Linstor) Delete

func (s *Linstor) Delete(vol *volume.Info) error

func (*Linstor) Detach

func (s *Linstor) Detach(vol *volume.Info, node string) error

func (*Linstor) GetAssignmentOnNode

func (s *Linstor) GetAssignmentOnNode(vol *volume.Info, node string) (*volume.Assignment, error)

func (*Linstor) GetByID

func (s *Linstor) GetByID(ID string) (*volume.Info, error)

func (*Linstor) GetByName

func (s *Linstor) GetByName(name string) (*volume.Info, error)

func (*Linstor) ListAll

func (s *Linstor) ListAll(parameters map[string]string) ([]*volume.Info, error)

func (*Linstor) Mount

func (s *Linstor) Mount(vol *volume.Info, source, target, fsType string, options []string) error

func (*Linstor) NodeAvailable

func (s *Linstor) NodeAvailable(node string) (bool, error)

func (*Linstor) Unmount

func (s *Linstor) Unmount(target string) error

type MockStorage

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

func (*MockStorage) Attach

func (s *MockStorage) Attach(vol *volume.Info, node string) error

func (*MockStorage) Create

func (s *MockStorage) Create(vol *volume.Info) error

func (*MockStorage) Delete

func (s *MockStorage) Delete(vol *volume.Info) error

func (*MockStorage) Detach

func (s *MockStorage) Detach(vol *volume.Info, node string) error

func (*MockStorage) GetAssignmentOnNode

func (s *MockStorage) GetAssignmentOnNode(vol *volume.Info, node string) (*volume.Assignment, error)

func (*MockStorage) GetByID

func (s *MockStorage) GetByID(ID string) (*volume.Info, error)

func (*MockStorage) GetByName

func (s *MockStorage) GetByName(name string) (*volume.Info, error)

func (*MockStorage) ListAll

func (s *MockStorage) ListAll(parameters map[string]string) ([]*volume.Info, error)

func (*MockStorage) Mount

func (s *MockStorage) Mount(vol *volume.Info, source, target, fsType string, options []string) error

func (*MockStorage) NodeAvailable

func (s *MockStorage) NodeAvailable(node string) (bool, error)

func (*MockStorage) Unmount

func (s *MockStorage) Unmount(target string) error

Jump to

Keyboard shortcuts

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