oss

package
v0.0.0-...-0b57644 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(mybucket, endpoint, key, secret, fileid string) (bool, error)

func IsExist

func IsExist(mybucket, endpoint, key, secret, fileid string) (bool, error)

func UploadFile

func UploadFile(mybucket, endpoint, key, secret, fileid, filepath string) error

Types

type Config

type Config struct {
	OSS *OSSConfig `yaml:"oss"`
}

type OSSConfig

type OSSConfig struct {
	Bucket   string `yaml:"bucket"`   //存储
	Endpoint string `yaml:"endpoint"` //空间地址
	Key      string `yaml:"key"`      //key
	Secret   string `yaml:"secret"`   //密钥
}

Jump to

Keyboard shortcuts

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