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

Method Len

deb/remote.go:1021–1023  ·  view source on GitHub ↗

Len returns number of remote repos

()

Source from the content-addressed store, hash-verified

1019
1020// Len returns number of remote repos
1021func (collection *RemoteRepoCollection) Len() int {
1022 return len(collection.db.KeysByPrefix([]byte("R")))
1023}
1024
1025// Drop removes remote repo from collection
1026func (collection *RemoteRepoCollection) Drop(repo *RemoteRepo) error {

Callers 4

NumPackagesMethod · 0.45
ApplyFilterMethod · 0.45
BuildDownloadQueueMethod · 0.45
FinalizeDownloadMethod · 0.45

Calls 1

KeysByPrefixMethod · 0.65

Tested by

no test coverage detected