Versions in this module Expand all Collapse all v0 v0.26.0 Dec 1, 2026 v0.25.0 Dec 1, 2026 Changes in this version + const MethodDescribe + const MethodDiscover + const MethodGet + const MethodImport + const MethodInvalidate + const MethodIssue + const MethodObserve + const MethodPrompt + const MethodRenew + const MethodRevoke + const MethodTarget + const MethodValidate + const MethodWatch + type Attempt struct + Inputs map[string]credential.Lease + Interactive bool + Lease *credential.Lease + MaxTTL time.Duration + Prompts []PromptReply + Target []credential.Claim + func (Attempt) Format(s fmt.State, _ rune) + func (Attempt) GoString() string + func (Attempt) GobEncode() ([]byte, error) + func (Attempt) MarshalJSON() ([]byte, error) + func (Attempt) String() string + type Call struct + Issuer string + Method string + Prompt credential.PromptKind + Revision uint64 + Slot string + type Harness struct + func Mount(t testing.TB, owner string, opts credential.PluginOpts, options ...Option) *Harness + func (Harness) Format(s fmt.State, _ rune) + func (Harness) GoString() string + func (Harness) GobEncode() ([]byte, error) + func (Harness) MarshalJSON() ([]byte, error) + func (Harness) String() string + func (h *Harness) Advance(d time.Duration) + func (h *Harness) AssertCalls(want ...Call) + func (h *Harness) Bind(ctx context.Context, slots map[string][]credential.Lease) error + func (h *Harness) Calls() []Call + func (h *Harness) Count(want Call) int + func (h *Harness) Describe(ctx context.Context, id string, material credential.Material) (credential.Metadata, error) + func (h *Harness) Discover(ctx context.Context, issuer string) ([]credential.Candidate, error) + func (h *Harness) Import(ctx context.Context, request credential.ImportRequest) (credential.ImportResult, error) + func (h *Harness) Issue(ctx context.Context, issuer, candidate string, a Attempt) (IssuerResult, error) + func (h *Harness) Now() time.Time + func (h *Harness) Observe(ctx context.Context, result IssuerResult) (credential.Observation, error) + func (h *Harness) Remove(ctx context.Context) error + func (h *Harness) Renew(ctx context.Context, result IssuerResult, a Attempt) (IssuerResult, error) + func (h *Harness) Resume(ctx context.Context, result IssuerResult, a Attempt) (IssuerResult, error) + func (h *Harness) Retire() + func (h *Harness) Revoke(ctx context.Context, result IssuerResult) (credential.Observation, error) + func (h *Harness) Rotate(slot string) error + func (h *Harness) Start(ctx context.Context, create func(context.Context) (func(), error)) error + func (h *Harness) Target(statuses ...int) http.Handler + func (h *Harness) Validate(ctx context.Context, id string, material credential.Material) error + func (h *Harness) Withdraw(slot string) error + type IssuerResult struct + RetryAfter time.Duration + Revision uint64 + Status credential.ReplacementStatus + type Option struct + func WithClock(clock *timeutil.FakeClock) Option + func WithStartTime(at time.Time) Option + type PromptReply struct + Answer []byte + Challenge credential.Prompt + Disposition credential.PromptDisposition + Timeout bool + func (PromptReply) Format(s fmt.State, _ rune) + func (PromptReply) GoString() string + func (PromptReply) GobEncode() ([]byte, error) + func (PromptReply) MarshalJSON() ([]byte, error) + func (PromptReply) String() string