Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ProgPrefix = "docker-credential-"
ProgPrefix is prefix that is prepended to all command names before checking for existence.
Functions ¶
This section is empty.
Types ¶
type Crocker ¶
type Crocker struct {
Prog client.ProgramFunc
}
Crocker is a helper to help with the docker credential helpers.
func NewWithStrategy ¶
New creates a Crocker instance with the supplied strategy.
func (*Crocker) Get ¶
func (c *Crocker) Get(serverURL string) (*credentials.Credentials, error)
Get gets credentials using the detected helper.
func (*Crocker) Store ¶
func (c *Crocker) Store(creds *credentials.Credentials) error
Store stores credentials using the detected helper.
type MemThenStockStrategy ¶
type MemThenStockStrategy struct{}
MemThenStockStrategy is a strategy for finding helpers.
func (MemThenStockStrategy) Helper ¶
func (s MemThenStockStrategy) Helper() (string, error)
Helper in MemThenStockStrategy checks for the cachemem (in memory store) helper and then falls back to the StockStrategy.
type StockStrategy ¶
type StockStrategy struct{}
StockStrategy is a strategy for finding helpers.
func (StockStrategy) Helper ¶
func (s StockStrategy) Helper() (string, error)
Helper in StockStrategy checks for the existence of the appropriate platform helper. It only checks for the stock, upstream, helpers.