container

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: Unlicense Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidMagicHeader = errors.New("invalid magic header")
	ErrInvalidHeaderHash  = errors.New("invalid header hash")
)

Functions

This section is empty.

Types

type Reader

type Reader struct {
	Options *uback.Options
	// contains filtered or unexported fields
}

Decoder for uback format

func NewReader

func NewReader(r io.Reader) (*Reader, error)

func (*Reader) Close

func (r *Reader) Close() error

Part of io.ReadCloser interface

func (*Reader) Read

func (r *Reader) Read(p []byte) (int, error)

Part of io.ReadCloser interface

func (*Reader) Unseal

func (r *Reader) Unseal(sk age.Identity) error

Prepares the decryption process. This must be called before any Read() call

type Writer

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

Encode into uback format

func NewWriter

func NewWriter(w io.Writer, pk age.Recipient, typ string, compressionLevel int) (*Writer, error)

func (*Writer) Close

func (w *Writer) Close() error

Part of io.WriteCloser interface Note that this will write remaining buffered data to the underlying writer.

func (*Writer) Write

func (w *Writer) Write(p []byte) (int, error)

Part of io.WriteCloser interface

Jump to

Keyboard shortcuts

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