Versions in this module Expand all Collapse all v0 v0.1.2 Jul 15, 2026 v0.1.1 Jul 15, 2026 v0.1.0 Jul 14, 2026 Changes in this version + func GenerateReplayPreventionNonce() (string, error) + func GenerateToken() (string, error) + type Audit struct + ApprovingActor string + DelegatedExecution bool + DelegationChain []DelegationHop + ExecutingActor string + ExecutionMode string + Kind string + MaxUses int + ReplayPreventionNonce string + RequestingActor string + Scope Scope + Status Status + Token string + Uses int + VerifiedAt time.Time + type DelegationHop struct + Actor string + Reason string + SessionID string + type Error struct + Actual any + Expected any + Kind string + Message string + func (e Error) Error() string + type Grant struct + ApprovedExecutor string + ApprovingActor string + CreatedAt time.Time + DelegationChain []DelegationHop + ExpiresAt *time.Time + LastAuditErrorKind string + MaxUses int + RemainingUses int + ReplayPreventionNonce string + RequestingActor string + Scope Scope + State UsageState + Status Status + Token string + UpdatedAt time.Time + Usable bool + Uses int + type GrantOptions struct + ApprovedExecutor string + ApprovingActor string + DelegationChain []DelegationHop + ExpiresAt *time.Time + MaxUses int + Now time.Time + RequestingActor string + Scope Scope + Status Status + Token string + type Ledger struct + Grants []Grant + Kind string + type Scope struct + Action string + Branch string + Commit string + Policy string + Repository string + type Status string + const StatusConsumed + const StatusExpired + const StatusGranted + const StatusPending + const StatusRevoked + type Store struct + ConfigHome string + func NewStore(configHome string) Store + func (s Store) Approve(token string, opts GrantOptions) (Grant, error) + func (s Store) Consume(token string, scope Scope, executingActor string, now time.Time) (Audit, error) + func (s Store) Grant(opts GrantOptions) (Grant, error) + func (s Store) List() (Ledger, error) + func (s Store) Revoke(token string, now time.Time) (Audit, error) + func (s Store) Verify(token string, scope Scope, executingActor string, now time.Time) (Audit, error) + type UsageState string + const UsageConsumed + const UsageExpired + const UsagePartiallyConsumed + const UsagePending + const UsageRevoked + const UsageUnused