validation

package
v0.0.8 Latest Latest
Warning

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

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

Documentation

Overview

Package validation provides utils for lumberjack/data access logs validation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Validate

func Validate(log string, extra ...Validator) error

Validate validates a json string representation of a lumberjack log.

func ValidateAuditLog

func ValidateAuditLog(payload *cal.AuditLog) error

ValidateAuditLog validates the audit log payload for lumberjack.

func ValidateLabels

func ValidateLabels(le *lepb.LogEntry) error

ValidateLabels checks required lumberjack labels.

Types

type Validator

type Validator func(le *lepb.LogEntry) error

Validator validates a lumberjack log entry.

Jump to

Keyboard shortcuts

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