Signed-off-by: Deng Guangxing <dengguangxing@huawei.com>
| ... | ... |
@@ -30,7 +30,7 @@ type imageNotFoundError struct {
|
| 30 | 30 |
imageID string |
| 31 | 31 |
} |
| 32 | 32 |
|
| 33 |
-// NoFound indicates that this error type is of NotFound |
|
| 33 |
+// NotFound indicates that this error type is of NotFound |
|
| 34 | 34 |
func (e imageNotFoundError) NotFound() bool {
|
| 35 | 35 |
return true |
| 36 | 36 |
} |
| ... | ... |
@@ -51,7 +51,7 @@ type containerNotFoundError struct {
|
| 51 | 51 |
containerID string |
| 52 | 52 |
} |
| 53 | 53 |
|
| 54 |
-// NoFound indicates that this error type is of NotFound |
|
| 54 |
+// NotFound indicates that this error type is of NotFound |
|
| 55 | 55 |
func (e containerNotFoundError) NotFound() bool {
|
| 56 | 56 |
return true |
| 57 | 57 |
} |
| ... | ... |
@@ -72,7 +72,7 @@ type networkNotFoundError struct {
|
| 72 | 72 |
networkID string |
| 73 | 73 |
} |
| 74 | 74 |
|
| 75 |
-// NoFound indicates that this error type is of NotFound |
|
| 75 |
+// NotFound indicates that this error type is of NotFound |
|
| 76 | 76 |
func (e networkNotFoundError) NotFound() bool {
|
| 77 | 77 |
return true |
| 78 | 78 |
} |
| ... | ... |
@@ -93,12 +93,12 @@ type volumeNotFoundError struct {
|
| 93 | 93 |
volumeID string |
| 94 | 94 |
} |
| 95 | 95 |
|
| 96 |
-// NoFound indicates that this error type is of NotFound |
|
| 96 |
+// NotFound indicates that this error type is of NotFound |
|
| 97 | 97 |
func (e volumeNotFoundError) NotFound() bool {
|
| 98 | 98 |
return true |
| 99 | 99 |
} |
| 100 | 100 |
|
| 101 |
-// Error returns a string representation of a networkNotFoundError |
|
| 101 |
+// Error returns a string representation of a volumeNotFoundError |
|
| 102 | 102 |
func (e volumeNotFoundError) Error() string {
|
| 103 | 103 |
return fmt.Sprintf("Error: No such volume: %s", e.volumeID)
|
| 104 | 104 |
} |
| ... | ... |
@@ -136,7 +136,7 @@ func (e nodeNotFoundError) Error() string {
|
| 136 | 136 |
return fmt.Sprintf("Error: No such node: %s", e.nodeID)
|
| 137 | 137 |
} |
| 138 | 138 |
|
| 139 |
-// NoFound indicates that this error type is of NotFound |
|
| 139 |
+// NotFound indicates that this error type is of NotFound |
|
| 140 | 140 |
func (e nodeNotFoundError) NotFound() bool {
|
| 141 | 141 |
return true |
| 142 | 142 |
} |
| ... | ... |
@@ -158,7 +158,7 @@ func (e serviceNotFoundError) Error() string {
|
| 158 | 158 |
return fmt.Sprintf("Error: No such service: %s", e.serviceID)
|
| 159 | 159 |
} |
| 160 | 160 |
|
| 161 |
-// NoFound indicates that this error type is of NotFound |
|
| 161 |
+// NotFound indicates that this error type is of NotFound |
|
| 162 | 162 |
func (e serviceNotFoundError) NotFound() bool {
|
| 163 | 163 |
return true |
| 164 | 164 |
} |
| ... | ... |
@@ -180,7 +180,7 @@ func (e taskNotFoundError) Error() string {
|
| 180 | 180 |
return fmt.Sprintf("Error: No such task: %s", e.taskID)
|
| 181 | 181 |
} |
| 182 | 182 |
|
| 183 |
-// NoFound indicates that this error type is of NotFound |
|
| 183 |
+// NotFound indicates that this error type is of NotFound |
|
| 184 | 184 |
func (e taskNotFoundError) NotFound() bool {
|
| 185 | 185 |
return true |
| 186 | 186 |
} |