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" // BlockdeviceClone is the content type when cloning a block device BlockdeviceClone = "blockdevice-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
Click to show internal directories.
Click to hide internal directories.