Help us shape the future of Go! Take the 2026 Go Developer Survey

audit

package
v0.46.16 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2025 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InvalidValue = "invalid_value"
	NotDefined   = "not_defined"
	Empty        = "empty"
)

Variables

This section is empty.

Functions

func LogRequest

func LogRequest(ctx context.Context, log *logger.Logger, operation string, req Request, target Target, status bool)

func LogRequestWithKey

func LogRequestWithKey(ctx context.Context, log *logger.Logger, operation string, key []byte, target Target, status bool)

Types

type ModelType

type ModelType[T any] interface {
	ReadFromV2(m T) error
	String() string
}

type Request

type Request interface {
	GetVerificationHeader() *session.RequestVerificationHeader
}

type Target

type Target interface {
	String() string
}

func TargetFromChainID

func TargetFromChainID(chainTargetType, chainTargetName string, chainID []byte) Target

func TargetFromContainerIDObjectID

func TargetFromContainerIDObjectID(containerID *refs.ContainerID, objectID *refs.ObjectID) Target

func TargetFromRef

func TargetFromRef[T any](ref *T, model ModelType[T]) Target

func TargetFromRefs

func TargetFromRefs[T any](refs []*T, model ModelType[T]) Target

func TargetFromString

func TargetFromString(s string) Target

Jump to

Keyboard shortcuts

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