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 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, 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.