Versions in this module Expand all Collapse all v0 v0.0.2 Jan 25, 2026 Changes in this version + func Check(ctx context.Context, config *Config) error + func ImageStat(reader io.Reader) (image.Image, string, error) + func ImageWidthHeight(img image.Image) (int, int) + type Cache interface + DelImageThumbnailKey func(ctx context.Context, key string, format string, width int, height int) error + DelObjectImageInfoKey func(ctx context.Context, keys ...string) error + GetImageObjectKeyInfo func(ctx context.Context, key string, ...) (*ImageInfo, error) + GetThumbnailKey func(ctx context.Context, key string, format string, width int, height int, ...) (string, error) + type Config struct + AccessKeyID string + Bucket string + Endpoint string + PublicRead bool + SecretAccessKey string + SessionToken string + SignEndpoint string + type ImageInfo struct + Etag string + Format string + Height int + IsImg bool + Width int + type Minio struct + func NewMinio(ctx context.Context, cache Cache, conf Config) (*Minio, error) + func (m *Minio) AbortMultipartUpload(ctx context.Context, uploadID string, name string) error + func (m *Minio) AccessURL(ctx context.Context, name string, expire time.Duration, ...) (string, error) + func (m *Minio) AuthSign(ctx context.Context, uploadID string, name string, expire time.Duration, ...) (*s3.AuthSignResult, error) + func (m *Minio) CompleteMultipartUpload(ctx context.Context, uploadID string, name string, parts []s3.Part) (*s3.CompleteMultipartUploadResult, error) + func (m *Minio) CopyObject(ctx context.Context, src string, dst string) (*s3.CopyObjectInfo, error) + func (m *Minio) DeleteObject(ctx context.Context, name string) error + func (m *Minio) Engine() string + func (m *Minio) FormData(ctx context.Context, name string, size int64, contentType string, ...) (*s3.FormData, error) + func (m *Minio) GetImageThumbnailKey(ctx context.Context, name string) (string, error) + func (m *Minio) InitiateMultipartUpload(ctx context.Context, name string, opt *s3.PutOption) (*s3.InitiateMultipartUploadResult, error) + func (m *Minio) IsNotFound(err error) bool + func (m *Minio) ListUploadedParts(ctx context.Context, uploadID string, name string, partNumberMarker int, ...) (*s3.ListUploadedPartsResult, error) + func (m *Minio) PartLimit() (*s3.PartLimit, error) + func (m *Minio) PartSize(ctx context.Context, size int64) (int64, error) + func (m *Minio) PresignedGetObject(ctx context.Context, name string, expire time.Duration, query url.Values) (string, error) + func (m *Minio) PresignedPutObject(ctx context.Context, name string, expire time.Duration, opt *s3.PutOption) (*s3.PresignedPutResult, error) + func (m *Minio) StatObject(ctx context.Context, name string) (*s3.ObjectInfo, error)