gpgvfs

package module
v0.0.0-...-9f84a7c Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2023 License: AGPL-3.0 Imports: 9 Imported by: 0

README

sqlite3-gpgvfs

Combine github.com/blang/vfs and github.com/psanford/sqlite3vfs to directly open GPG-encrypted SQLite3 databases.

Compatible with github.com/mattn/go-sqlite3.

TODO

  • sqlite file has to be wrapped in base64, otherwise it misses some bytes and sqlite3 decrypted.db says the db is corrupted;

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GPGVFS

type GPGVFS struct {
	EncryptedPath string
	// contains filtered or unexported fields
}

func NewGPGVFS

func NewGPGVFS(EncryptedPath string, EncryptionPassphrase []byte) *GPGVFS

func (*GPGVFS) Access

func (gpgvfs *GPGVFS) Access(name string, flag sqlite3vfs.AccessFlag) (bool, error)

func (*GPGVFS) Close

func (gpgvfs *GPGVFS) Close(name string, EncryptionPassphrase []byte) error

func (*GPGVFS) Delete

func (gpgvfs *GPGVFS) Delete(name string, dirSync bool) error

func (*GPGVFS) FullPathname

func (gpgvfs *GPGVFS) FullPathname(name string) string

func (*GPGVFS) Open

func (gpgvfs *GPGVFS) Open(name string, flags sqlite3vfs.OpenFlag) (sqlite3vfs.File, sqlite3vfs.OpenFlag, error)

Jump to

Keyboard shortcuts

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