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

Method InstanceTerminate

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

Source from the content-addressed store, hash-verified

599}
600
601func (s *Server) InstanceTerminate(c *stdapi.Context) error {
602 if err := s.hook("InstanceTerminateValidate", c); err != nil {
603 return err
604 }
605
606 id := c.Var("id")
607
608 err := s.provider(c).WithContext(c.Context()).InstanceTerminate(id)
609 if err != nil {
610 return err
611 }
612
613 return c.RenderOK()
614}
615
616func (s *Server) ObjectDelete(c *stdapi.Context) error {
617 if err := s.hook("ObjectDeleteValidate", c); err != nil {

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected