package osxkeychain

import "github.com/docker/docker-credential-helpers/osxkeychain"

Index

Variables

var ErrInteractionNotAllowed = errors.New("" /* 221 byte string literal not displayed */)

ErrInteractionNotAllowed is returned if keychain password prompt can not be shown.

Types

type Osxkeychain

type Osxkeychain struct{}

Osxkeychain handles secrets using the OS X Keychain as store.

func (Osxkeychain) Add

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

Add adds new credentials to the keychain.

func (Osxkeychain) Delete

func (h Osxkeychain) Delete(serverURL string) error

Delete removes credentials from the keychain.

func (Osxkeychain) Get

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

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

List returns the stored URLs and corresponding usernames.

Source Files

osxkeychain.go

Directories

PathSynopsis
osxkeychain/cmd
Version
v0.8.1
Published
Jan 10, 2024
Platform
darwin/amd64
Imports
6 packages
Last checked
15 seconds ago

Tools for package owners.