audit

package
v1.216.0 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArrayIndexForObjectIndex

func ArrayIndexForObjectIndex(arrayOfObjects []map[string]interface{}, objectIndex int64) int

ArrayIndexForObjectIndex gets the index of arrayOfObjects where the object's index field is equal to objectIndex.

func ChildObjectChanges

func ChildObjectChanges(changes map[string]interface{}, objectPath string, fieldPath string, changeFrom interface{}, changeTo interface{})

func GetAllChanges

func GetAllChanges(original interface{}, new interface{}) (map[string]interface{}, error)

GetAllChanges Returns the diff, structured in json, recursively Be warned, here be dragons. Debug this first to understand how it works

func GetChanges

func GetChanges(original interface{}, new interface{}) (map[string]interface{}, error)

func GetIntValue

func GetIntValue(object interface{}, key string) int64

func GetStringValue

func GetStringValue(object interface{}, key string) string

func ToSnakeCase

func ToSnakeCase(str string) string

func VerifyAuditEvents added in v1.54.0

func VerifyAuditEvents(original interface{}, new interface{}) error

Types

type FieldChange

type FieldChange struct {
	From interface{} `json:"change_from"`
	To   interface{} `json:"change_to"`
}

Jump to

Keyboard shortcuts

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