Documentation ¶
Index ¶
- func NewImageHandler(is imagestore.ImageStore, assistedServiceClient *AssistedServiceClient, ...) http.Handler
- func NewLivenessHandler() http.Handler
- func WithCORSMiddleware(handler http.Handler, domains string) http.Handler
- func WithInitrdViaHTTP(handler http.Handler) http.HandlerFunc
- func WithRequestLimit(maxRequests int64) func(http.Handler) http.Handler
- type AssistedServiceClient
- type BootArtifactsHandler
- type ImageHandler
- type ReadinessHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewImageHandler ¶
func NewImageHandler(is imagestore.ImageStore, assistedServiceClient *AssistedServiceClient, maxRequests int64, mdw metricsmiddleware.Middleware) http.Handler
func NewLivenessHandler ¶
func WithCORSMiddleware ¶
func WithInitrdViaHTTP ¶
func WithInitrdViaHTTP(handler http.Handler) http.HandlerFunc
func WithRequestLimit ¶
WithRequestLimit returns middleware that will limit the number of requests being concurrently handled to maxRequests. Blocks until a slot becomes available. A 503 response will be returned if the context expires or is cancelled while waiting.
Types ¶
type AssistedServiceClient ¶
type AssistedServiceClient struct {
// contains filtered or unexported fields
}
func NewAssistedServiceClient ¶
func NewAssistedServiceClient(assistedServiceScheme, assistedServiceHost, caCertFile string) (*AssistedServiceClient, error)
type BootArtifactsHandler ¶
type BootArtifactsHandler struct {
ImageStore imagestore.ImageStore
}
func (*BootArtifactsHandler) ServeHTTP ¶
func (b *BootArtifactsHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type ImageHandler ¶
type ImageHandler struct {
// contains filtered or unexported fields
}
type ReadinessHandler ¶
type ReadinessHandler struct {
// contains filtered or unexported fields
}
func NewReadinessHandler ¶
func NewReadinessHandler() *ReadinessHandler
func (*ReadinessHandler) Enable ¶
func (a *ReadinessHandler) Enable()
func (*ReadinessHandler) ServeHTTP ¶
func (a *ReadinessHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
func (*ReadinessHandler) WithMiddleware ¶
func (a *ReadinessHandler) WithMiddleware(next http.Handler) http.Handler
Click to show internal directories.
Click to hide internal directories.