VAULT-17078: Audit types refactor (#22000)

* moved types to types.go
This commit is contained in:
Peter Wilson
2023-07-21 16:37:05 +01:00
committed by GitHub
parent 5ba848dbdd
commit fec766e91a
4 changed files with 301 additions and 291 deletions

View File

@@ -9,22 +9,6 @@ import (
"time"
)
// Option is how options are passed as arguments.
type Option func(*options) error
// options are used to represent configuration for a audit related nodes.
type options struct {
withID string
withNow time.Time
withSubtype subtype
withFormat format
withPrefix string
withRaw bool
withElision bool
withOmitTime bool
withHMACAccessor bool
}
// getDefaultOptions returns options with their default values.
func getDefaultOptions() options {
return options{