Versions in this module Expand all Collapse all v0 v0.1.0 Nov 6, 2026 Changes in this version + const CodeAutoDenied + const CodeBadArgv + const CodeNotAllowed + const CodeStale + const CodeUnmaskOff + const MethodPlan + const MethodRun + const Untrusted + func Sanitizer() *sanitize.Sanitizer + type Backend struct + func New(o Options) (*Backend, error) + func (b *Backend) Checks(_ context.Context, _ console.Session) []console.Finding + func (b *Backend) Connect(ctx context.Context, c console.Credentials) (console.Session, error) + func (b *Backend) LoadPolicy() (console.Policy, error) + func (b *Backend) Methods() map[string]console.Handler + func (b *Backend) OnHub(h *console.Hub) + func (b *Backend) Status(console.Session) any + type Options struct + Home string + IO console.IO + Profile string + Root string + StateDir string + UserConfig string + type Output struct + Action string + Command string + DurationMS int64 + ExitStatus *int + Masked map[string]int + Rule string + Signal string + Stderr string + StderrTruncated bool + Stdout string + StdoutTruncated bool + TimedOut bool + Unmasked bool + type Params struct + Argv []string + Intent string + Requester ipc.Requester + Ticket string + Unmask bool + type Plan struct + Action string + Command string + Reason string + Refusal *refusal.Info + Rule string + Screen []string + Verdict string + Warnings []string + type Policy struct + func (p Policy) Diff(approved kconfig.Policy) []kconfig.Change + func (p Policy) Profile() console.Profile + type Record struct + Action string + AutoRule string + Command string + DecidedBy string + Exit *int + Rule string + Signal string + TimedOut bool + Unmasked bool + type Result struct + Data Output + Untrusted string