Documentation ¶
Index ¶
- 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
- type Config
- type ImageInfo
- type Minio
- 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) (*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
- 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) (string, error)
- func (m *Minio) StatObject(ctx context.Context, name string) (*s3.ObjectInfo, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cache ¶
type Cache interface { GetImageObjectKeyInfo(ctx context.Context, key string, fn func(ctx context.Context) (*ImageInfo, error)) (*ImageInfo, error) GetThumbnailKey(ctx context.Context, key string, format string, width int, height int, minioCache func(ctx context.Context) (string, error)) (string, error) DelObjectImageInfoKey(ctx context.Context, keys ...string) error DelImageThumbnailKey(ctx context.Context, key string, format string, width int, height int) error }
type Minio ¶
type Minio struct {
// contains filtered or unexported fields
}
func (*Minio) AbortMultipartUpload ¶
func (*Minio) CompleteMultipartUpload ¶
func (*Minio) CopyObject ¶
func (*Minio) GetImageThumbnailKey ¶ added in v0.0.49
func (*Minio) InitiateMultipartUpload ¶
func (*Minio) IsNotFound ¶
func (*Minio) ListUploadedParts ¶
func (*Minio) PresignedGetObject ¶
func (*Minio) PresignedPutObject ¶
func (*Minio) StatObject ¶
Click to show internal directories.
Click to hide internal directories.