This repository has been archived by the owner on May 12, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 376
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
So that shimv2 can convert it into grpc errors. Signed-off-by: Peng Tao <bergwolf@hyper.sh>
- Loading branch information
Showing
5 changed files
with
63 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// Copyright (c) 2017 Intel Corporation | ||
// | ||
// SPDX-License-Identifier: Apache-2.0 | ||
// | ||
|
||
package types | ||
|
||
import ( | ||
"errors" | ||
) | ||
|
||
// common error objects used for argument checking | ||
var ( | ||
ErrNeedSandbox = errors.New("Sandbox must be specified") | ||
ErrNeedSandboxID = errors.New("Sandbox ID cannot be empty") | ||
ErrNeedContainerID = errors.New("Container ID cannot be empty") | ||
ErrNeedState = errors.New("State cannot be empty") | ||
ErrNoSuchContainer = errors.New("Container does not exist") | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters