admin control features and admin dashboard
This commit is contained in:
1 parent
c630f13c57
commit
37910e410b
69 files changed
+4959
-400
No files matched your search
+42
-3
@@ -20,9 +20,10 @@ const (
|
||||
IPDone = "done"
|
||||
IPFailed = "failed"
|
||||
|
||||
ResultPass = "pass"
|
||||
ResultPartial = "partial"
|
||||
ResultFail = "fail"
|
||||
ResultPass = "pass"
|
||||
ResultPartial = "partial"
|
||||
ResultFail = "fail"
|
||||
ResultCancelled = "cancelled"
|
||||
|
||||
SourceEgress = "egress"
|
||||
)
|
||||
@@ -115,3 +116,41 @@ type Event struct {
|
||||
OccurredAt time.Time
|
||||
CreatedAt time.Time
|
||||
}
|
||||
|
||||
type Site struct {
|
||||
Index int
|
||||
SiteID string
|
||||
CreatedAt time.Time
|
||||
UpdatedAt time.Time
|
||||
}
|
||||
|
||||
type TargetGroup struct {
|
||||
Name string
|
||||
Targets []string
|
||||
CreatedAt time.Time
|
||||
UpdatedAt time.Time
|
||||
}
|
||||
|
||||
type CheckType struct {
|
||||
Name string
|
||||
Enabled bool
|
||||
TargetGroups []string
|
||||
CreatedAt time.Time
|
||||
UpdatedAt time.Time
|
||||
}
|
||||
|
||||
// ResolvedCheckType is a check type with its target groups already expanded
|
||||
// into a flat target list — what AssignmentForValidator hands to an agent.
|
||||
type ResolvedCheckType struct {
|
||||
Type string
|
||||
Targets []string
|
||||
}
|
||||
|
||||
// SubmitIPsResult categorizes how each address in a SubmitIPs call was
|
||||
// handled.
|
||||
type SubmitIPsResult struct {
|
||||
Added []string
|
||||
Requeued []string
|
||||
Reordered []string
|
||||
SkippedInProgress []string
|
||||
}
|
||||
Reference in new issue
Block a user