Versions in this module Expand all Collapse all v0 v0.0.54 Dec 5, 2026 v0.0.53 Dec 3, 2026 Changes in this version + func WithRun(ctx context.Context, run Run) context.Context type Credential + Incarnation string + type Delegation struct + DelegatingAgentSession string + DelegatingRun string + ID string + Run Run + StandInDelegatingRun bool + type HelperDelegation struct + AgentSessionID string type Holder + func (h *Holder) ClearDelegation(key Key) + func (h *Holder) Delegation(key Key) (Delegation, bool) + func (h *Holder) Delegations(root string) []HelperDelegation + func (h *Holder) MoveHelpers(ctx context.Context, root string) error + func (h *Holder) ReportDelegationAgain(ctx context.Context, key Key) error + func (h *Holder) SetDelegation(key Key, d Delegation) error + type Run struct + ID string + Owner identitybroker.Owner + func RunFromContext(ctx context.Context) (Run, bool) + func (r Run) IsZero() bool v0.0.52 Nov 18, 2026 Changes in this version + var ErrDropped = errors.New("agentcredential: entry dropped during registration") + var ErrExpired = errors.New("agentcredential: broker returned an expired credential") + var ErrNoCredential = errors.New("agentcredential: no credential held") + var ErrOtherAgent = errors.New("agentcredential: broker returned another agent") + type Credential struct + Agent identitybroker.AgentRef + BrokerSessionID string + ExpiresAt time.Time + Owner identitybroker.Owner + Token identitybroker.Token + type Holder struct + func New(broker identitybroker.Service, now func() time.Time) *Holder + func (h *Holder) Close() + func (h *Holder) Credential(ctx context.Context, key Key, renew bool) (Credential, error) + func (h *Holder) Drop(root string) + func (h *Holder) Ensure(ctx context.Context, key Key, req identitybroker.RegisterAgentRequest, ...) error + func (h *Holder) Held(key Key) (Credential, bool) + type Key struct + AgentSessionID string + RootSessionID string