uploadserver

package
v1.60.0 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2024 License: Apache-2.0 Imports: 21 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config added in v1.60.0

type Config struct {
	BindAddress string
	BindPort    int

	Destination string

	ServerKeyFile, ServerCertFile string
	ClientCertFile, ClientName    string

	ImageSize          string
	FilesystemOverhead float64
	Preallocation      bool

	Deadline *time.Time

	CryptoConfig cryptowatch.CryptoConfig
}

type RunResult added in v1.60.0

type RunResult struct {
	CloneTarget          bool
	PreallocationApplied bool
	DeadlinePassed       bool
}

RunResult is the result of the upload server run

type UploadServer

type UploadServer interface {
	Run() (*RunResult, error)
}

UploadServer is the interface to uploadServerApp

func NewUploadServer

func NewUploadServer(config *Config) 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