audit

package
v0.42.17 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: GPL-3.0 Imports: 10 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(log *logger.Logger, operation string, req Request, target Target, status bool)

func LogRequestWithKey

func LogRequestWithKey(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