uploader

package
v0.1442.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: Apache-2.0 Imports: 14 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUploadCancelled = errors.New("upload cancelled")

Functions

This section is empty.

Types

type URLUploader

type URLUploader struct {
	// contains filtered or unexported fields
}

func (*URLUploader) Upload

func (uploader *URLUploader) Upload(fileLocation string, url *url.URL, cancel <-chan struct{}) (int64, error)

type Uploader

type Uploader interface {
	Upload(fileLocation string, destinationUrl *url.URL, cancel <-chan struct{}) (int64, error)
}

func New

func New(logger lager.Logger, timeout time.Duration, tlsConfig *tls.Config) Uploader

Directories

Path Synopsis
This file was generated by counterfeiter
This file was generated by counterfeiter

Jump to

Keyboard shortcuts

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