oss

package
v0.15.2 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

* @Author: kamalyes 501893067@qq.com * @Date: 2023-07-28 00:50:58 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2024-08-09 09:18:56 * @FilePath: \go-core\pkg\oss\minio.go * @Description: * * Copyright (c) 2024 by kamalyes, All Rights Reserved.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(objectName string) (err error)

Delete *

  • @Description: 删除文件
  • @param objectName
  • @return err

func DownLoad

func DownLoad(objectName, filePath string) (err error)

DownLoad *

  • @Description: 下载
  • @param objectName
  • @param filePath
  • @param contentType

func Exist

func Exist(objectName string) (exist bool)

Exist *

  • @Description: 文件是否存在
  • @param objectName
  • @param filePath
  • @param contentType

func Minio

func Minio() *minio.Client

Minio 初始z化minio客户端

func UpLoad

func UpLoad(objectName, filePath, contentType string) (err error)

UpLoad *

  • @Description: 上传
  • @param objectName
  • @param filePath
  • @param contentType application/zip

Types

This section is empty.

Jump to

Keyboard shortcuts

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