Versions in this module Expand all Collapse all v0 v0.6.0 Nov 10, 2026 Changes in this version + var ErrLookup = errors.New(...) + var ErrNotFound = errors.New("credentials not found in native keychain") + var ErrReadOnly = errors.New("credential writes are not supported") + var ErrRequest = errors.New("invalid credential request") + var ErrResponse = errors.New("resource cannot be represented as credentials") + func DockerRegistryKey(value string) (string, error) + func HandleDocker(helper dockercredentials.Helper, action string, input io.Reader, ...) error + func KubernetesInteractive(value string) (bool, error) + func MatchLabel(match Match) string + func ReadDockerServer(input io.Reader) (string, string, error) + func ValidResourceID(value string) bool + func WriteAWS(output io.Writer, data ResourceData, tokenField, expirationField string) error + func WriteKubernetes(output io.Writer, data ResourceData, expirationField string) error + func WriteResponse(output io.Writer, username, password string) error + type AWSProcessCredentials struct + AccessKeyID string + Expiration *time.Time + SecretAccessKey string + SessionToken *string + Version int + type ClientStore struct + Approve func(context.Context, Record) error + Client *api.Client + func (s ClientStore) Load(ctx context.Context, id string) (ResourceData, error) + func (s ClientStore) Read(ctx context.Context, id string) (Record, string, error) + func (s ClientStore) Records(ctx context.Context) ([]Record, error) + type DockerBackend struct + Context context.Context + Resolver Resolver + func (*DockerBackend) Add(*dockercredentials.Credentials) error + func (*DockerBackend) Delete(string) error + func (b *DockerBackend) Get(serverURL string) (string, string, error) + func (b *DockerBackend) List() (map[string]string, error) + type Match struct + URLs []string + func DockerMatches(key string, records []Record) []Match + func FindMatches(req Request, records []Record) []Match + type Record struct + ID string + Name string + URLs []string + Username string + type Request struct + Host string + Path string + Protocol string + Username string + func ParseURL(value string) (Request, error) + func ReadRequest(input io.Reader) (Request, error) + func (r Request) Encode() string + type Resolver struct + Select func(context.Context, []Match) (int, error) + Store Store + func (r Resolver) Docker(ctx context.Context, key string) (string, string, error) + func (r Resolver) DockerList(ctx context.Context) (map[string]string, error) + func (r Resolver) Git(ctx context.Context, req Request) (string, string, error) + type ResourceData struct + Metadata map[string]any + Record Record + Secret map[string]any + func (d ResourceData) Field(name string) (*string, error) + func (d ResourceData) Password() (string, error) + type Store interface + Read func(context.Context, string) (Record, string, error) + Records func(context.Context) ([]Record, error)