credhelper

package
v1.17.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 12, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package credhelper provides a docker credential helper for the Upbound marketplace.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Helper

type Helper struct {
	// contains filtered or unexported fields
}

Helper is a docker credential helper for Upbound.

func New

func New(opts ...Opt) *Helper

New constructs a new Docker credential helper.

func (*Helper) Add

func (h *Helper) Add(_ *credentials.Credentials) error

Add adds the supplied credentials.

func (*Helper) Delete

func (h *Helper) Delete(_ string) error

Delete deletes credentials for the supplied server.

func (*Helper) Get

func (h *Helper) Get(serverURL string) (string, string, error)

Get gets credentials for the supplied server.

func (*Helper) List

func (h *Helper) List() (map[string]string, error)

List lists all the configured credentials.

type Opt

type Opt func(h *Helper)

Opt sets a helper option.

func WithDomain

func WithDomain(d string) Opt

WithDomain sets the allowed registry domain.

func WithLogger

func WithLogger(l logging.Logger) Opt

WithLogger sets the helper logger.

func WithProfile

func WithProfile(p string) Opt

WithProfile sets the helper profile.

func WithSource

func WithSource(src config.Source) Opt

WithSource sets the source for the helper config.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL