MCPcopy Create free account
hub / github.com/OpenCSGs/csghub-server / mapNamespaceAndName

Method mapNamespaceAndName

component/mirror.go:277–287  ·  view source on GitHub ↗
(sourceNamespace string)

Source from the content-addressed store, hash-verified

275}
276
277func (m *MirrorComponent) mapNamespaceAndName(sourceNamespace string) string {
278 namespace := sourceNamespace
279 if ns, found := mirrorOrganizationMap[sourceNamespace]; found {
280 namespace = ns
281 } else {
282 //map all organization to AIWizards if not found
283 namespace = "AIWizards"
284 }
285
286 return namespace
287}
288
289func (c *MirrorComponent) CheckMirrorProgress(ctx context.Context) error {
290 mirrors, err := c.mirrorStore.Unfinished(ctx)

Callers 1

CreateMirrorRepoMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected