cgominio

package
v0.0.0-...-508e81d Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Minio

type Minio struct {
}

func NewMinio

func NewMinio(configStr string) *Minio

NewMinio 创建minio类 @param configStr: json字符串 endpoint:str accessKeyId:str secretAccessKey:str bucketName:str ssl:bool bucketUrl:str region:str

func (*Minio) ExistObject

func (m *Minio) ExistObject(key string) bool

ExistObject 判断文件是否存在

func (*Minio) PutObject

func (m *Minio) PutObject(objectName string, data []byte) (result string)

PutObject 上传文件

type PubObjectResult

type PubObjectResult struct {
	Url   string `json:"url"`
	Error string `json:"error"`
}

PubObjectResult 上传文件返回结果

Jump to

Keyboard shortcuts

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