secretstore

package
v0.0.0-...-5c432e3 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2023 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoSuchKey = errors.New("no such key")

Functions

This section is empty.

Types

type Store

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

func New

func New() (s *Store)

func Open

func Open(path string) (s *Store, err error)

func (*Store) AddKey

func (s *Store) AddKey(passphrase []byte)

func (*Store) Close

func (s *Store) Close()

func (*Store) Init

func (s *Store) Init(passphrase []byte) (err error)

func (*Store) IsNew

func (s *Store) IsNew() bool

func (*Store) NewDecrypter

func (s *Store) NewDecrypter(iv [aes.BlockSize]byte) cipher.Stream

func (*Store) NewEncrypter

func (s *Store) NewEncrypter(iv [aes.BlockSize]byte) cipher.Stream

func (*Store) NewReader

func (s *Store) NewReader(reader io.Reader) (r io.Reader, err error)

func (*Store) NewWriter

func (s *Store) NewWriter(writer io.Writer) (r io.Writer, err error)

func (*Store) ReadFrom

func (s *Store) ReadFrom(in io.Reader) (n int64, err error)

func (*Store) SaveTo

func (s *Store) SaveTo(path string) (err error)

func (*Store) Unlock

func (s *Store) Unlock(passphrase []byte) (ok bool)

func (*Store) Unlocked

func (s *Store) Unlocked() bool

func (*Store) WriteTo

func (s *Store) WriteTo(out io.Writer) (n int64, err error)

Jump to

Keyboard shortcuts

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