MCPcopy
hub / github.com/NVIDIA/aistore / bucketHandler

Method bucketHandler

ais/target.go:491–504  ·  view source on GitHub ↗

http handlers verb /v1/buckets

(w http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

489
490// verb /v1/buckets
491func (t *target) bucketHandler(w http.ResponseWriter, r *http.Request) {
492 switch r.Method {
493 case http.MethodGet:
494 t.httpbckget(w, r)
495 case http.MethodDelete:
496 t.httpbckdelete(w, r)
497 case http.MethodPost:
498 t.httpbckpost(w, r)
499 case http.MethodHead:
500 t.httpbckhead(w, r)
501 default:
502 cmn.WriteErr405(w, r, http.MethodDelete, http.MethodGet, http.MethodHead, http.MethodPost)
503 }
504}
505
506// verb /v1/objects
507func (t *target) objectHandler(w http.ResponseWriter, r *http.Request) {

Callers

nothing calls this directly

Calls 5

httpbckgetMethod · 0.95
httpbckdeleteMethod · 0.95
httpbckpostMethod · 0.95
httpbckheadMethod · 0.95
WriteErr405Function · 0.92

Tested by

no test coverage detected