Documentation ¶
Index ¶
- func Factory(ctx context.Context, conf *audit.BackendConfig) (audit.Backend, error)
- type Backend
- func (b *Backend) GetHash(ctx context.Context, data string) (string, error)
- func (b *Backend) Invalidate(_ context.Context)
- func (b *Backend) LogRequest(ctx context.Context, in *logical.LogInput) error
- func (b *Backend) LogResponse(ctx context.Context, in *logical.LogInput) error
- func (b *Backend) LogTestMessage(ctx context.Context, in *logical.LogInput, config map[string]string) error
- func (b *Backend) Reload(_ context.Context) error
- func (b *Backend) Salt(ctx context.Context) (*salt.Salt, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Backend ¶
type Backend struct {
// contains filtered or unexported fields
}
Backend is the audit backend for the file-based audit store.
NOTE: This audit backend is currently very simple: it appends to a file. It doesn't do anything more at the moment to assist with rotation or reset the write cursor, this should be done in the future.
func (*Backend) Invalidate ¶
func (*Backend) LogRequest ¶
func (*Backend) LogResponse ¶
func (*Backend) LogTestMessage ¶
Click to show internal directories.
Click to hide internal directories.