list/http_post: adds http post distribution lists

This commit is contained in:
Iain Learmonth 2022-11-08 14:31:45 +00:00
parent 218779bd20
commit 21f7cbddcb
3 changed files with 38 additions and 0 deletions

View file

@ -57,6 +57,7 @@ class MirrorList(AbstractConfiguration):
providers_supported = {
"github": "GitHub",
"gitlab": "GitLab",
"http_post": "HTTP POST",
"s3": "AWS S3",
}
@ -85,6 +86,8 @@ class MirrorList(AbstractConfiguration):
return f"https://raw.githubusercontent.com/{self.container}/{self.branch}/{self.filename}"
if self.provider == "s3":
return f"s3://{self.container}/{self.filename}"
if self.provider == "http_post":
return self.container
return "Unknown provider"
@classmethod