file

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conf

type Conf struct {
	// Path to the log file to use as output. The special values stdout and stderr can be used to write to stdout or stderr respectively.
	Path string `yaml:"path" conf:",example=/path/to/file.log"`
}

Conf is optional configuration for file Audit.

func (*Conf) Key

func (c *Conf) Key() string

func (*Conf) SetDefaults

func (c *Conf) SetDefaults()

func (*Conf) Validate

func (c *Conf) Validate() error

type Log

type Log struct {
	// contains filtered or unexported fields
}

func NewLog

func NewLog(conf *Conf) (*Log, error)

func (*Log) Close

func (l *Log) Close()

func (*Log) WriteAccessLogEntry

func (l *Log) WriteAccessLogEntry(_ context.Context, record audit.AccessLogEntryMaker) error

func (*Log) WriteDecisionLogEntry

func (l *Log) WriteDecisionLogEntry(_ context.Context, record audit.DecisionLogEntryMaker) error

Jump to

Keyboard shortcuts

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