Documentation ¶
Index ¶
Constants ¶
View Source
const APIPrefix = "/registry/"
View Source
const PathPrefix = "/v2/"
PathPrefix defines the path prefix for accessing the docker registry v2 server.
Variables ¶
This section is empty.
Functions ¶
func IgnoredAuthPathPrefixes ¶
func IgnoredAuthPathPrefixes() []string
IgnoredAuthPathPrefixes returns a list of path prefixes that does not need to go through the built-in authentication and authorization middleware of apiserver.
func RegisterRoute ¶
func RegisterRoute(m *mux.PathRecorderMux, opts *Options) error
RegisterRoute to register the docker distribution server path prefix to apiserver.
Types ¶
type Options ¶
type Options struct { RegistryConfig *registryconfig.RegistryConfiguration ExternalScheme string LoopbackClientConfig *restclient.Config TokenReviewPath string TokenReviewCAFile string }
Click to show internal directories.
Click to hide internal directories.