storage

package
v0.0.0-...-f448fd0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend interface {
	Setup() error
	Type() string
	Write(repoKey string, cacheID int, r io.Reader, start, end int, size int64) (string, int64, error)
	Delete(repoKey string, partData string) error

	// Finalise Takes a list of upload parts, and somehow concatenates them and returns a path which can be passed to GenerateArchiveURL
	Finalise(repoKey string, cacheID int, parts []s.CachePart) (string, error)
	GenerateArchiveURL(scheme, host, repoKey, path string) (string, error)
	GetFilePath(key string) (string, error)
}

func GetStorageBackend

func GetStorageBackend(backend, connectionString string) (Backend, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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