registry

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadImage

func LoadImage(registry *httptest.Server, fromTar, toRepository string) error

func LoadImageWithAuth

func LoadImageWithAuth(registry *httptest.Server, fromTar, toRepository string, username string, password string) error

func NewAuthRegistryServer

func NewAuthRegistryServer(username, password string) (*httptest.Server, string, error)

func NewRegistry

func NewRegistry() (*httptest.Server, string, error)

func RegistryHost

func RegistryHost(registry *httptest.Server) (string, error)

Types

type AuthHandler

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

func (*AuthHandler) ServeHTTP

func (h *AuthHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP implements http.Handler

Jump to

Keyboard shortcuts

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