diff options
| author | Jeff Carr <[email protected]> | 2024-01-08 22:34:08 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-08 22:34:08 -0600 |
| commit | ba020cdb3765a9ce734a8fea4ba484258dbb6f8b (patch) | |
| tree | d1e8273bb5d125271c446a31d6b7f9de8b6913a0 /problems.go | |
| parent | 9b4bf224dcf4a7d29433be25e73d33b45b670d0b (diff) | |
go.wit.com/log NewFlag()
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'problems.go')
| -rw-r--r-- | problems.go | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/problems.go b/problems.go index f315d8b..9a630ad 100644 --- a/problems.go +++ b/problems.go @@ -14,11 +14,19 @@ type Problem struct { id int Name string + desc string value string + aaaa string fixed bool duration *time.Duration } +var IPcreate = Problem { + kind: RR, + action: CREATE, + desc: "This RR entry in the zonefile needs to be removed", +} + /* var hostname Problem = ( kind: ProblemType.OS, @@ -46,3 +54,29 @@ const ( func (s Problem) String() string { return s.Name } + +func (s ProblemType) String() string { + switch s { + case OS: + return "OS" + case RR: + return "RR" + default: + return "something" + } + return "someprob" +} + +func (s ActionType) String() string { + switch s { + case USER: + return "USER" + case CREATE: + return "CREATE" + case DELETE: + return "DELETE" + default: + return "something" + } + return "someprob" +} |
