diff options
Diffstat (limited to 'pkg/policy/policy.go')
-rw-r--r-- | pkg/policy/policy.go | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/pkg/policy/policy.go b/pkg/policy/policy.go new file mode 100644 index 0000000..8ee4867 --- /dev/null +++ b/pkg/policy/policy.go @@ -0,0 +1,18 @@ +// Package policy specifies which certificates to look for while monitoring, and +// how to pull legitimately issued certificates from trusted nodes based on a +// shared secret. Statically configured logs can also be specified, as well as +// logs that should not be monitored even if they appear in any dynamic list. +package policy + +import ( + "gitlab.torproject.org/rgdd/ct/pkg/metadata" +) + +type Policy struct { + Monitor Wildcards `json:"monitor"` + Nodes []Node `json:"nodes"` + + // Optional + StaticLogs []metadata.Log `json:"static_logs"` + RemoveLogs []metadata.LogKey `json:"remove_logs"` +} |