diff options
author | Rasmus Dahlberg <rasmus@rgdd.se> | 2024-06-01 15:35:45 +0200 |
---|---|---|
committer | Rasmus Dahlberg <rasmus@rgdd.se> | 2024-06-02 13:04:04 +0200 |
commit | 62f94ac6a1404834ac6f0723ef57e25fcd5e67f9 (patch) | |
tree | 5a70ce3dec39229d37816dafed0d944016c1dd54 /pkg/policy/wildcard.go | |
parent | 279de6a1195adb739a8d1f2afb445b68793b28b8 (diff) |
Improve terminology and documentationmain
Diffstat (limited to 'pkg/policy/wildcard.go')
-rw-r--r-- | pkg/policy/wildcard.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/policy/wildcard.go b/pkg/policy/wildcard.go index c67e1d9..b0bdf61 100644 --- a/pkg/policy/wildcard.go +++ b/pkg/policy/wildcard.go @@ -38,7 +38,7 @@ func (w *Wildcards) match(sans []string, notAfter time.Time) bool { // 2. the certificate expired before the BootstrapAt timestamp. type Wildcard struct { BootstrapAt time.Time `json:"bootstrap_at"` - Wildcard string `json:"wildcard"` + Wildcard string `json:"suffix"` Excludes []string `json:"excludes,omitempty"` } @@ -52,10 +52,10 @@ func (w *Wildcard) UnmarshalJSON(data []byte) error { func (w *Wildcard) Validate() error { if w.BootstrapAt.IsZero() { - return fmt.Errorf("bootstrap time is required") + return fmt.Errorf("bootstrap_at is required") } if len(w.Wildcard) == 0 { - return fmt.Errorf("wildcard is required") + return fmt.Errorf("suffix is required") } return nil } |