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

Method SystemGet

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

Source from the content-addressed store, hash-verified

1155}
1156
1157func (s *Server) SystemGet(c *stdapi.Context) error {
1158 if err := s.hook("SystemGetValidate", c); err != nil {
1159 return err
1160 }
1161
1162 v, err := s.provider(c).WithContext(c.Context()).SystemGet()
1163 if err != nil {
1164 return err
1165 }
1166
1167 if vs, ok := interface{}(v).(Sortable); ok {
1168 sort.Slice(v, vs.Less)
1169 }
1170
1171 return c.RenderJSON(v)
1172}
1173
1174func (s *Server) SystemInstall(c *stdapi.Context) error {
1175 return stdapi.Errorf(404, "not available via api")

Callers

nothing calls this directly

Calls 6

hookMethod · 0.95
providerMethod · 0.95
ContextMethod · 0.80
SliceMethod · 0.80
SystemGetMethod · 0.65
WithContextMethod · 0.65

Tested by

no test coverage detected