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

Method AppUpdate

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

Source from the content-addressed store, hash-verified

159}
160
161func (s *Server) AppUpdate(c *stdapi.Context) error {
162 if err := s.hook("AppUpdateValidate", c); err != nil {
163 return err
164 }
165
166 name := c.Var("name")
167
168 var opts structs.AppUpdateOptions
169 if err := stdapi.UnmarshalOptions(c.Request(), &opts); err != nil {
170 return err
171 }
172
173 err := s.provider(c).WithContext(c.Context()).AppUpdate(name, opts)
174 if err != nil {
175 return err
176 }
177
178 return c.RenderOK()
179}
180
181func (s *Server) BuildCreate(c *stdapi.Context) error {
182 if err := s.hook("BuildCreateValidate", c); err != nil {

Callers

nothing calls this directly

Calls 6

hookMethod · 0.95
providerMethod · 0.95
RequestMethod · 0.80
ContextMethod · 0.80
AppUpdateMethod · 0.65
WithContextMethod · 0.65

Tested by

no test coverage detected