Versions in this module Expand all Collapse all v1 v1.2.5 Aug 7, 2023 v1.2.4 Aug 7, 2023 Changes in this version + var ErrNotLoggedIn = errors.New("not logged in") + type Client interface + Login func(ctx context.Context, hostname, username, secret string, insecure bool) error + LoginWithOpts func(options ...LoginOption) error + Logout func(ctx context.Context, hostname string) error + Resolver func(ctx context.Context, client *http.Client, plainHTTP bool) (remotes.Resolver, error) + ResolverWithOpts func(options ...ResolverOption) (remotes.Resolver, error) + type LoginOption func(*LoginSettings) + func WithLoginContext(context context.Context) LoginOption + func WithLoginHostname(hostname string) LoginOption + func WithLoginInsecure() LoginOption + func WithLoginSecret(secret string) LoginOption + func WithLoginTLS(certFile, keyFile, caFile string) LoginOption + func WithLoginUserAgent(userAgent string) LoginOption + func WithLoginUsername(username string) LoginOption + type LoginSettings struct + CAFile string + CertFile string + Context context.Context + Hostname string + Insecure bool + KeyFile string + Secret string + UserAgent string + Username string + type ResolverOption func(*ResolverSettings) + func WithResolverClient(client *http.Client) ResolverOption + func WithResolverHeaders(headers http.Header) ResolverOption + func WithResolverPlainHTTP() ResolverOption + type ResolverSettings struct + Client *http.Client + Headers http.Header + PlainHTTP bool