Documentation
¶
Index ¶
- Variables
- type LockboxFile
- func (lbf *LockboxFile) Close() error
- func (lbf *LockboxFile) Metadata() *metadata.Metadata
- func (lbf *LockboxFile) NewReader(password string) (*Reader, error)
- func (lbf *LockboxFile) NewWriter(password string) (*Writer, error)
- func (lbf *LockboxFile) Repair() error
- func (lbf *LockboxFile) Schema() *arrow.Schema
- func (lbf *LockboxFile) ValidateBlocks() error
- type Reader
- type Writer
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCorruptedBlock = errors.New("corrupted data block")
ErrCorruptedBlock is returned when a data block fails checksum validation
Functions ¶
This section is empty.
Types ¶
type LockboxFile ¶
type LockboxFile struct {
// contains filtered or unexported fields
}
LockboxFile represents a lockbox file handle
func Create ¶
func Create(filename string, schema *arrow.Schema, password string, createdBy string, module crypto.Module) (*LockboxFile, error)
Create creates a new lockbox file
func (*LockboxFile) Metadata ¶
func (lbf *LockboxFile) Metadata() *metadata.Metadata
Metadata returns the file metadata
func (*LockboxFile) NewReader ¶
func (lbf *LockboxFile) NewReader(password string) (*Reader, error)
NewReader creates a new reader for the lockbox file
func (*LockboxFile) NewWriter ¶
func (lbf *LockboxFile) NewWriter(password string) (*Writer, error)
NewWriter creates a new writer for the lockbox file
func (*LockboxFile) Repair ¶ added in v0.3.0
func (lbf *LockboxFile) Repair() error
Repair attempts to remove corrupted blocks from metadata
func (*LockboxFile) Schema ¶
func (lbf *LockboxFile) Schema() *arrow.Schema
Schema returns the Arrow schema
func (*LockboxFile) ValidateBlocks ¶ added in v0.3.0
func (lbf *LockboxFile) ValidateBlocks() error
ValidateBlocks verifies the checksum of each data block
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
Reader handles reading encrypted Arrow data from lockbox files
func (*Reader) ReadColumns ¶ added in v0.2.0
ReadColumns decrypts only the specified columns from the file
Click to show internal directories.
Click to hide internal directories.