mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-04-28 11:55:51 +00:00
* Remove `logger` module * Remove `shared` module * Move `cli` folder contents into project root * Fix linter * Change the module name from `github.com/kubeshark/kubeshark/cli` to `github.com/kubeshark/kubeshark` * Set the default `Makefile` rule to `build` * Add `lint` rule * Fix the linter errors
27 lines
717 B
Go
27 lines
717 B
Go
package kubernetes
|
|
|
|
type K8sTapManagerErrorReason string
|
|
|
|
const (
|
|
TapManagerTapperUpdateError K8sTapManagerErrorReason = "TAPPER_UPDATE_ERROR"
|
|
TapManagerPodWatchError K8sTapManagerErrorReason = "POD_WATCH_ERROR"
|
|
TapManagerPodListError K8sTapManagerErrorReason = "POD_LIST_ERROR"
|
|
)
|
|
|
|
type K8sTapManagerError struct {
|
|
OriginalError error
|
|
TapManagerReason K8sTapManagerErrorReason
|
|
}
|
|
|
|
// K8sTapManagerError implements the Error interface.
|
|
func (e *K8sTapManagerError) Error() string {
|
|
return e.OriginalError.Error()
|
|
}
|
|
|
|
type ClusterBehindProxyError struct{}
|
|
|
|
// ClusterBehindProxyError implements the Error interface.
|
|
func (e *ClusterBehindProxyError) Error() string {
|
|
return "Cluster is behind proxy"
|
|
}
|