package
0.0.0-20241002193539-293ef993f968
Repository: https://github.com/manics/binderhub-container-registry-helper.git
Documentation: pkg.go.dev

# Functions

CheckAuthorised wraps originalHandler to check for a valid Authorization header and returns a http.Handler.
CreateServer configures a new http handler for the registry helper.
ImageGetNameAndTag extracts the repository name and tag from the request path.
InternalServerError is a handler that returns a 500 HTTP error.
NotAuthorised is a handler that returns a 403 HTTP error.
NotFound is a handler that returns a 404 HTTP error.
RepoGetName extracts the repository name from the request path.
The main entrypoint for the service.

# Constants

#nosec G101 -- Name of an env-var, not a secret.

# Structs

RegistryServer is http.handler that passes requests to the registry helper implementation.
RegistryToken is an object containing a username and password that can be used to login to a registry and an Expires time when the token will expire.

# Interfaces

IRegistryClient is an interface that all registry helpers must implement.