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
	Password  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.1.0
Published
Feb 29, 2016
Platform
linux/amd64
Imports
8 packages
Last checked
1 hour ago

Tools for package owners.