package credentials

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

Index

Variables

var ErrCredentialsNotFound = errors.New("credentials not found in native keychain")

ErrCredentialsNotFound standarizes the not found error, so every helper returns the same message and docker can handle it properly.

Functions

func Serve

func Serve(helper Helper)

Serve initializes the credentials helper and parses the action argument.

Types

type Credentials

type Credentials struct {
	ServerURL string
	Username  string
	Secret    string
}

Credentials holds the information shared between docker and the credentials store.

type Helper

type Helper interface {
	Add(*Credentials) error
	Delete(serverURL string) error
	Get(serverURL string) (string, string, error)
}

Helper is the interface a credentials store helper must implement.

Source Files

credentials.go helper.go

Version
v0.2.0
Published
Mar 14, 2016
Platform
js/wasm
Imports
8 packages
Last checked
6 hours ago

Tools for package owners.