storage

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoogleOSS

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

func NewGoogleOSS

func NewGoogleOSS(credentialsFile string, environment string, buckets map[string]uint64, ossConfig map[string]interface{}) *GoogleOSS

func (*GoogleOSS) GetObjectCachedURL

func (ossStorage *GoogleOSS) GetObjectCachedURL(bucket string, object *oss.Object) string

func (*GoogleOSS) GetObjectSignedURL

func (ossStorage *GoogleOSS) GetObjectSignedURL(bucket string, object *oss.Object, expires time.Time) string

func (*GoogleOSS) GetObjectURL

func (ossStorage *GoogleOSS) GetObjectURL(bucket string, object *oss.Object) string

func (*GoogleOSS) ReadFile

func (ossStorage *GoogleOSS) ReadFile(localFile string) ([]byte, string)

func (*GoogleOSS) UploadImageFromBase64

func (ossStorage *GoogleOSS) UploadImageFromBase64(ormService *orm.Engine, bucket, base64image, extension string) oss.Object

func (*GoogleOSS) UploadImageFromFile

func (ossStorage *GoogleOSS) UploadImageFromFile(ormService *orm.Engine, bucket, localFile string) oss.Object

func (*GoogleOSS) UploadObjectFromBase64

func (ossStorage *GoogleOSS) UploadObjectFromBase64(ormService *orm.Engine, bucket, base64content, extension string) oss.Object

func (*GoogleOSS) UploadObjectFromFile

func (ossStorage *GoogleOSS) UploadObjectFromFile(ormService *orm.Engine, bucket, localFile string) oss.Object

Jump to

Keyboard shortcuts

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