1
0
mirror of https://github.com/rancher/os.git synced 2025-09-02 07:15:41 +00:00

Update vendor

This commit is contained in:
Darren Shepherd
2016-05-31 18:12:52 -07:00
parent 410dfbe0fd
commit a14846152b
1253 changed files with 222820 additions and 15054 deletions

View File

@@ -5,7 +5,7 @@ import (
"fmt"
)
// ErrConnectionFailed is an error raised when the connection between the client and the server failed.
// ErrConnectionFailed is a error raised when the connection between the client and the server failed.
var ErrConnectionFailed = errors.New("Cannot connect to the Docker daemon. Is the docker daemon running on this host?")
// imageNotFoundError implements an error returned when an image is not in the docker host.
@@ -30,7 +30,7 @@ type containerNotFoundError struct {
containerID string
}
// Error returns a string representation of a containerNotFoundError
// Error returns a string representation of an containerNotFoundError
func (e containerNotFoundError) Error() string {
return fmt.Sprintf("Error: No such container: %s", e.containerID)
}
@@ -47,7 +47,7 @@ type networkNotFoundError struct {
networkID string
}
// Error returns a string representation of a networkNotFoundError
// Error returns a string representation of an networkNotFoundError
func (e networkNotFoundError) Error() string {
return fmt.Sprintf("Error: No such network: %s", e.networkID)
}
@@ -64,7 +64,7 @@ type volumeNotFoundError struct {
volumeID string
}
// Error returns a string representation of a networkNotFoundError
// Error returns a string representation of an networkNotFoundError
func (e volumeNotFoundError) Error() string {
return fmt.Sprintf("Error: No such volume: %s", e.volumeID)
}
@@ -87,7 +87,7 @@ func (u unauthorizedError) Error() string {
}
// IsErrUnauthorized returns true if the error is caused
// when a remote registry authentication fails
// when an the remote registry authentication fails
func IsErrUnauthorized(err error) bool {
_, ok := err.(unauthorizedError)
return ok