store

package
v0.0.0-...-81011cd Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Comp

func Comp(ctx *cli.Context)

Types

type Config

type Config struct {
	Pass pass `yaml:"pass"`
}

func NewConfig

func NewConfig(data []byte) (*Config, error)

type S

type S struct {
	C           *Config
	InputSecret func() (string, error)
}

func New

func New(c *Config) *S

func (S) Decrypt

func (s S) Decrypt(entry string) ([]byte, error)

func (S) Delete

func (s S) Delete(entries ...string) error

func (S) EntryExists

func (s S) EntryExists(entry string) bool

func (S) GetPath

func (s S) GetPath() string

func (*S) Insert

func (s *S) Insert(entry string) ([]byte, error)

func (S) List

func (s S) List() []string

func (S) ListFull

func (s S) ListFull() []string

func (S) WriteEntry

func (s S) WriteEntry(entry string, out []byte) error

type Storer

type Storer interface {
	GetPath() string
	List() []string
	ListFull() []string
	Delete(...string) error
	EntryExists(string) bool
	WriteEntry(string, []byte) error
	Insert(string) ([]byte, error)
	Decrypt(string) ([]byte, error)
}

Jump to

Keyboard shortcuts

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