local

package
v0.0.0-...-36df34d Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LOCK_FILENAME = ".local_lock"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type LocalConnector

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

func NewLocalConnector

func NewLocalConnector(path string, force bool) (*LocalConnector, error)

Create a new connection to a local filesystem. There should only ever be one connection to a filesystem at a time. If an old connection has not been properly closed, then the force parameter may be used to cleanup the old connection.

func (*LocalConnector) Close

func (this *LocalConnector) Close() error

func (*LocalConnector) GetCipherReader

func (this *LocalConnector) GetCipherReader(fileInfo *dirent.Dirent, blockCipher cipher.Block) (util.ReadSeekCloser, error)

func (*LocalConnector) GetCipherWriter

func (this *LocalConnector) GetCipherWriter(fileInfo *dirent.Dirent, blockCipher cipher.Block) (*cipherio.CipherWriter, error)

func (*LocalConnector) GetId

func (this *LocalConnector) GetId() string

func (*LocalConnector) GetMetadataReader

func (this *LocalConnector) GetMetadataReader(metadataId string, blockCipher cipher.Block, iv []byte) (util.ReadSeekCloser, error)

func (*LocalConnector) GetMetadataWriter

func (this *LocalConnector) GetMetadataWriter(metadataId string, blockCipher cipher.Block, iv []byte) (*cipherio.CipherWriter, error)

func (*LocalConnector) PrepareStorage

func (this *LocalConnector) PrepareStorage() error

func (*LocalConnector) RemoveFile

func (this *LocalConnector) RemoveFile(file *dirent.Dirent) error

func (*LocalConnector) RemoveMetadataFile

func (this *LocalConnector) RemoveMetadataFile(metadataId string) error

Jump to

Keyboard shortcuts

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