README

PkgGoDev

blobfs

Like ioutil but for various cloud object stores like AWS S3, GCS, etc. using GoCloud.

Expand ▾ Collapse ▴

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlobFS

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

func New

func New(storageURL string) *BlobFS

func NewInMemoryFS

func NewInMemoryFS() *BlobFS

func NewOsFs

func NewOsFs() *BlobFS

func (*BlobFS) Exists

func (fs *BlobFS) Exists(ctx context.Context, filepath string) (bool, error)

func (*BlobFS) ReadFile

func (fs *BlobFS) ReadFile(ctx context.Context, filepath string) ([]byte, error)

func (*BlobFS) SignedURL

func (fs *BlobFS) SignedURL(ctx context.Context, filepath string, opts *blob.SignedURLOptions) (string, error)

func (*BlobFS) WriteFile

func (fs *BlobFS) WriteFile(ctx context.Context, filepath string, data []byte) error

Source Files

Directories

Path Synopsis