minio

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2022 License: MIT Imports: 8 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 {
	// contains filtered or unexported fields
}

func New

func New(cfg *oss.Config) *Minio

func (*Minio) AbortMultipartUpload

func (m *Minio) AbortMultipartUpload(key, uploadId string) error

func (*Minio) AssumeRole

func (m *Minio) AssumeRole() (*oss.AssumeRoleResp, error)

func (*Minio) CompleteMultipartUpload

func (m *Minio) CompleteMultipartUpload(key, uploadId string, parts []oss.Part) (url, uri string, err error)

func (*Minio) Config

func (m *Minio) Config() *oss.Config

func (*Minio) GetHost

func (m *Minio) GetHost() string

GetHost ...

func (*Minio) InitiateMultipartUpload

func (m *Minio) InitiateMultipartUpload(key string) (uploadId string, err error)

func (*Minio) Upload

func (m *Minio) Upload(key string, body io.Reader, size int64) (url, uri string, err error)

func (*Minio) UploadPart

func (m *Minio) UploadPart(key, uploadId string, body io.Reader, partNumber int32, offset,
	partSize int64) (ETag string, err error)

Jump to

Keyboard shortcuts

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