cloud

package
v0.0.0-...-544625c Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBucket

func GetBucket() *storage.BucketHandle

func GetObjectReader

func GetObjectReader(ctx context.Context, objectName string) (*storage.Reader, error)

func PrepareClient

func PrepareClient(credDir embed.FS, name string)

func SignUrl

func SignUrl(objectName string, expires int) string

Generates a signed URL that public accessable Specify object name on the bucket and expires in seconds

func Upload

func Upload(objectName string, content []byte) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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