app

package
v0.0.0-...-c6d6244 Latest Latest
Warning

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

Go to latest
Published: May 7, 2019 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Version string = "0.2.0"
)

Global version definition

Variables

View Source
var (
	InfoLog  = log.New(os.Stdout, "", log.LstdFlags)
	ErrorLog = log.New(os.Stderr, "", log.LstdFlags)
)

InfoLog and ErrorLog are providing a general logging facility.

Functions

func Download

func Download()

Download is starting the process of downloading all objects from an OSS Bucket.

func OssEndpoint

func OssEndpoint(region string, disableTLS bool) string

OssEndpoint returns the endpoint which will be used for the client connection.

Types

type LocalFileInfo

type LocalFileInfo struct {
	AbsDir  string
	AbsPath string
	Exists  bool
	IsDir   bool
	Name    string
	Size    int64
}

LocalFileInfo denotes required information for the local files.

func LocalFile

func LocalFile(ossObject oss.ObjectProperties) (*LocalFileInfo, error)

LocalFile returns LocalFileInfo for on OSS object.

Jump to

Keyboard shortcuts

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