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

auditlog

package
v0.339.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2026 License: Apache-2.0 Imports: 20 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 AuthAttemptsCmd added in v0.313.0

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

AuthAttemptsCmd wraps commands for authentication-attempt exports.

func DownloadAuthAttemptsCmd added in v0.313.0

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

DownloadAuthAttemptsCmd generates an authentication-attempt export, waits for it to finish, and downloads the ZIP file.

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

type AuthAttemptExportDownload added in v0.313.0

type AuthAttemptExportDownload struct {
	ID      string `header:"id" json:"id"`
	State   string `header:"state" json:"state"`
	Format  string `header:"format" json:"format"`
	StartAt string `header:"start_at" json:"start_at"`
	EndAt   string `header:"end_at" json:"end_at"`
	File    string `header:"file" json:"file"`
}

AuthAttemptExportDownload is the result of downloading an authentication-attempt export.

func (*AuthAttemptExportDownload) MarshalCSVValue added in v0.313.0

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

Jump to

Keyboard shortcuts

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