cmd

package
v0.0.0-...-c6a886f Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2025 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately.

Types

type ActionCount

type ActionCount struct {
	Action string `json:"action"`
	Count  int    `json:"count"`
}

type AuditStats

type AuditStats struct {
	TenantID           string         `json:"tenant_id"`
	GeneratedAt        time.Time      `json:"generated_at"`
	TimeRange          string         `json:"time_range"`
	TotalEvents        int            `json:"total_events"`
	SuccessfulEvents   int            `json:"successful_events"`
	FailedEvents       int            `json:"failed_events"`
	SuccessRate        float64        `json:"success_rate"`
	ActionBreakdown    map[string]int `json:"action_breakdown"`
	HourlyDistribution map[string]int `json:"hourly_distribution"`
	DailyDistribution  map[string]int `json:"daily_distribution"`
	TopFailedActions   []ActionCount  `json:"top_failed_actions"`
	TopSecrets         []SecretCount  `json:"top_secrets"`
	TopKeys            []KeyCount     `json:"top_keys"`
	FirstEvent         *time.Time     `json:"first_event,omitempty"`
	LastEvent          *time.Time     `json:"last_event,omitempty"`
	CredsOperations    int            `json:"creds_operations"`
	SecretOperations   int            `json:"secret_operations"`
	KeyOperations      int            `json:"key_operations"`
}

AuditStats represents comprehensive audit statistics

type CLIContext

type CLIContext struct {
	UserID    string
	SessionID string
	Source    string // hostname/IP
	StartTime time.Time
}

type KeyCount

type KeyCount struct {
	KeyID string `json:"key_id"`
	Count int    `json:"count"`
}

type SecretCount

type SecretCount struct {
	SecretID string `json:"secret_id"`
	Count    int    `json:"count"`
}

Jump to

Keyboard shortcuts

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