storage

package
v0.0.0-...-ab02cca Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFromDownloadService

func NewFromDownloadService(client DownloadServiceAPIClient) downloadService

func NewFromEmbeddedFilesystem

func NewFromEmbeddedFilesystem() embeddedfs

func NewFromLocalFilesystem

func NewFromLocalFilesystem(root http.Dir) localfs

func NewFromS3Bucket

func NewFromS3Bucket(s3bucket S3Bucket) s3

Types

type DownloadServiceAPIClient

type DownloadServiceAPIClient interface {
	Download(ctx context.Context, path string) (*download.Response, error)
	Checker(ctx context.Context, state *healthcheck.CheckState) (err error)
}

type Provider

type Provider interface {
	Get(context.Context, string) (io.ReadCloser, error)
	Checker() func(context.Context, *healthcheck.CheckState) error
}

type S3Bucket

type S3Bucket interface {
	Get(key string) (io.ReadCloser, *int64, error)
	Checker(ctx context.Context, state *healthcheck.CheckState) (err error)
}

S3Bucket defines methods used from dp-s3 lib - init points to a specific bucket

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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