cloud

package
v0.117.0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2025 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Uploader

type Uploader interface {
	// Check can be called before the actual upload to ensure
	// all permissions are correct
	Check(status io.Writer) error

	// UploadAndRegister will upload the given image from
	// the reader and write status message to the given
	// status writer.
	// To implement progress a proxy reader can be used.
	UploadAndRegister(f io.Reader, status io.Writer) error
}

Uploader is an interface that is returned from the actual cloud implementation. The uploader will be parameterized by the actual cloud implemntation, e.g.

awscloud.NewUploader(region, bucket, image) Uploader

which is outside the scope of this interface.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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