aliyun

package
v0.0.0-...-6231a78 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2023 License: MIT Imports: 1 Imported by: 0

README

aliyun

阿里云

实现

  • OSS 上传文件(文件存在覆盖)

Documentation

Overview

阿里云相关

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OSSConf

type OSSConf struct {
	Endpoint        string `json:"endpoint"`
	AccessKeyId     string `json:"accessKeyId"`
	AccessKeySecret string `json:"accessKeySecret"`
}

func (*OSSConf) OSSClient

func (c *OSSConf) OSSClient() (*oss.Client, error)

返回 OSSClient

type OSSFile

type OSSFile struct {
	BucketName     string `json:"bucketName"`
	BucketFilePath string `json:"bucketFilePath"`
	LoadFilePath   string `json:"loadFilePath"`
}

func (*OSSFile) UploadFile

func (f *OSSFile) UploadFile(conf *OSSConf) error

上传文件(文件存在覆盖)

Jump to

Keyboard shortcuts

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