Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClearPassword ¶
Stores a clear text password
func NewRequiredPassword ¶
Creates a secret that always returns ErrPasswordRequired
Types ¶
type ClearPassword ¶
func (ClearPassword) Bytes ¶
func (p ClearPassword) Bytes() ([]byte, error)
Returns the password as bytes
func (ClearPassword) String ¶
func (p ClearPassword) String() (string, error)
Returns the password as a string
type RequiredPassword ¶
func (RequiredPassword) Bytes ¶
func (p RequiredPassword) Bytes() ([]byte, error)
Returns ErrPasswordRequired
func (RequiredPassword) String ¶
func (p RequiredPassword) String() (string, error)
Returns ErrPasswordRequired
Click to show internal directories.
Click to hide internal directories.