storage

package
v0.8.27 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2021 License: MIT Imports: 17 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, configService config.IConfig) *GoogleOSS

func (*GoogleOSS) GetObjectBase64Content added in v0.6.3

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

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 *beeorm.Engine, bucket, base64image, extension string) oss.Object

func (*GoogleOSS) UploadImageFromFile

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

func (*GoogleOSS) UploadObjectFromBase64

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

func (*GoogleOSS) UploadObjectFromFile

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

Jump to

Keyboard shortcuts

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