osxkeychain

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Rendered for darwin/amd64

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Osxkeychain added in v0.3.0

type Osxkeychain struct{}

Osxkeychain handles secrets using the OS X Keychain as store.

func (Osxkeychain) Add added in v0.3.0

func (h Osxkeychain) Add(creds *credentials.Credentials) error

Add adds new credentials to the keychain.

func (Osxkeychain) Delete added in v0.3.0

func (h Osxkeychain) Delete(serverURL string) error

Delete removes credentials from the keychain.

func (Osxkeychain) Get added in v0.3.0

func (h Osxkeychain) Get(serverURL string) (string, string, error)

Get returns the username and secret to use for a given registry server URL.

func (Osxkeychain) List added in v1.0.0

func (h Osxkeychain) List() (map[string]string, error)

List returns the stored URLs and corresponding usernames.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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