MCPcopy Create free account
hub / github.com/aptly-dev/aptly / IndexesRootURL

Method IndexesRootURL

deb/remote.go:225–235  ·  view source on GitHub ↗

IndexesRootURL builds URL for various indexes

()

Source from the content-addressed store, hash-verified

223
224// IndexesRootURL builds URL for various indexes
225func (repo *RemoteRepo) IndexesRootURL() *url.URL {
226 var path *url.URL
227
228 if !repo.IsFlat() {
229 path = &url.URL{Path: fmt.Sprintf("dists/%s/", repo.Distribution)}
230 } else {
231 path = &url.URL{Path: repo.Distribution}
232 }
233
234 return repo.archiveRootURL.ResolveReference(path)
235}
236
237// ReleaseURL returns URL to Release* files in repo root
238func (repo *RemoteRepo) ReleaseURL(name string) *url.URL {

Callers 4

ReleaseURLMethod · 0.95
TestIndexesRootURLMethod · 0.80

Calls 1

IsFlatMethod · 0.95

Tested by 1

TestIndexesRootURLMethod · 0.64