(c *stdapi.Context)
| 599 | } |
| 600 | |
| 601 | func (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 | |
| 616 | func (s *Server) ObjectDelete(c *stdapi.Context) error { |
| 617 | if err := s.hook("ObjectDeleteValidate", c); err != nil { |
nothing calls this directly
no test coverage detected