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

Method SetDBDeletionProtectionAndCreateSnapShot

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

Source from the content-addressed store, hash-verified

1504}
1505
1506func (s *Server) SetDBDeletionProtectionAndCreateSnapShot(c *stdapi.Context) error {
1507 app := c.Var("app")
1508 resource := c.Var("resource")
1509 snapshot := c.Var("snapshot")
1510
1511 v, err := s.provider(c).WithContext(c.Context()).SetDBDeletionProtectionAndCreateSnapShot(app, resource, snapshot)
1512 if err != nil {
1513 return err
1514 }
1515
1516 return c.RenderJSON(v)
1517}
1518
1519func (s *Server) DeleteDB(c *stdapi.Context) error {
1520 resource := c.Var("resource")

Callers

nothing calls this directly

Calls 4

providerMethod · 0.95
ContextMethod · 0.80
WithContextMethod · 0.65

Tested by

no test coverage detected