blob

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlobConnect

type BlobConnect interface {
	Upload(string, []byte) error
	Download(string) (bytes.Buffer, error)
	Delete(string) error
	IndexFileExists() bool
}

func NewBlobConnect

func NewBlobConnect(bucketUrl string) (BlobConnect, error)

type Connect

type Connect struct {
	Bucket *blob.Bucket
	// contains filtered or unexported fields
}

func (Connect) Delete

func (c Connect) Delete(filename string) error

func (Connect) Download

func (c Connect) Download(filename string) (bytes.Buffer, error)

func (Connect) IndexFileExists

func (c Connect) IndexFileExists() bool

func (Connect) Upload

func (c Connect) Upload(filename string, data []byte) error

Jump to

Keyboard shortcuts

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