oss

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(key string) error

Delete the file pointed to by key.

func Exists

func Exists(key string) (bool, error)

Exists determines whether the file exists.

func Get

func Get(key string) (io.ReadCloser, error)

Get gets the file pointed to by key.

func GetBytes

func GetBytes(key string) ([]byte, error)

GetBytes gets the file pointed to by key and returns a byte array.

func GetString

func GetString(key string) (string, error)

GetString gets the file pointed to by key and returns a string.

func GetToFile

func GetToFile(key string, localPath string) error

GetToFile saves the file pointed to by key to the localPath.

func Init

func Init()

func Put

func Put(key string, r io.Reader) error

Put saves the content read from r to the key of oss.

func PutFromFile

func PutFromFile(key string, localPath string) error

PutFromFile saves the file pointed to by the `localPath` to the oss key.

func Size

func Size(key string) (int64, error)

Size fet the file size.

Types

This section is empty.

Jump to

Keyboard shortcuts

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