Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoLoader = errors.New("no loader found")
Functions ¶
This section is empty.
Types ¶
type AuthDirective ¶
func ChallengeLoginServer ¶
func ChallengeLoginServer(ctx context.Context, loginServerURL string) (*AuthDirective, error)
type AuthLoader ¶
type LoginChallenger ¶ added in v0.1.22
type LoginChallenger func(ctx context.Context, loginServerURL string) (*AuthDirective, error)
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
func (*Registry) Register ¶
func (r *Registry) Register(re *regexp.Regexp, loader AuthLoader)
Register will create a new url regex -> authorization loader scheme.
func (*Registry) RetrieveAuthorization ¶
func (r *Registry) RetrieveAuthorization( ctx context.Context, logger logr.Logger, server string, ) (*types.AuthConfig, error)
RetrieveAuthorization will multiplex registered auth loaders based on url pattern and use the appropriate one to make an authorization request. The returned value can be marshalled into the contents of a Docker config.json file.
Click to show internal directories.
Click to hide internal directories.