types

package
v1.9.0-industry.4 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 8 more Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	AuditID    string `json:"auditID"`
	Stage      string `json:"stage"`
	RequestURI string `json:"requestURI"`
	Verb       string `json:"verb"`
	UserName   string `json:"userName"`
	UserAgent  string `json:"userAgent"`

	Resource   string    `json:"resource"`
	Namespace  string    `json:"namespace"`
	Name       string    `json:"name"`
	UID        types.UID `json:"uid"`
	APIGroup   string    `json:"apiGroup"`
	APIVersion string    `json:"apiVersion"`
	SourceIPs  string    `json:"sourceIPs"`

	Status  string `json:"status"`
	Message string `json:"message"`
	Reason  string `json:"reason"`
	Details string `json:"details"`
	Code    int32  `json:"code"`

	RequestObject  string `json:"requestObject"`
	ResponseObject string `json:"responseObject"`

	RequestReceivedTimestamp int64 `json:"requestReceivedTimestamp"`
	StageTimestamp           int64 `json:"stageTimestamp"`

	ClusterName string `json:"clusterName"`
}

func ConvertEvents

func ConvertEvents(events []audit.Event) []*Event

Jump to

Keyboard shortcuts

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