Storage

package
v0.0.0-...-694a505 Latest Latest
Warning

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

Go to latest
Published: May 11, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadFile

func DownloadFile(dstFileName string, srcFileName string, opts ...OptionalParameters) ([]int, error)

func GetFileAttributes

func GetFileAttributes(srcFileName string, opts ...OptionalParameters) (*storage.ObjectAttrs, error)

func Init

func Init(userServiceAccountKey string, userDefaultBucket string)

func SayHi

func SayHi()

func UploadFile

func UploadFile(dstPath string, srcFilePath string, opts ...OptionalParameters) error

Types

type OptionalParameters

type OptionalParameters struct {
	CustomBucket         string
	ConnTimeout          int
	Permission           fs.FileMode
	ShowStatusPercentage bool
}

Jump to

Keyboard shortcuts

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