encryptFs

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2022 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(fs fs.FS, key []byte) fs.FS

Types

type EncryptedFS

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

func (*EncryptedFS) Open

func (e *EncryptedFS) Open(name string) (fs.File, error)

func (*EncryptedFS) ReadDir

func (e *EncryptedFS) ReadDir(name string) ([]fs.DirEntry, error)

type EncryptedFile

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

func (*EncryptedFile) Close

func (e *EncryptedFile) Close() error

func (*EncryptedFile) Read

func (e *EncryptedFile) Read(p []byte) (int, error)

this is not efficient and should only be used for relatively small files

func (*EncryptedFile) Stat

func (e *EncryptedFile) Stat() (fs.FileInfo, error)

Jump to

Keyboard shortcuts

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