minio

package
v3.3.3-beta.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2023 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ImageStat

func ImageStat(reader io.Reader) (image.Image, string, error)

func ImageWidthHeight

func ImageWidthHeight(img image.Image) (int, int)

func NewMinio

func NewMinio() (s3.Interface, error)

Types

type Minio

type Minio struct {
	// contains filtered or unexported fields
}

func (*Minio) AbortMultipartUpload

func (m *Minio) AbortMultipartUpload(ctx context.Context, uploadID string, name string) error

func (*Minio) AccessURL

func (m *Minio) AccessURL(ctx context.Context, name string, expire time.Duration, opt *s3.AccessURLOption) (string, error)

func (*Minio) AuthSign

func (m *Minio) AuthSign(ctx context.Context, uploadID string, name string, expire time.Duration, partNumbers []int) (*s3.AuthSignResult, error)

func (*Minio) CompleteMultipartUpload

func (m *Minio) CompleteMultipartUpload(ctx context.Context, uploadID string, name string, parts []s3.Part) (*s3.CompleteMultipartUploadResult, error)

func (*Minio) CopyObject

func (m *Minio) CopyObject(ctx context.Context, src string, dst string) (*s3.CopyObjectInfo, error)

func (*Minio) DeleteObject

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

func (*Minio) Engine

func (m *Minio) Engine() string

func (*Minio) InitiateMultipartUpload

func (m *Minio) InitiateMultipartUpload(ctx context.Context, name string) (*s3.InitiateMultipartUploadResult, error)

func (*Minio) IsNotFound

func (m *Minio) IsNotFound(err error) bool

func (*Minio) ListUploadedParts

func (m *Minio) ListUploadedParts(ctx context.Context, uploadID string, name string, partNumberMarker int, maxParts int) (*s3.ListUploadedPartsResult, error)

func (*Minio) PartLimit

func (m *Minio) PartLimit() *s3.PartLimit

func (*Minio) PartSize

func (m *Minio) PartSize(ctx context.Context, size int64) (int64, error)

func (*Minio) PresignedPutObject

func (m *Minio) PresignedPutObject(ctx context.Context, name string, expire time.Duration) (string, error)

func (*Minio) StatObject

func (m *Minio) StatObject(ctx context.Context, name string) (*s3.ObjectInfo, error)

Jump to

Keyboard shortcuts

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