gob

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: May 22, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNilWrapper = fmt.Errorf("Wrapper is nil")
	ErrNoSecret   = fmt.Errorf("Wrapper has no secret")
	ErrEmptyData  = fmt.Errorf("Data is empty")
)

Functions

This section is empty.

Types

type Wrapper added in v0.3.1

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

func Wrap

func Wrap(skrt *katana.Secret) *Wrapper

Wrap creates GOB wrapper

func (*Wrapper) Decrypt added in v0.3.1

func (w *Wrapper) Decrypt(data []byte, v any) error

Decrypt decrypts given data and decodes it

func (*Wrapper) Encrypt added in v0.3.1

func (w *Wrapper) Encrypt(v any) ([]byte, error)

Encrypt encodes given object and encrypts data

Jump to

Keyboard shortcuts

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