MCPcopy Index your code
hub / github.com/aptly-dev/aptly / Len

Method Len

deb/local.go:235–237  ·  view source on GitHub ↗

Len returns number of remote repos

()

Source from the content-addressed store, hash-verified

233
234// Len returns number of remote repos
235func (collection *LocalRepoCollection) Len() int {
236 return len(collection.db.KeysByPrefix([]byte("L")))
237}
238
239// Drop removes remote repo from collection
240func (collection *LocalRepoCollection) Drop(repo *LocalRepo) error {

Callers 1

NumPackagesMethod · 0.45

Calls 1

KeysByPrefixMethod · 0.65

Tested by

no test coverage detected