audit

package
v1.9.2 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EventName         = "event"
	EventResourceType = "resourceType"
	EventResourceName = "resourceName"
	EventDescription  = "description"
	EventRequestBody  = "requestBody"
)

Variables

View Source
var (
	CreateUser       = &EventInfo{"createUser", "createUser", "user"}
	UpdateUser       = &EventInfo{"updateUser", "updateUser", "user"}
	DeleteKey        = &EventInfo{"deleteKey", "deleteKey", "key"}
	CreateKey        = &EventInfo{"createKey", "createKey", "key"}
	CreateConfigMap  = &EventInfo{"createConfigMap", "createConfigMap", "configmap"}
	DeleteConfigMap  = &EventInfo{"deleteConfigMap", "deleteConfigMap", "configmap"}
	UpdateConfigMap  = &EventInfo{"updateConfigMap", "updateConfigMap", "configmap"}
	RolloutConfigMap = &EventInfo{"rolloutConfigMap", "rolloutConfigMap", "configmap"}
)

Functions

func SetAuditInfo

func SetAuditInfo(c *gin.Context, eventInfo *EventInfo, resourceName string, RequestBody interface{}) *gin.Context

Types

type EventInfo

type EventInfo struct {
	EventName    string
	Description  string
	ResourceType string
}

Jump to

Keyboard shortcuts

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