flagset

package
v0.34.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 20, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

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

func (g *Globals) ToClientOpts() []cerbos.Opt

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL