encryptfs

package
v0.0.0-...-a532a67 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: LGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEncryptFS

func NewEncryptFS(baseFS filesystem.Filespace, settings Settings) (_ filesystem.Filespace, err error)

NewEncryptFS create new EncryptFS instance

Types

type EncryptFS

type EncryptFS struct {
	Cipher cipherfs.Cipher
	// contains filtered or unexported fields
}

EncryptFS is an encrypted filespace

func (*EncryptFS) Copy

func (fs *EncryptFS) Copy(src, dest string) error

func (*EncryptFS) CopyDirectory

func (fs *EncryptFS) CopyDirectory(src, dest string) error

func (*EncryptFS) CopyFile

func (fs *EncryptFS) CopyFile(src, dest string) error

func (*EncryptFS) Filespace

func (fs *EncryptFS) Filespace(path string) (childFS filesystem.Filespace, err error)

func (*EncryptFS) IsDir

func (fs *EncryptFS) IsDir(path string) bool

func (*EncryptFS) IsExist

func (fs *EncryptFS) IsExist(path string) bool

func (*EncryptFS) IsFile

func (fs *EncryptFS) IsFile(path string) bool

func (*EncryptFS) Lstat

func (fs *EncryptFS) Lstat(path string) (os.FileInfo, error)

func (*EncryptFS) MkdirAll

func (fs *EncryptFS) MkdirAll(path string, filemode os.FileMode) error

func (*EncryptFS) ReadDir

func (fs *EncryptFS) ReadDir(path string) ([]os.FileInfo, error)

func (*EncryptFS) ReadFile

func (fs *EncryptFS) ReadFile(path string) (data []byte, err error)

func (*EncryptFS) Reader

func (fs *EncryptFS) Reader(path string) (reader filesystem.Reader, err error)

func (*EncryptFS) Remove

func (fs *EncryptFS) Remove(path string) error

func (*EncryptFS) RemoveAll

func (fs *EncryptFS) RemoveAll(path string) error

func (*EncryptFS) WriteFile

func (fs *EncryptFS) WriteFile(path string, data []byte, perm os.FileMode) (err error)

func (*EncryptFS) Writer

func (fs *EncryptFS) Writer(path string) (writer filesystem.Writer, err error)

type Settings

type Settings struct {
	Salt     []byte
	Secret   []byte
	HostOnly bool
	Cipher   cipherfs.Cipher
}

Settings is set of params for EncryptFS

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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