Documentation ¶
Index ¶
- Constants
- type Linstor
- func (s *Linstor) Attach(vol *volume.Info, node string) error
- func (s *Linstor) Create(vol *volume.Info) error
- func (s *Linstor) Delete(vol *volume.Info) error
- func (s *Linstor) Detach(vol *volume.Info, node string) error
- func (s *Linstor) GetAssignmentOnNode(vol *volume.Info, node string) (*volume.Assignment, error)
- func (s *Linstor) GetByID(ID string) (*volume.Info, error)
- func (s *Linstor) GetByName(name string) (*volume.Info, error)
- func (s *Linstor) ListAll(parameters map[string]string) ([]*volume.Info, error)
- func (s *Linstor) Mount(vol *volume.Info, source, target, fsType string, options []string) error
- func (s *Linstor) NodeAvailable(node string) (bool, error)
- func (s *Linstor) Unmount(target string) error
- type MockStorage
- func (s *MockStorage) Attach(vol *volume.Info, node string) error
- func (s *MockStorage) Create(vol *volume.Info) error
- func (s *MockStorage) Delete(vol *volume.Info) error
- func (s *MockStorage) Detach(vol *volume.Info, node string) error
- func (s *MockStorage) GetAssignmentOnNode(vol *volume.Info, node string) (*volume.Assignment, error)
- func (s *MockStorage) GetByID(ID string) (*volume.Info, error)
- func (s *MockStorage) GetByName(name string) (*volume.Info, error)
- func (s *MockStorage) ListAll(parameters map[string]string) ([]*volume.Info, error)
- func (s *MockStorage) Mount(vol *volume.Info, source, target, fsType string, options []string) error
- func (s *MockStorage) NodeAvailable(node string) (bool, error)
- func (s *MockStorage) Unmount(target string) error
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 (*Linstor) GetAssignmentOnNode ¶
type MockStorage ¶
type MockStorage struct {
// contains filtered or unexported fields
}
func (*MockStorage) GetAssignmentOnNode ¶
func (s *MockStorage) GetAssignmentOnNode(vol *volume.Info, node string) (*volume.Assignment, error)
func (*MockStorage) NodeAvailable ¶
func (s *MockStorage) NodeAvailable(node string) (bool, error)
func (*MockStorage) Unmount ¶
func (s *MockStorage) Unmount(target string) error
Click to show internal directories.
Click to hide internal directories.