objStore

package
v0.0.0-...-fbe9650 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2018 License: BSD-2-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ObjStore

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

func NewObjStore

func NewObjStore(objStoreUrl, accessKey, secretKey, bucketName string) (*ObjStore, error)

configure new object store

func (o ObjStore) GenerateAccessLink(objectName string) (link *url.URL, err error)

generate download link for object

func (ObjStore) SavePngFile

func (o ObjStore) SavePngFile(path string) (name string, size int64, err error)

upload PNG file to object store

Jump to

Keyboard shortcuts

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