MCPcopy Create free account
hub / github.com/APIParkLab/APIPark / ListByClusters

Method ListByClusters

service/cluster/cluster.go:59–70  ·  view source on GitHub ↗
(ctx context.Context, ids ...string)

Source from the content-addressed store, hash-verified

57}
58
59func (s *imlClusterService) ListByClusters(ctx context.Context, ids ...string) ([]*Cluster, error) {
60 wm := make(map[string]interface{})
61
62 if len(ids) > 0 {
63 wm["uuid"] = ids
64 }
65 list, err := s.store.List(ctx, wm, "update_at desc")
66 if err != nil {
67 return nil, err
68 }
69 return utils.SliceToSlice(list, FromEntity), nil
70}
71
72func (s *imlClusterService) GetLabels(ctx context.Context, ids ...string) map[string]string {
73 if len(ids) == 0 {

Callers

nothing calls this directly

Calls 1

ListMethod · 0.65

Tested by

no test coverage detected