Add mutation for adding digest to image spec

This commit is contained in:
Jonny Stoten
2024-06-20 12:25:04 +01:00
parent 0e3d5b5911
commit 3378c90b3f
8 changed files with 138 additions and 30 deletions

View File

@@ -46,7 +46,8 @@ func init() {
func main() {
mux := http.NewServeMux()
mux.Handle("POST /", http.TimeoutHandler(handler.Handler(), handlerTimeout, timeoutError))
mux.Handle("POST /validate", http.TimeoutHandler(handler.Validate(), handlerTimeout, timeoutError))
mux.Handle("POST /mutate", http.TimeoutHandler(handler.Mutate(), handlerTimeout, timeoutError))
server := &http.Server{
Addr: fmt.Sprintf(":%d", port),