osssync

package
v0.0.0-...-9964ce0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OSSClient

type OSSClient struct {
	Bucket *oss.Bucket
	// contains filtered or unexported fields
}

func (*OSSClient) Download

func (c *OSSClient) Download(subPathName string) error

func (*OSSClient) Init

func (c *OSSClient) Init(path string) error

func (*OSSClient) Upload

func (c *OSSClient) Upload(subPathName string) error

type OSSConfig

type OSSConfig struct {
	ENDPOINT          string `json:"ENDPOINT"`
	ACCESS_KEY_ID     string `json:"ACCESS_KEY_ID"`
	ACCESS_KEY_SECRET string `json:"ACCESS_KEY_SECRET"`
	BUCKET_NAME       string `json:"BUCKET_NAME"`
}

func (*OSSConfig) Load

func (bc *OSSConfig) Load(path string) error

Jump to

Keyboard shortcuts

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