Documentation ¶
Index ¶
- func New() gopass.Secret
- type KV
- 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) Set(key string, value interface{}) error
- func (k *KV) SetPassword(p string)
- func (k *KV) Write(buf []byte) (int, error)
- type Plain
- 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) Set(_ string, _ interface{}) error
- func (p *Plain) SetPassword(value string)
- func (p *Plain) Write(buf []byte) (int, error)
- func (p *Plain) WriteString(in string)
- type YAML
- 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) Set(key string, value interface{}) error
- func (y *YAML) SetPassword(v string)
- func (y *YAML) Write(buf []byte) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type KV ¶
type KV struct {
// contains filtered or unexported fields
}
KV is a simple key value secret
func ParseLegacyMIME ¶ added in v1.11.0
ParseLegacyMIME is a fallback parser for the transient MIME format TODO Unexport this TODO Add tests
func (*KV) FromMime ¶ added in v1.11.0
FromMime returns which whether this secret was converted from a Mime secret of not
func (*KV) SetPassword ¶ added in v1.11.0
SetPassword updates the password
type Plain ¶
type Plain struct {
// contains filtered or unexported fields
}
Plain is the fallback secret that only contains plain text
func ParsePlain ¶
ParsePlain never fails and always returns a Plain secret
func (*Plain) SetPassword ¶ added in v1.11.0
SetPassword updates the first line
func (*Plain) WriteString ¶ added in v1.11.0
WriteString append a string to the internal buffer
type YAML ¶
type YAML struct {
// contains filtered or unexported fields
}
YAML is a YAML secret
func (*YAML) SetPassword ¶ added in v1.11.0
SetPassword updates the password
Click to show internal directories.
Click to hide internal directories.