auditlog

package
v0.137.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuditLogCmd

func AuditLogCmd(ch *cmdutil.Helper) *cobra.Command

AuditLogCmd handles audit logs.

func ListCmd

func ListCmd(ch *cmdutil.Helper) *cobra.Command

ListCmd encapsulates the command for listing audit logs for an organization.

Types

type AuditLog

type AuditLog struct {
	ID        string `header:"id" json:"id"`
	Actor     string `header:"actor" json:"actor"`
	Action    string `header:"action" json:"action"`
	Event     string `header:"event" json:"type"`
	RemoteIP  string `header:"remote_ip" json:"remote_ip"`
	Location  string `header:"location" json:"location"`
	CreatedAt int64  `header:"created_at,timestamp(ms|utc|human)" json:"created_at"`
	// contains filtered or unexported fields
}

func (*AuditLog) MarshalCSVValue

func (a *AuditLog) MarshalCSVValue() interface{}

func (*AuditLog) MarshalJSON

func (a *AuditLog) MarshalJSON() ([]byte, error)

type AuditLogs

type AuditLogs []*AuditLog

func (AuditLogs) String

func (a AuditLogs) String() string

Jump to

Keyboard shortcuts

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