Documentation ¶
Index ¶
- type AdvancedConf
- type Conf
- type Log
- func (l *Log) AccessLogEntriesBetween(ctx context.Context, fromTS, toTS time.Time) audit.AccessLogIterator
- func (l *Log) AccessLogEntryByID(ctx context.Context, id audit.ID) audit.AccessLogIterator
- func (l *Log) Close()
- func (l *Log) DecisionLogEntriesBetween(ctx context.Context, fromTS, toTS time.Time) audit.DecisionLogIterator
- func (l *Log) DecisionLogEntryByID(ctx context.Context, id audit.ID) audit.DecisionLogIterator
- func (l *Log) LastNAccessLogEntries(ctx context.Context, n uint) audit.AccessLogIterator
- func (l *Log) LastNDecisionLogEntries(ctx context.Context, n uint) audit.DecisionLogIterator
- func (l *Log) WriteAccessLogEntry(ctx context.Context, record audit.AccessLogEntryMaker) error
- func (l *Log) WriteDecisionLogEntry(ctx context.Context, record audit.DecisionLogEntryMaker) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdvancedConf ¶
type Conf ¶
type Conf struct { StoragePath string `yaml:"storagePath"` RetentionPeriod time.Duration `yaml:"retentionPeriod"` Advanced AdvancedConf `yaml:"advanced"` }
func (*Conf) SetDefaults ¶
func (c *Conf) SetDefaults()
type Log ¶
type Log struct {
// contains filtered or unexported fields
}
Log implements the decisionlog interface with Badger as the backing store.
func (*Log) AccessLogEntriesBetween ¶
func (*Log) AccessLogEntryByID ¶
func (*Log) DecisionLogEntriesBetween ¶
func (*Log) DecisionLogEntryByID ¶
func (*Log) LastNAccessLogEntries ¶
func (*Log) LastNDecisionLogEntries ¶
func (*Log) WriteAccessLogEntry ¶
func (*Log) WriteDecisionLogEntry ¶
Click to show internal directories.
Click to hide internal directories.