Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'internal/source/gitlab')
-rw-r--r--internal/source/gitlab/api/lookup_path.go5
-rw-r--r--internal/source/gitlab/factory.go1
2 files changed, 4 insertions, 2 deletions
diff --git a/internal/source/gitlab/api/lookup_path.go b/internal/source/gitlab/api/lookup_path.go
index 0a765217..242a77c0 100644
--- a/internal/source/gitlab/api/lookup_path.go
+++ b/internal/source/gitlab/api/lookup_path.go
@@ -11,6 +11,7 @@ type LookupPath struct {
// Source describes GitLab Page serving variant
type Source struct {
- Type string `json:"type,omitempty"`
- Path string `json:"path,omitempty"`
+ Type string `json:"type,omitempty"`
+ Path string `json:"path,omitempty"`
+ Sha256 string `json:"sha256,omitempty"`
}
diff --git a/internal/source/gitlab/factory.go b/internal/source/gitlab/factory.go
index 21572cd0..fb7a6863 100644
--- a/internal/source/gitlab/factory.go
+++ b/internal/source/gitlab/factory.go
@@ -25,6 +25,7 @@ func fabricateLookupPath(size int, lookup api.LookupPath) *serving.LookupPath {
return &serving.LookupPath{
ServingType: lookup.Source.Type,
Path: lookup.Source.Path,
+ Sha256: lookup.Source.Sha256,
Prefix: lookup.Prefix,
IsNamespaceProject: (lookup.Prefix == "/" && size > 1),
IsHTTPSOnly: lookup.HTTPSOnly,