Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
be7c2230
Commit
be7c2230
authored
Aug 01, 2015
by
Tamer Tas
Committed by
Tamer Tas
Aug 10, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor probe.Result enumeration
parent
72db1230
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
16 deletions
+4
-16
probe.go
pkg/probe/probe.go
+4
-16
No files found.
pkg/probe/probe.go
View file @
be7c2230
...
...
@@ -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"
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment