audit

package
v0.0.0-...-17e6b21 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuditEvent

type AuditEvent struct {
	EventID     string                 `json:"event_id"`
	Timestamp   time.Time              `json:"timestamp"`
	Action      string                 `json:"action"`
	KeyID       string                 `json:"key_id"`
	Algorithm   string                 `json:"algorithm"`
	Version     int                    `json:"version"`
	Status      string                 `json:"status"`
	UserID      string                 `json:"user_id"`
	IPAddress   string                 `json:"ip_address"`
	Metadata    map[string]interface{} `json:"metadata"`
	TraceID     string                 `json:"trace_id"`
	Success     bool                   `json:"success"`
	ErrorDetail string                 `json:"error_detail,omitempty"`
}

type AuditLogger

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

func NewAuditLogger

func NewAuditLogger(
	natsURL string,
	metrics *metrics.QuantumStorageMetrics,
	tracer tracing.Tracer,
) (*AuditLogger, error)

func (*AuditLogger) Close

func (l *AuditLogger) Close() error

func (*AuditLogger) LogKeyEvent

func (l *AuditLogger) LogKeyEvent(ctx context.Context, event *AuditEvent) error

Jump to

Keyboard shortcuts

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