local

package
v0.1.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LocalFileStorageManager

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

func NewLocalFileStorageManager

func NewLocalFileStorageManager(rootDir string, encryptionKey *[32]byte) (*LocalFileStorageManager, error)

func (*LocalFileStorageManager) DeleteFile

func (l *LocalFileStorageManager) DeleteFile(path string) error

func (*LocalFileStorageManager) ReadFile

func (l *LocalFileStorageManager) ReadFile(path string, shouldDecrypt bool) ([]byte, error)

func (*LocalFileStorageManager) WriteFile

func (l *LocalFileStorageManager) WriteFile(path string, fileBytes []byte, shouldEncrypt bool) error

Jump to

Keyboard shortcuts

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