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

Method AppList

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

Source from the content-addressed store, hash-verified

86}
87
88func (s *Server) AppList(c *stdapi.Context) error {
89 if err := s.hook("AppListValidate", c); err != nil {
90 return err
91 }
92
93 v, err := s.provider(c).WithContext(c.Context()).AppList()
94 if err != nil {
95 return err
96 }
97
98 if vs, ok := interface{}(v).(Sortable); ok {
99 sort.Slice(v, vs.Less)
100 }
101
102 return c.RenderJSON(v)
103}
104
105func (s *Server) AppLogs(c *stdapi.Context) error {
106 if err := s.hook("AppLogsValidate", c); err != nil {

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected