minio

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: BSD-3-Clause Imports: 10 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 NewMinio

func NewMinio(conf oss.Conf) *Minio

func (*Minio) DeleteObject added in v0.0.10

func (m *Minio) DeleteObject(ctx context.Context, objectName string) error

func (*Minio) GetBucketName

func (m *Minio) GetBucketName() string

func (*Minio) GetObject

func (m *Minio) GetObject(ctx context.Context, objectName string, opts oss.GetObjectOption) (io.Reader, error)

func (*Minio) GetSTSAssumeRole

func (m *Minio) GetSTSAssumeRole(uid string, policyPattern string) (cr.Value, error)

func (*Minio) PresignedGetURL

func (m *Minio) PresignedGetURL(ctx context.Context, objectName string, expires time.Duration) (string, error)

func (*Minio) PresignedPutURL

func (m *Minio) PresignedPutURL(ctx context.Context, objectName string, expires time.Duration, etag, mimeType string, size int64) (string, error)

func (*Minio) PutObject

func (m *Minio) PutObject(ctx context.Context, objectName string, reader io.Reader, objectSize int64, contentType string) error

func (*Minio) StatObject

func (m *Minio) StatObject(ctx context.Context, objectName string) (oss.ObjectInfo, error)

Jump to

Keyboard shortcuts

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