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

Method ServiceRestart

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

Source from the content-addressed store, hash-verified

1118}
1119
1120func (s *Server) ServiceRestart(c *stdapi.Context) error {
1121 if err := s.hook("ServiceRestartValidate", c); err != nil {
1122 return err
1123 }
1124
1125 app := c.Var("app")
1126 name := c.Var("name")
1127
1128 err := s.provider(c).WithContext(c.Context()).ServiceRestart(app, name)
1129 if err != nil {
1130 return err
1131 }
1132
1133 return c.RenderOK()
1134}
1135
1136func (s *Server) ServiceUpdate(c *stdapi.Context) error {
1137 if err := s.hook("ServiceUpdateValidate", c); err != nil {

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected