registry

package
v0.0.0-...-0aae6f4 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2021 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NewProvider = func(server string) *RegistryProvider {
	return &RegistryProvider{
		server: server,
		cache:  cache.New(time.Hour, time.Hour),
	}
}

NewProvider new default provider

Functions

This section is empty.

Types

type Registry

type Registry interface {
	Authenticate(ctx context.Context, user, password string) (ok bool, err error)
	Reg(ctx context.Context, dumpReq, dumpRes []byte) error
}

Registry registrador

type RegistryProvider

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

RegistryProvider struct to provide

func (*RegistryProvider) Get

func (reg *RegistryProvider) Get(username string) Registry

Get get registry

type SideCarRegistry

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

SideCarRegistry registry

func (*SideCarRegistry) Authenticate

func (r *SideCarRegistry) Authenticate(ctx context.Context, user string, password string) (ok bool, err error)

Authenticate authenticate

func (*SideCarRegistry) Reg

func (r *SideCarRegistry) Reg(ctx context.Context, dumpReq []byte, dumpRes []byte) error

Reg register

Jump to

Keyboard shortcuts

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