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

serving.go « zip « disk « serving « internal - gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e9a5f1fad6090c6ce1bcbd6f5cd84316f071dcf6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package zip

import (
	"gitlab.com/gitlab-org/gitlab-pages/internal/serving"
	"gitlab.com/gitlab-org/gitlab-pages/internal/serving/disk"
	"gitlab.com/gitlab-org/gitlab-pages/internal/vfs"
	"gitlab.com/gitlab-org/gitlab-pages/internal/vfs/zip"
)

var instance = disk.New(vfs.Instrumented(zip.New("zip")))

// Instance returns a serving instance that is capable of reading files
// from a zip archives opened from a URL, most likely stored in object storage
func Instance() serving.Serving {
	return instance
}