cloud

package
v0.4.13 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthDirective added in v0.3.1

type AuthDirective struct {
	Service string
	Realm   string
}

func ChallengeLoginServer added in v0.3.1

func ChallengeLoginServer(ctx context.Context, loginServerURL string) (*AuthDirective, error)

type AuthLoader added in v0.3.1

type AuthLoader func(ctx context.Context, server string) (*types.AuthConfig, error)

type Registry added in v0.3.1

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

func (*Registry) Register added in v0.3.1

func (r *Registry) Register(re *regexp.Regexp, loader AuthLoader)

RegisterLoader will create a new url regex -> authorization loader scheme.

func (*Registry) RetrieveAuthorization added in v0.3.1

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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