aws

package
v0.0.0-...-16adccd Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFlags

func AddFlags(fl *flag.FlagSet) func() (imageStore, fileStore BlobStore)

Types

type BlobStore

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

func NewBlobStore

func NewBlobStore(s string) BlobStore

func (BlobStore) BuildURL

func (bs BlobStore) BuildURL(srcPath string) string

func (BlobStore) ReadMD5

func (bs BlobStore) ReadMD5(ctx context.Context, path string) (hash []byte, size int64, err error)

func (BlobStore) SignGetURL

func (bs BlobStore) SignGetURL(ctx context.Context, srcPath string) (signedURL string, err error)

func (BlobStore) SignPutURL

func (bs BlobStore) SignPutURL(ctx context.Context, srcPath string, h http.Header) (signedURL string, err error)

func (BlobStore) WriteFile

func (bs BlobStore) WriteFile(ctx context.Context, path string, h http.Header, data []byte) (err error)

Jump to

Keyboard shortcuts

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