authprovider

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2025 License: Apache-2.0 Imports: 33 Imported by: 118

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDockerAuthProvider

func NewDockerAuthProvider(cfg DockerAuthProviderConfig) session.Attachable

Types

type AuthTLSConfig added in v0.13.0

type AuthTLSConfig struct {
	RootCAs  []string
	Insecure bool
	KeyPairs []TLSKeyPair
}

type DockerAuthProviderConfig added in v0.20.0

type DockerAuthProviderConfig struct {
	// ConfigFile is the docker config file
	ConfigFile *configfile.ConfigFile
	// TLSConfigs is a map of host to TLS config
	TLSConfigs map[string]*AuthTLSConfig
	// ExpireCachedAuth is a function that returns true auth config should be refreshed
	// instead of using a pre-cached result.
	// If nil then the cached result will expire after 10 minutes.
	// The function is called with the time the cached auth config was created
	// and the server URL the auth config is for.
	ExpireCachedAuth func(created time.Time, serverURL string) bool
}

type TLSKeyPair added in v0.13.0

type TLSKeyPair struct {
	Key         string
	Certificate string
}

Jump to

Keyboard shortcuts

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