helper

package
v0.3.57 Latest Latest
Warning

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

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

Documentation

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 implements a Docker credential helper which will fetch Docker credentials from Vault and pass them to the Docker daemon in order to authenticate to a private Docker registry.

func New added in v0.3.45

func New(opts Options) *Helper

New creates a new Helper instance.

func (*Helper) Add

Add is not implemented.

func (*Helper) Delete

func (h *Helper) Delete(string) error

Delete is not implemented.

func (*Helper) Get

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

Get will lookup Docker credentials in Vault and pass them to the Docker daemon.

func (*Helper) List

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

List is not implemented.

type Options added in v0.3.45

type Options struct {
	Logger      hclog.Logger
	Client      *api.Client
	Secret      secretTable
	EnableCache bool
	AuthTimeout int64
	WrapTTL     time.Duration
	AuthConfig  *config.AutoAuth
}

Options is used to configure a new Helper instance.

Jump to

Keyboard shortcuts

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