storage

package
v0.0.0-...-5a29284 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clean

func Clean(contains string) error

Clean cleans including 'contains'

func FilesInDirectory

func FilesInDirectory(dirname string) []storage.ObjectAttrs

FilesInDirectory returns attributes in dirname

func InitStorage

func InitStorage()

InitStorage inits google storage

func PNGtoBytes

func PNGtoBytes(filename string) []byte

PNGtoBytes converts png to []byte https://www.socketloop.com/tutorials/golang-convert-an-image-file-to-byte

func Remove

func Remove(contains string) error

Remove remove dir and files containing from

func Write

func Write(contents []byte, filename string) (string, error)

Write writes []byte to filename in GCS

Types

type ObjectAttrs

type ObjectAttrs storage.ObjectAttrs

ObjectAttrs alias of storage.ObjectAttrs

Jump to

Keyboard shortcuts

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