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

audit

package
v2.0.19 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: AGPL-3.0 Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Version      string    `json:"version"`
	DeploymentID string    `json:"deploymentid,omitempty"`
	Time         time.Time `json:"time"`
	Event        string    `json:"event"`

	// Class of audit message - S3, admin ops, bucket management
	Type string `json:"type,omitempty"`

	// deprecated replaced by 'Event', kept here for some
	// time for backward compatibility with k8s Operator.
	Trigger string `json:"trigger"`
	API     struct {
		Name                string          `json:"name,omitempty"`
		Bucket              string          `json:"bucket,omitempty"`
		Object              string          `json:"object,omitempty"`
		Objects             []ObjectVersion `json:"objects,omitempty"`
		Status              string          `json:"status,omitempty"`
		StatusCode          int             `json:"statusCode,omitempty"`
		InputBytes          int64           `json:"rx"`
		OutputBytes         int64           `json:"tx"`
		HeaderBytes         int64           `json:"txHeaders,omitempty"`
		TimeToFirstByte     string          `json:"timeToFirstByte,omitempty"`
		TimeToFirstByteInNS string          `json:"timeToFirstByteInNS,omitempty"`
		TimeToResponse      string          `json:"timeToResponse,omitempty"`
		TimeToResponseInNS  string          `json:"timeToResponseInNS,omitempty"`
	} `json:"api"`
	RemoteHost string                 `json:"remotehost,omitempty"`
	RequestID  string                 `json:"requestID,omitempty"`
	UserAgent  string                 `json:"userAgent,omitempty"`
	ReqPath    string                 `json:"requestPath,omitempty"`
	ReqHost    string                 `json:"requestHost,omitempty"`
	ReqClaims  map[string]interface{} `json:"requestClaims,omitempty"`
	ReqQuery   map[string]string      `json:"requestQuery,omitempty"`
	ReqHeader  map[string]string      `json:"requestHeader,omitempty"`
	RespHeader map[string]string      `json:"responseHeader,omitempty"`
	Tags       map[string]interface{} `json:"tags,omitempty"`

	AccessKey  string `json:"accessKey,omitempty"`
	ParentUser string `json:"parentUser,omitempty"`

	Error string `json:"error,omitempty"`
}

Entry - audit entry logs.

type ObjectVersion

type ObjectVersion struct {
	ObjectName string `json:"objectName"`
	VersionID  string `json:"versionId,omitempty"`
}

ObjectVersion object version key/versionId

Jump to

Keyboard shortcuts

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