Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuditFilters ¶
type AuditFilters struct { Lookup string `help:"View a specific record using the Cerbos Call ID"` Between timerange `help:"View records captured between two timestamps. The timestamps must be formatted as ISO-8601"` Since time.Duration `help:"View records from X hours/minutes/seconds ago to now. Unit suffixes are: h=hours, m=minutes s=seconds"` Tail uint16 `help:"View the last N records"` }
func (*AuditFilters) GenOptions ¶
func (af *AuditFilters) GenOptions() cerbos.AuditLogOptions
func (*AuditFilters) Validate ¶
func (af *AuditFilters) Validate() error
type Globals ¶
type Globals struct { Server string `help:"Address of the Cerbos server" env:"CERBOS_SERVER" default:"localhost:3593"` Username string `help:"Admin username" env:"CERBOS_USERNAME"` Password string `help:"Admin password" env:"CERBOS_PASSWORD"` CaCert string `help:"Path to the CA certificate for verifying server identity"` TLSClientCert string `name:"client-cert" help:"Path to the TLS client certificate"` TLSClientKey string `name:"client-key" help:"Path to the TLS client key"` Insecure bool `help:"Skip validating server certificate"` Plaintext bool `help:"Use plaintext protocol without TLS"` }
func (*Globals) ToClientOpts ¶
Click to show internal directories.
Click to hide internal directories.