uploadserver

package
v1.23.2 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2020 License: Apache-2.0 Imports: 17 Imported by: 4

Documentation

Index

Constants

View Source
const (
	// UploadContentTypeHeader is the header upload clients may use to set the content type explicitly
	UploadContentTypeHeader = "x-cdi-content-type"

	// FilesystemCloneContentType is the content type when cloning a filesystem
	FilesystemCloneContentType = "filesystem-clone"

	// UploadPathSync is the path to POST CDI uploads
	UploadPathSync = "/v1beta1/upload"

	// UploadPathAsync is the path to POST CDI uploads in async mode
	UploadPathAsync = "/v1beta1/upload-async"

	// UploadFormSync is the path to POST CDI uploads as form data
	UploadFormSync = "/v1beta1/upload-form"

	// UploadFormAsync is the path to POST CDI uploads as form datain async mode
	UploadFormAsync = "/v1beta1/upload-form-async"
)

Variables

View Source
var ProxyPaths = append(
	append(syncUploadPaths, asyncUploadPaths...),
	append(syncUploadFormPaths, asyncUploadFormPaths...)...,
)

ProxyPaths are all supported paths

Functions

This section is empty.

Types

type UploadServer

type UploadServer interface {
	Run() error
}

UploadServer is the interface to uploadServerApp

func NewUploadServer

func NewUploadServer(bindAddress string, bindPort int, destination, tlsKey, tlsCert, clientCert, clientName, imageSize string) UploadServer

NewUploadServer returns a new instance of uploadServerApp

Jump to

Keyboard shortcuts

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