auditlogs

package
v0.0.22 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	K8sAuditLogPrefix = "_k8sAuditLogs"
)

Variables

This section is empty.

Functions

func GetEventAuditMockAsString

func GetEventAuditMockAsString() string

func GetK8sAuditEventMock

func GetK8sAuditEventMock() (audit.Event, error)

Types

type K8sAuditLog

type K8sAuditLog struct {
	CAClusterName string          `json:"caClusterName"`
	CANamespace   string          `json:"caNamespace"`
	Event         json.RawMessage `json:"k8sV1Event"`
}

K8sAuditLog - ARMO audit event wrapper

func Newk8sAuditLog

func Newk8sAuditLog(cluster, namespace string, auditRAW *k8saudit.Event) (*K8sAuditLog, error)

func (*K8sAuditLog) GetRawK8sEvent

func (v *K8sAuditLog) GetRawK8sEvent() *k8saudit.Event

func (*K8sAuditLog) NKeys

func (file *K8sAuditLog) NKeys() int

func (*K8sAuditLog) UnmarshalJSONObject

func (l *K8sAuditLog) UnmarshalJSONObject(dec *gojay.Decoder, key string) (err error)

UnmarshalJSONObject - File inside a pkg

func (*K8sAuditLog) Validate

func (v *K8sAuditLog) Validate() bool

type K8sAuditLogs

type K8sAuditLogs []K8sAuditLog

K8sAuditLogs - slice of K8sAuditLog

func (*K8sAuditLogs) UnmarshalJSONArray

func (logs *K8sAuditLogs) UnmarshalJSONArray(dec *gojay.Decoder) error

Jump to

Keyboard shortcuts

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