Versions in this module Expand all Collapse all v1 v1.14.4 Jul 14, 2022 Changes in this version + const Ident + var ErrMultiKey = fmt.Errorf("multiple identical keys not supported") + var ErrNoYAML = fmt.Errorf("no YAML marker") + var ErrNotSupported = fmt.Errorf("not supported") + func New() gopass.Secret + type KV struct + func NewKV() *KV + func NewKVWithData(pw string, kvps map[string][]string, body string, converted bool) *KV + func ParseKV(in []byte) (*KV, error) + func (k *KV) Add(key string, value any) error + func (k *KV) Body() string + func (k *KV) Bytes() []byte + func (k *KV) Del(key string) bool + func (k *KV) FromMime() bool + func (k *KV) Get(key string) (string, bool) + func (k *KV) Keys() []string + func (k *KV) Password() string + func (k *KV) SafeStr() string + func (k *KV) Set(key string, value any) error + func (k *KV) SetPassword(p string) + func (k *KV) Values(key string) ([]string, bool) + func (k *KV) Write(buf []byte) (int, error) + type PermanentError struct + Err error + func (p *PermanentError) Error() string + type Plain struct + func ParsePlain(in []byte) *Plain + func (p *Plain) Add(_ string, _ any) error + func (p *Plain) Body() string + func (p *Plain) Bytes() []byte + func (p *Plain) Del(_ string) bool + func (p *Plain) Get(key string) (string, bool) + func (p *Plain) Getbuf() string + func (p *Plain) Keys() []string + func (p *Plain) Password() string + func (p *Plain) SafeStr() string + func (p *Plain) Set(_ string, _ any) error + func (p *Plain) SetPassword(value string) + func (p *Plain) Values(key string) ([]string, bool) + func (p *Plain) Write(buf []byte) (int, error) + func (p *Plain) WriteString(in string) + type YAML struct + func ParseYAML(in []byte) (*YAML, error) + func (y *YAML) Add(key string, value any) error + func (y *YAML) Body() string + func (y *YAML) Bytes() []byte + func (y *YAML) Del(key string) bool + func (y *YAML) Get(key string) (string, bool) + func (y *YAML) Keys() []string + func (y *YAML) Password() string + func (y *YAML) SafeStr() string + func (y *YAML) Set(key string, value any) error + func (y *YAML) SetPassword(v string) + func (y *YAML) Values(key string) ([]string, bool) + func (y *YAML) Write(buf []byte) (int, error)