Documentation ¶
Overview ¶
Package backingstore provides the plugin to connect backend storage.
Index ¶
- Constants
- type FileBackingStore
- func (bs *FileBackingStore) Close(dev *api.SCSILu) error
- func (bs *FileBackingStore) DataAdvise(offset, length int64, advise uint32) error
- func (bs *FileBackingStore) DataSync(offset, tl int64) error
- func (bs *FileBackingStore) Exit(dev *api.SCSILu) error
- func (bs *FileBackingStore) Init(dev *api.SCSILu, Opts string) error
- func (bs *FileBackingStore) Open(dev *api.SCSILu, path string) error
- func (bs *FileBackingStore) Read(offset, tl int64) ([]byte, error)
- func (bs *FileBackingStore) Size(dev *api.SCSILu) uint64
- func (bs *FileBackingStore) Unmap([]api.UnmapBlockDescriptor) error
- func (bs *FileBackingStore) Write(wbuf []byte, offset int64) error
- type NullBackingStore
- func (bs *NullBackingStore) Close(dev *api.SCSILu) error
- func (bs *NullBackingStore) DataAdvise(offset, length int64, advise uint32) error
- func (bs *NullBackingStore) DataSync(offset, tl int64) error
- func (bs *NullBackingStore) Exit(dev *api.SCSILu) error
- func (bs *NullBackingStore) Init(dev *api.SCSILu, Opts string) error
- func (bs *NullBackingStore) Open(dev *api.SCSILu, path string) error
- func (bs *NullBackingStore) Read(offset, tl int64) ([]byte, error)
- func (bs *NullBackingStore) Size(dev *api.SCSILu) uint64
- func (bs *NullBackingStore) Unmap([]api.UnmapBlockDescriptor) error
- func (bs *NullBackingStore) Write(wbuf []byte, offset int64) error
Constants ¶
View Source
const (
FileBackingStorage = "file"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileBackingStore ¶
type FileBackingStore struct { scsi.BaseBackingStore // contains filtered or unexported fields }
func (*FileBackingStore) DataAdvise ¶
func (bs *FileBackingStore) DataAdvise(offset, length int64, advise uint32) error
func (*FileBackingStore) DataSync ¶
func (bs *FileBackingStore) DataSync(offset, tl int64) error
func (*FileBackingStore) Init ¶
func (bs *FileBackingStore) Init(dev *api.SCSILu, Opts string) error
func (*FileBackingStore) Open ¶
func (bs *FileBackingStore) Open(dev *api.SCSILu, path string) error
func (*FileBackingStore) Unmap ¶
func (bs *FileBackingStore) Unmap([]api.UnmapBlockDescriptor) error
type NullBackingStore ¶
type NullBackingStore struct {
scsi.BaseBackingStore
}
func (*NullBackingStore) DataAdvise ¶
func (bs *NullBackingStore) DataAdvise(offset, length int64, advise uint32) error
func (*NullBackingStore) DataSync ¶
func (bs *NullBackingStore) DataSync(offset, tl int64) error
func (*NullBackingStore) Init ¶
func (bs *NullBackingStore) Init(dev *api.SCSILu, Opts string) error
func (*NullBackingStore) Open ¶
func (bs *NullBackingStore) Open(dev *api.SCSILu, path string) error
func (*NullBackingStore) Unmap ¶
func (bs *NullBackingStore) Unmap([]api.UnmapBlockDescriptor) error
Click to show internal directories.
Click to hide internal directories.