diff --git a/mirrormanager.proto b/mirrormanager.proto deleted file mode 100644 index 9dc7989b..00000000 --- a/mirrormanager.proto +++ /dev/null @@ -1,115 +0,0 @@ -syntax = "proto2"; - -/* Generate python files with: - $ protoc --python_out=mirrormanager2/lib mirrormanager.proto - - Unfortunately it is not possible to use Protobuf maps as - RHEL7/CentOS7's Protobuf is too old. -*/ - -package mirrormanager; - -message FileDetailsType { - required uint64 TimeStamp = 1; - required uint64 Size = 2; - optional string SHA1 = 3; - optional string MD5 = 4; - optional string SHA256 = 5; - optional string SHA512 = 6; -} - -message FileDetailsCacheFilesType { - /* filename, [{details}] (this is a list) */ - required string filename = 1; - repeated FileDetailsType FileDetails = 2; -} - -message FileDetailsCacheDirectoryType { - required string directory = 1; - repeated FileDetailsCacheFilesType FileDetailsCacheFiles = 2; -} - -message MirrorListCacheType { - /* directoryname */ - required string directory = 1; - /* 'global': set() */ - repeated int64 Global = 2; - /* subpath */ - optional string Subpath = 3; - /* country, set(hostid) */ - repeated StringRepeatedIntMap ByCountry = 4; - /* country, set(hostid) */ - repeated StringRepeatedIntMap ByCountryInternet2 = 5; - /* hostid, [hcurl] */ - repeated IntRepeatedIntMap ByHostId = 6; - optional bool OrderedMirrorList = 7; -} - -message StringStringMap { - required string key = 1; - required string value = 2; -} - -message StringRepeatedIntMap { - required string key = 1; - repeated int64 value = 2; -} - -message IntRepeatedStringMap { - required int64 key = 1; - repeated string value = 2; -} - -message IntStringMap { - required int64 key = 1; - required string value = 2; -} - -message IntIntMap { - required int64 key = 1; - required int64 value = 2; -} - -message IntRepeatedIntMap { - required int64 key = 1; - repeated int64 value = 2; -} - -message StringBoolMap { - required string key = 1; - required bool value = 2; -} - -message MirrorList { - required uint64 Time = 1; - /* IP, country */ - repeated StringStringMap NetblockCountryCache = 2; - /* location.name, [host.id] */ - repeated StringRepeatedIntMap LocationCache = 3; - /* hcurl.id, hcurl.url */ - repeated IntStringMap HCUrlCache = 4; - /* directoryname, {filename}[{details}] */ - repeated FileDetailsCacheDirectoryType FileDetailsCache = 5; - /* r.prefix, bool */ - repeated StringBoolMap DisabledRepositoryCache = 6; - /* c.country, c.continent */ - repeated StringStringMap CountryContinentRedirectCache = 7; - /* r.from_repo, r.to_repo */ - repeated StringStringMap RepositoryRedirectCache = 8; - /* repo.prefix+repo.arch.name, directoryname */ - repeated StringStringMap RepoArchToDirectoryName = 9; - /* asn, [host.id] */ - repeated IntRepeatedIntMap HostAsnCache = 10; - /* host.id, host.max_connections */ - repeated IntIntMap HostMaxConnectionCache = 11; - /* host.id, host.country */ - repeated IntStringMap HostCountryCache = 12; - /* host.id, host.bandwidth_int */ - repeated IntIntMap HostBandwidthCache = 13; - /* host.id, [list(host.countries_allowed)] */ - repeated IntRepeatedStringMap HostCountryAllowedCache = 14; - /* IP, [host.id] */ - repeated StringRepeatedIntMap HostNetblockCache = 15; - /* directoryname, * */ - repeated MirrorListCacheType MirrorListCache = 16; -} diff --git a/pyproject.toml b/pyproject.toml index 81ea6cc4..71019b91 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -33,7 +33,6 @@ packages = [ include = [ { path = "runserver.py", format = "sdist" }, - { path = "mirrormanager.proto", format = "sdist" }, { path = "doc", format = "sdist" }, { path = "tox.ini", format = "sdist" }, { path = "testdata", format = "sdist" },