From 62f94ac6a1404834ac6f0723ef57e25fcd5e67f9 Mon Sep 17 00:00:00 2001 From: Rasmus Dahlberg Date: Sat, 1 Jun 2024 15:35:45 +0200 Subject: Improve terminology and documentation --- pkg/policy/wildcard.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pkg/policy/wildcard.go') 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 } -- cgit v1.2.3