-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #123 from layer5io/kumarabd/featuer/rework
updated version for istio
- Loading branch information
Showing
8 changed files
with
938 additions
and
192 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package smi | ||
|
||
import ( | ||
"fmt" | ||
|
||
"github.com/layer5io/gokit/errors" | ||
) | ||
|
||
// ErrSmiInit is the error for smi init method | ||
func ErrSmiInit(des string) error { | ||
return errors.New(errors.ErrSmiInit, des) | ||
} | ||
|
||
// ErrInstallSmi is the error for installing smi tool | ||
func ErrInstallSmi(err error) error { | ||
return errors.New(errors.ErrInstallSmi, fmt.Sprintf("Error installing smi tool: %s", err.Error())) | ||
} | ||
|
||
// ErrConnectSmi is the error for connecting to smi tool | ||
func ErrConnectSmi(err error) error { | ||
return errors.New(errors.ErrConnectSmi, fmt.Sprintf("Error connecting to smi tool: %s", err.Error())) | ||
} | ||
|
||
// ErrRunSmi is the error for running conformance test | ||
func ErrRunSmi(err error) error { | ||
return errors.New(errors.ErrRunSmi, fmt.Sprintf("Error running smi tool: %s", err.Error())) | ||
} | ||
|
||
// ErrDeleteSmi is the error for deleteing smi tool | ||
func ErrDeleteSmi(err error) error { | ||
return errors.New(errors.ErrDeleteSmi, fmt.Sprintf("Error deleting smi tool: %s", err.Error())) | ||
} |
Oops, something went wrong.