oss

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func Cp

func Cp(f, t string) error

func CpOrigin

func CpOrigin(f, t string) error

func Exist

func Exist(obj string) (bool, error)

func GetObjectBytes

func GetObjectBytes(obj string) ([]byte, error)

func Init

func Init(endpoint, keyID, keySecret, prefix string) error

func Ls

func Ls(dir string) ([]string, error)

func Mv

func Mv(f, t string) error

func MvWithoutPrefix

func MvWithoutPrefix(f, t string) error

func Rm

func Rm(objs ...string) error

func Touch

func Touch(reader io.Reader, to string) error

func TouchFormatImg

func TouchFormatImg(reader io.Reader, to string) error

func TouchPrefix

func TouchPrefix(reader io.Reader, to string, addPfx bool) error

func Url

func Url(obj string) (string, error)

func UrlPfx

func UrlPfx(obj string, addPfx bool) (string, error)

func ZoomUrl

func ZoomUrl(obj, s string) (string, error)

func ZoomUrlPfx

func ZoomUrlPfx(obj, s string, addPfx bool) (string, error)

Types

type ObjectInfo added in v1.4.2

type ObjectInfo struct {
	Key  string
	Type string
	Size int64
}

func LsDetails added in v1.4.2

func LsDetails(dir string) ([]ObjectInfo, error)

Jump to

Keyboard shortcuts

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