storage

package
v0.0.0-...-8093e22 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

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

func New

func New(host, bucket string) *Storage

func (*Storage) Exist

func (s *Storage) Exist(filename string) bool

func (*Storage) Get

func (s *Storage) Get(filename string) (io.ReadCloser, error)

func (*Storage) Store

func (s *Storage) Store(filename string, buf *bytes.Buffer) (url string, err error)

Jump to

Keyboard shortcuts

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