command

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2026 License: GPL-3.0 Imports: 37 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute() int

Execute runs the opsctl CLI and returns the exit code.

Types

type ApprovalResult

type ApprovalResult struct {
	Decision       aictx.Decision // Allow | Deny
	DecisionSource string         // ai.Source* 常量
	MatchedPattern string         // 匹配的规则或模式
	SessionID      string         // 会话 ID
}

ApprovalResult 审批结果,包含决策来源信息(用于审计)

func (ApprovalResult) ToCheckResult

func (ar ApprovalResult) ToCheckResult() *aictx.CheckResult

ToCheckResult 转换为 CheckResult(供 AuditWriter 使用)

Jump to

Keyboard shortcuts

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