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

Method AppCancel

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

Source from the content-addressed store, hash-verified

13)
14
15func (s *Server) AppCancel(c *stdapi.Context) error {
16 if err := s.hook("AppCancelValidate", c); err != nil {
17 return err
18 }
19
20 name := c.Var("name")
21
22 err := s.provider(c).WithContext(c.Context()).AppCancel(name)
23 if err != nil {
24 return err
25 }
26
27 return c.RenderOK()
28}
29
30func (s *Server) AppCreate(c *stdapi.Context) error {
31 if err := s.hook("AppCreateValidate", c); err != nil {

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected