(c *stdapi.Context)
| 1134 | } |
| 1135 | |
| 1136 | func (s *Server) ServiceUpdate(c *stdapi.Context) error { |
| 1137 | if err := s.hook("ServiceUpdateValidate", c); err != nil { |
| 1138 | return err |
| 1139 | } |
| 1140 | |
| 1141 | app := c.Var("app") |
| 1142 | name := c.Var("name") |
| 1143 | |
| 1144 | var opts structs.ServiceUpdateOptions |
| 1145 | if err := stdapi.UnmarshalOptions(c.Request(), &opts); err != nil { |
| 1146 | return err |
| 1147 | } |
| 1148 | |
| 1149 | err := s.provider(c).WithContext(c.Context()).ServiceUpdate(app, name, opts) |
| 1150 | if err != nil { |
| 1151 | return err |
| 1152 | } |
| 1153 | |
| 1154 | return c.RenderOK() |
| 1155 | } |
| 1156 | |
| 1157 | func (s *Server) SystemGet(c *stdapi.Context) error { |
| 1158 | if err := s.hook("SystemGetValidate", c); err != nil { |
nothing calls this directly
no test coverage detected