Documentation ¶
Overview ¶
+build darwin
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrKeyNotFound = errors.New("The specified item could not be found in the keychain.")
View Source
var ErrNoAvailImpl = errors.New("No keyring implementation for your platform available.")
Functions ¶
Types ¶
type ArrayKeyring ¶
type ArrayKeyring struct {
// contains filtered or unexported fields
}
func (*ArrayKeyring) Keys ¶
func (k *ArrayKeyring) Keys() ([]string, error)
func (*ArrayKeyring) Remove ¶
func (k *ArrayKeyring) Remove(key string) error
type Keyring ¶
type Keyring interface { Get(key string) ([]byte, error) Set(key string, secret []byte) error Remove(key string) error Keys() ([]string, error) }
func ForPlatform ¶
type OSXKeychain ¶
type OSXKeychain struct {
// contains filtered or unexported fields
}
func (*OSXKeychain) Keys ¶
func (k *OSXKeychain) Keys() ([]string, error)
func (*OSXKeychain) Remove ¶
func (k *OSXKeychain) Remove(key string) error
Click to show internal directories.
Click to hide internal directories.