Documentation ¶
Index ¶
- Constants
- func AuthenticationHandler(authService simulator.GatewayAuthService, bareDomain string, next http.Handler) http.Handler
- func DurationHandler(next http.Handler) http.Handler
- func EnrichWithOperation(sc *ServerContext, next http.Handler) http.Handler
- func EnrichWithParts(bareDomain string, next http.Handler) http.Handler
- func EnrichWithRepositoryOrFallback(cataloger catalog.Cataloger, authService simulator.GatewayAuthService, ...) http.Handler
- func NewHandler(region string, cataloger catalog.Cataloger, ...) http.Handler
- func OperationHandler(sc *ServerContext, handler operations.AuthenticatedOperationHandler) http.Handler
- func OperationLookupHandler(next http.Handler) http.Handler
- func Parts(host string, urlPath string, bareDomain string) (repo string, ref string, pth string)
- func PathOperationHandler(sc *ServerContext, handler operations.PathOperationHandler) http.Handler
- func RepoOperationHandler(sc *ServerContext, handler operations.RepoOperationHandler) http.Handler
- 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" )
Variables ¶
This section is empty.
Functions ¶
func AuthenticationHandler ¶ added in v0.22.1
func EnrichWithOperation ¶ added in v0.22.1
func EnrichWithOperation(sc *ServerContext, next http.Handler) http.Handler
func EnrichWithParts ¶ added in v0.22.1
func EnrichWithRepositoryOrFallback ¶ added in v0.22.1
func NewHandler ¶
func OperationHandler ¶
func OperationHandler(sc *ServerContext, handler operations.AuthenticatedOperationHandler) http.Handler
func OperationLookupHandler ¶ added in v0.22.1
func Parts ¶ added in v0.22.1
Parts returns the repo id, ref and path according to whether the request is path-style or virtual-host-style.
func PathOperationHandler ¶
func PathOperationHandler(sc *ServerContext, handler operations.PathOperationHandler) http.Handler
func RepoOperationHandler ¶
func RepoOperationHandler(sc *ServerContext, handler operations.RepoOperationHandler) http.Handler
Types ¶
type ServerContext ¶
type ServerContext struct {
// contains filtered or unexported fields
}
func (*ServerContext) WithContext ¶
func (c *ServerContext) WithContext(ctx context.Context) *ServerContext
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.