Documentation ¶
Index ¶
Constants ¶
View Source
const (
K8sAuditLogPrefix = "_k8sAuditLogs"
)
Variables ¶
This section is empty.
Functions ¶
func GetEventAuditMockAsString ¶
func GetEventAuditMockAsString() string
func GetK8sAuditEventMock ¶
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
Click to show internal directories.
Click to hide internal directories.