Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler interface { // Auth checks if the auth header in webhook request for // the specified host is correct. Auth(ctx context.Context, host string, authHeader string) error // Convert converts source image to target image by specifying // source image reference, the conversion is asynchronous, and // if the sync option is specified, the HTTP request will be // blocked until the conversion is complete. Convert(ctx context.Context, ref string, sync bool) error // CheckHealth checks the acceld service is healthy and can serve // webhook request. CheckHealth(ctx context.Context) error }
Handler for handling HTTP requests.
type LocalHandler ¶
type LocalHandler struct {
// contains filtered or unexported fields
}
func NewLocalHandler ¶
func NewLocalHandler(cfg *config.Config) (*LocalHandler, error)
func (*LocalHandler) CheckHealth ¶
func (handler *LocalHandler) CheckHealth(ctx context.Context) error
Click to show internal directories.
Click to hide internal directories.