virtexportserver

package
v0.57.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 14, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewExportServer

func NewExportServer(config ExportServerConfig) service.Service

Types

type ExportServerConfig

type ExportServerConfig struct {
	Deadline time.Time

	ListenAddr string

	CertFile, KeyFile string

	TokenFile string

	Volumes []VolumeInfo

	// unit testing helpers
	ArchiveHandler func(string) http.Handler
	DirHandler     func(string, string) http.Handler
	FileHandler    func(string) http.Handler
	GzipHandler    func(string) http.Handler

	TokenGetter TokenGetterFunc
}

type TokenGetterFunc

type TokenGetterFunc func() (string, error)

type VolumeInfo

type VolumeInfo struct {
	Path       string
	ArchiveURI string
	DirURI     string
	RawURI     string
	RawGzURI   string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL