Documentation ¶
Index ¶
- Constants
- func AuthenticationHandler(authService auth.GatewayService, next http.Handler) http.Handler
- func DurationHandler(next http.Handler) http.Handler
- func EnrichWithOperation(sc *ServerContext, next http.Handler) http.Handler
- func EnrichWithParts(bareDomains []string, next http.Handler) http.Handler
- func EnrichWithRepositoryOrFallback(c catalog.Interface, authService auth.GatewayService, ...) http.Handler
- func NewHandler(region string, catalog catalog.Interface, multipartsTracker multiparts.Tracker, ...) http.Handler
- func OperationHandler(sc *ServerContext, handler operations.AuthenticatedOperationHandler) http.Handler
- func OperationLookupHandler(next http.Handler) http.Handler
- func PathOperationHandler(sc *ServerContext, handler operations.PathOperationHandler) http.Handler
- func RepoOperationHandler(sc *ServerContext, handler operations.RepoOperationHandler) http.Handler
- type RequestParts
- type ServerContext
Constants ¶
View Source
const ( ContextKeyUser contextKey = "user" ContextKeyRepositoryID contextKey = "repository_id" ContextKeyRepository contextKey = "repository" ContextKeyAuthContext contextKey = "auth_context" ContextKeyOperation contextKey = "operation" ContextKeyRef contextKey = "ref" ContextKeyPath contextKey = "path" ContextKeyMatchedHost contextKey = "matched_host" )
Variables ¶
This section is empty.
Functions ¶
func AuthenticationHandler ¶
func EnrichWithOperation ¶
func EnrichWithOperation(sc *ServerContext, next http.Handler) http.Handler
func NewHandler ¶
func OperationHandler ¶
func OperationHandler(sc *ServerContext, handler operations.AuthenticatedOperationHandler) http.Handler
func PathOperationHandler ¶
func PathOperationHandler(sc *ServerContext, handler operations.PathOperationHandler) http.Handler
func RepoOperationHandler ¶
func RepoOperationHandler(sc *ServerContext, handler operations.RepoOperationHandler) http.Handler
Types ¶
type RequestParts ¶ added in v0.52.0
func ParseRequestParts ¶ added in v0.52.0
func ParseRequestParts(host string, urlPath string, bareDomains []string) RequestParts
ParseRequestParts returns the repo id, ref and path according to whether the request is path-style or virtual-host-style.
type ServerContext ¶
type ServerContext struct {
// contains filtered or unexported fields
}
Directories ¶
Path | Synopsis |
---|---|
Package cmd This file implements helper functions to validate Streaming AWS Signature Version '4' authorization header.
|
Package cmd This file implements helper functions to validate Streaming AWS Signature Version '4' authorization header. |
Click to show internal directories.
Click to hide internal directories.