MCPcopy Index your code
hub / github.com/APIParkLab/APIPark / ExportAll

Method ExportAll

module/catalogue/iml.go:123–137  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

121}
122
123func (i *imlCatalogueModule) ExportAll(ctx context.Context) ([]*catalogue_dto.ExportCatalogue, error) {
124 list, err := i.catalogueService.List(ctx)
125 if err != nil {
126 return nil, err
127 }
128
129 return utils.SliceToSlice(list, func(c *catalogue.Catalogue) *catalogue_dto.ExportCatalogue {
130 return &catalogue_dto.ExportCatalogue{
131 Id: c.Id,
132 Name: c.Name,
133 Parent: c.Parent,
134 Sort: c.Sort,
135 }
136 }), nil
137}
138
139func (i *imlCatalogueModule) getExecutor(ctx context.Context, clusterId string) (driver.IExecutor, error) {
140 info, err := i.monitorService.GetByCluster(ctx, clusterId)

Callers

nothing calls this directly

Calls 1

ListMethod · 0.65

Tested by

no test coverage detected