backingstore

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2020 License: Apache-2.0 Imports: 6 Imported by: 6

Documentation

Overview

Package backingstore provides the plugin to connect backend storage.

Index

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) Close

func (bs *FileBackingStore) Close(dev *api.SCSILu) error

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) Exit

func (bs *FileBackingStore) Exit(dev *api.SCSILu) 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) Read

func (bs *FileBackingStore) Read(offset, tl int64) ([]byte, error)

func (*FileBackingStore) Size

func (bs *FileBackingStore) Size(dev *api.SCSILu) uint64

func (*FileBackingStore) Unmap

func (*FileBackingStore) Write

func (bs *FileBackingStore) Write(wbuf []byte, offset int64) error

type NullBackingStore

type NullBackingStore struct {
	scsi.BaseBackingStore
}

func (*NullBackingStore) Close

func (bs *NullBackingStore) Close(dev *api.SCSILu) error

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) Exit

func (bs *NullBackingStore) Exit(dev *api.SCSILu) 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) Read

func (bs *NullBackingStore) Read(offset, tl int64) ([]byte, error)

func (*NullBackingStore) Size

func (bs *NullBackingStore) Size(dev *api.SCSILu) uint64

func (*NullBackingStore) Unmap

func (*NullBackingStore) Write

func (bs *NullBackingStore) Write(wbuf []byte, offset int64) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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