mirror of https://github.com/docker/docs.git
31 lines
898 B
Go
31 lines
898 B
Go
package store
|
|
|
|
import (
|
|
"crypto/tls"
|
|
"errors"
|
|
"time"
|
|
)
|
|
|
|
var (
|
|
// ErrNotSupported is exported
|
|
ErrNotSupported = errors.New("Backend storage not supported yet, please choose another one")
|
|
// ErrNotImplemented is exported
|
|
ErrNotImplemented = errors.New("Call not implemented in current backend")
|
|
// ErrNotReachable is exported
|
|
ErrNotReachable = errors.New("Api not reachable")
|
|
// ErrCannotLock is exported
|
|
ErrCannotLock = errors.New("Error acquiring the lock")
|
|
// ErrWatchDoesNotExist is exported
|
|
ErrWatchDoesNotExist = errors.New("No watch found for specified key")
|
|
// ErrKeyModified is exported
|
|
ErrKeyModified = errors.New("Unable to complete atomic operation, key modified")
|
|
// ErrKeyNotFound is exported
|
|
ErrKeyNotFound = errors.New("Key not found in store")
|
|
)
|
|
|
|
// Config contains the options for a storage client
|
|
type Config struct {
|
|
TLS *tls.Config
|
|
Timeout time.Duration
|
|
}
|