list/http_post: adds http post distribution lists
This commit is contained in:
parent
218779bd20
commit
21f7cbddcb
3 changed files with 38 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue