Skip to content
SHC Docs

Repo module

Layer 5. Objects. Objects

Source: modules/repo/.

CLIshc repo
Subcommands5
HTTP endpointssee the route reference
Events emittedsee the event reference
Error codessee the error code reference
Service classesRepoService
Cross-module depsapp, doctor, health
modules/repo/
├── doctor.go
├── errors.go
├── events.go
├── models.go
├── router.go
├── service.go
├── types.go
└── commands/

Routes are listed in the generated route reference; request/response notes live in the API reference.

Event codes, durability class, and payload shapes are listed in the generated event reference.

Typed errors are catalogued in the error code reference with HTTP statuses and message templates.

The repo module fetches a repository and registers the apps in it so shc search and shc install <name> can find them. Source: modules/repo/service.go.

Service.SyncRepo and SyncAll dispatch by URL: syncGit, syncHTTP, syncRegistry, or syncShipped. repo add refuses a file:// URL (X400927REPFIL). runCrawler asks the app module to crawl the fetched tree. An unknown repo is X404901REPNOF. A sync failure is X500903REPSYN.

What the repo module does not own: running the apps it discovers (that is app / stack), or the schedule that fires a sync (that is schedule).