Help us shape the future of Go! Take the 2026 Go Developer Survey

auditlog

package
v0.110.0 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2022 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