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

Method AppDelete

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

Source from the content-addressed store, hash-verified

52}
53
54func (s *Server) AppDelete(c *stdapi.Context) error {
55 if err := s.hook("AppDeleteValidate", c); err != nil {
56 return err
57 }
58
59 name := c.Var("name")
60
61 err := s.provider(c).WithContext(c.Context()).AppDelete(name)
62 if err != nil {
63 return err
64 }
65
66 return c.RenderOK()
67}
68
69func (s *Server) AppGet(c *stdapi.Context) error {
70 if err := s.hook("AppGetValidate", c); err != nil {

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected