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: 6db0be10da5e7d3ba52fb54ed79803ae71566dac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package zip

import (
	"gitlab.com/gitlab-org/gitlab-pages/internal/config"
	"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(&config.ZipServing{})))

// 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
}