minio

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 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 ossconf.Conf) *Minio

func (*Minio) GetBucketName

func (m *Minio) GetBucketName() string

func (*Minio) GetObject added in v0.0.5

func (m *Minio) GetObject(ctx context.Context, objectName string, opts ossconf.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 added in v0.0.5

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) (ossconf.ObjectInfo, error)

Jump to

Keyboard shortcuts

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