Documentation ¶
Index ¶
- Constants
- type LocalConnector
- func (this *LocalConnector) Close() error
- func (this *LocalConnector) GetCipherReader(fileInfo *dirent.Dirent, blockCipher cipher.Block) (util.ReadSeekCloser, error)
- func (this *LocalConnector) GetCipherWriter(fileInfo *dirent.Dirent, blockCipher cipher.Block) (*cipherio.CipherWriter, error)
- func (this *LocalConnector) GetId() string
- func (this *LocalConnector) GetMetadataReader(metadataId string, blockCipher cipher.Block, iv []byte) (util.ReadSeekCloser, error)
- func (this *LocalConnector) GetMetadataWriter(metadataId string, blockCipher cipher.Block, iv []byte) (*cipherio.CipherWriter, error)
- func (this *LocalConnector) PrepareStorage() error
- func (this *LocalConnector) RemoveFile(file *dirent.Dirent) error
- func (this *LocalConnector) RemoveMetadataFile(metadataId string) error
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
Click to show internal directories.
Click to hide internal directories.