audit

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

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

Variables

View Source
var (
	CreateUser = &EventInfo{"createUser", "createUser", "user"}
	UpdateUser = &EventInfo{"updateUser", "updateUser", "user"}

	DeleteKey = &EventInfo{"deleteKey", "deleteKey", "key"}
	CreateKey = &EventInfo{"createKey", "createKey", "key"}

	ExteranlAccess = &EventInfo{"exteranlAccess", "createExternalAccessPort", "service"}

	YamlDeploy = &EventInfo{"yamlDeploy", "yamlDeploy", "yamlDeploy"}
)

Functions

func SetAuditInfo

func SetAuditInfo(c *gin.Context, eventInfo *EventInfo, resourceName string) *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