Commit be7c2230 authored by Tamer Tas's avatar Tamer Tas Committed by Tamer Tas

Refactor probe.Result enumeration

parent 72db1230
......@@ -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"
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment