mirror of https://github.com/docker/cli.git
fix typo in client/errors.go comments
Signed-off-by: Deng Guangxing <dengguangxing@huawei.com>
This commit is contained in:
parent
2ba5d3a260
commit
afb60b86d7
16
errors.go
16
errors.go
|
@ -30,7 +30,7 @@ type imageNotFoundError struct {
|
||||||
imageID string
|
imageID string
|
||||||
}
|
}
|
||||||
|
|
||||||
// NoFound indicates that this error type is of NotFound
|
// NotFound indicates that this error type is of NotFound
|
||||||
func (e imageNotFoundError) NotFound() bool {
|
func (e imageNotFoundError) NotFound() bool {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
@ -51,7 +51,7 @@ type containerNotFoundError struct {
|
||||||
containerID string
|
containerID string
|
||||||
}
|
}
|
||||||
|
|
||||||
// NoFound indicates that this error type is of NotFound
|
// NotFound indicates that this error type is of NotFound
|
||||||
func (e containerNotFoundError) NotFound() bool {
|
func (e containerNotFoundError) NotFound() bool {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
@ -72,7 +72,7 @@ type networkNotFoundError struct {
|
||||||
networkID string
|
networkID string
|
||||||
}
|
}
|
||||||
|
|
||||||
// NoFound indicates that this error type is of NotFound
|
// NotFound indicates that this error type is of NotFound
|
||||||
func (e networkNotFoundError) NotFound() bool {
|
func (e networkNotFoundError) NotFound() bool {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
@ -93,12 +93,12 @@ type volumeNotFoundError struct {
|
||||||
volumeID string
|
volumeID string
|
||||||
}
|
}
|
||||||
|
|
||||||
// NoFound indicates that this error type is of NotFound
|
// NotFound indicates that this error type is of NotFound
|
||||||
func (e volumeNotFoundError) NotFound() bool {
|
func (e volumeNotFoundError) NotFound() bool {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
// Error returns a string representation of a networkNotFoundError
|
// Error returns a string representation of a volumeNotFoundError
|
||||||
func (e volumeNotFoundError) Error() string {
|
func (e volumeNotFoundError) Error() string {
|
||||||
return fmt.Sprintf("Error: No such volume: %s", e.volumeID)
|
return fmt.Sprintf("Error: No such volume: %s", e.volumeID)
|
||||||
}
|
}
|
||||||
|
@ -136,7 +136,7 @@ func (e nodeNotFoundError) Error() string {
|
||||||
return fmt.Sprintf("Error: No such node: %s", e.nodeID)
|
return fmt.Sprintf("Error: No such node: %s", e.nodeID)
|
||||||
}
|
}
|
||||||
|
|
||||||
// NoFound indicates that this error type is of NotFound
|
// NotFound indicates that this error type is of NotFound
|
||||||
func (e nodeNotFoundError) NotFound() bool {
|
func (e nodeNotFoundError) NotFound() bool {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
@ -158,7 +158,7 @@ func (e serviceNotFoundError) Error() string {
|
||||||
return fmt.Sprintf("Error: No such service: %s", e.serviceID)
|
return fmt.Sprintf("Error: No such service: %s", e.serviceID)
|
||||||
}
|
}
|
||||||
|
|
||||||
// NoFound indicates that this error type is of NotFound
|
// NotFound indicates that this error type is of NotFound
|
||||||
func (e serviceNotFoundError) NotFound() bool {
|
func (e serviceNotFoundError) NotFound() bool {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
@ -180,7 +180,7 @@ func (e taskNotFoundError) Error() string {
|
||||||
return fmt.Sprintf("Error: No such task: %s", e.taskID)
|
return fmt.Sprintf("Error: No such task: %s", e.taskID)
|
||||||
}
|
}
|
||||||
|
|
||||||
// NoFound indicates that this error type is of NotFound
|
// NotFound indicates that this error type is of NotFound
|
||||||
func (e taskNotFoundError) NotFound() bool {
|
func (e taskNotFoundError) NotFound() bool {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue