diff --git a/pkg/probe/probe.go b/pkg/probe/probe.go index 790bdbcf72..f175860d7a 100644 --- a/pkg/probe/probe.go +++ b/pkg/probe/probe.go @@ -16,22 +16,10 @@ limitations under the License. package probe -type Result int +type Result string -// Status values must be one of these constants. const ( - Success Result = iota - Failure - Unknown + Success Result = "success" + Failure Result = "failure" + Unknown Result = "unknown" ) - -func (s Result) String() string { - switch s { - case Success: - return "success" - case Failure: - return "failure" - default: - return "unknown" - } -}