audit

package
v0.28.4 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(enabled bool) error

Init は監査ログを初期化

Types

type LogEntry

type LogEntry struct {
	Timestamp   time.Time         `json:"timestamp"`
	Tool        string            `json:"tool"`
	Args        map[string]string `json:"args"`
	Output      string            `json:"output,omitempty"`
	Error       string            `json:"error,omitempty"`
	FileChanged bool              `json:"file_changed"`
	Success     bool              `json:"success"`
}

LogEntry は監査ログのエントリ

type Logger

type Logger struct {
	// contains filtered or unexported fields
}

Logger は監査ログを記録

func GetLogger

func GetLogger() *Logger

GetLogger はグローバルロガーを取得

func (*Logger) LogToolExecution

func (l *Logger) LogToolExecution(tool string, args map[string]string, output string, err error, fileChanged bool)

LogToolExecution はツール実行をログに記録

Jump to

Keyboard shortcuts

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