upload

package
v18.1.15+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2018 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CACertPath

func CACertPath() (string, error)

func Initialize

func Initialize(conf *config.BackupConfig, logger lager.Logger, options ...Option) (*multiUploader, error)

func RemotePathFunc

func RemotePathFunc(basePath, deploymentName string) func() string

Types

type CACertLocator

type CACertLocator func() (string, error)

type Option

type Option func(*opts)

func WithCACertLocator

func WithCACertLocator(l CACertLocator) Option

func WithUploaderFactory

func WithUploaderFactory(f UploaderFactory) Option

type Uploader

type Uploader interface {
	Upload(localPath string, sessionLogger lager.Logger, processManager process.ProcessManager) error
	Name() string
}

type UploaderFactory

type UploaderFactory interface {
	S3(destination config.Destination, caCertPath string) *s3.S3CliClient
	SCP(destination config.Destination) *scp.SCPClient
	Azure(destination config.Destination) *azure.AzureClient
	GCS(destination config.Destination) *gcs.StorageClient
}

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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