storage

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(ctx context.Context, options ...option.ClientOption) (*storage.Client, error)

func Read

func Read(ctx context.Context, client *storage.Client, bucket string, files ...*FileDownload) error

func Write

func Write(ctx context.Context, client *storage.Client, bucket string, files ...*FileUpload) error

Types

type FileDownload

type FileDownload struct {
	FilePath string
	FileName string
	Data     []byte
}

type FileUpload

type FileUpload struct {
	FilePath string
	FileName string
	MimeType string
	Data     []byte
}

Jump to

Keyboard shortcuts

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