Versions in this module Expand all Collapse all v0 v0.2.0 Oct 13, 2026 v0.1.0 Oct 13, 2026 Changes in this version + var ErrBadMaterial = errors.New("provider: not credential material") + var ErrUnknownProvider = errors.New("provider: unknown provider") + func Classify(providerKey string, resp *http.Response) error + func EncodeMaterial(m Material) ([]byte, error) + type AuthMethod struct + AccountSelection string + Fields []Field + HelpURL string + Key string + Scopes []Scope + type Field struct + Help string + Label string + Name string + Required bool + Secret bool + type Manifest struct + AuthMethods []AuthMethod + BaseURLs []string + DisplayName string + HelpURL string + Key string + func (m Manifest) Hosts() ([]string, error) + func (m Manifest) Method(key string) (AuthMethod, bool) + func (m Manifest) Validate() error + type Material struct + ExpiresAt *time.Time + Fields map[string]cf.Secret + Kind string + func DecodeMaterial(b []byte) (Material, error) + func (m Material) Clear() + func (m Material) Field(name string) cf.Secret + type Provider interface + Authenticate func(r *http.Request, m Material) error + Manifest func() Manifest + Validate func(ctx context.Context, hc *http.Client, m Material) (Result, error) + type Registry struct + func NewRegistry() *Registry + func (r *Registry) Get(key string) (Provider, error) + func (r *Registry) Manifests() []Manifest + func (r *Registry) Register(p Provider) error + type Result struct + AccountID string + AccountLabel string + Scopes []string + type Scope struct + Description string + Name string + Required bool + type StatusError struct + Class error + Provider string + RequestID string + Status int + func (e *StatusError) Error() string + func (e *StatusError) Unwrap() error