MCPcopy Create free account
hub / github.com/convox/rack / FilesDelete

Method FilesDelete

pkg/api/controllers.go:480–495  ·  view source on GitHub ↗
(c *stdapi.Context)

Source from the content-addressed store, hash-verified

478}
479
480func (s *Server) FilesDelete(c *stdapi.Context) error {
481 if err := s.hook("FilesDeleteValidate", c); err != nil {
482 return err
483 }
484
485 app := c.Var("app")
486 pid := c.Var("pid")
487 files := strings.Split(c.Value("files"), ",")
488
489 err := s.provider(c).WithContext(c.Context()).FilesDelete(app, pid, files)
490 if err != nil {
491 return err
492 }
493
494 return c.RenderOK()
495}
496
497func (s *Server) FilesDownload(c *stdapi.Context) error {
498 if err := s.hook("FilesDownloadValidate", c); err != nil {

Callers

nothing calls this directly

Calls 5

hookMethod · 0.95
providerMethod · 0.95
ContextMethod · 0.80
FilesDeleteMethod · 0.65
WithContextMethod · 0.65

Tested by

no test coverage detected