download

package
v2.13.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DownloadBackup

type DownloadBackup interface {
	DownloadBackup(url string, backupWriter StreamedWriter) error
	TrailerKey() string
}

func DefaultDownloadBackup

func DefaultDownloadBackup(clock clock.Clock, config config.Config) DownloadBackup

type HttpDownloadBackup

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

func (*HttpDownloadBackup) DownloadBackup

func (this *HttpDownloadBackup) DownloadBackup(backupURL string, backupWriter StreamedWriter) error

func (*HttpDownloadBackup) TrailerKey

func (_ *HttpDownloadBackup) TrailerKey() string

type StreamedWriter

type StreamedWriter interface {
	WriteStream(reader io.Reader) error
}

Jump to

Keyboard shortcuts

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