Versions in this module Expand all Collapse all v1 v1.0.3 Jul 24, 2026 Changes in this version type Config + UsePathStyle bool v1.0.2 Jul 24, 2026 Changes in this version type Config + PathStyle bool v1.0.1 Jul 24, 2026 Changes in this version + const DefaultRegion + const DefaultUseSSL + const MaxPresignedExpires + const UnsignedPayload + type Client struct + func NewClient(config *Config) *Client + func (c *Client) AbortMultipartUpload(ctx context.Context, objectName, uploadID string) error + func (c *Client) CompleteMultipartUpload(ctx context.Context, objectName, uploadID string, parts []Part) error + func (c *Client) DeleteFile(ctx context.Context, objectName string) error + func (c *Client) DownloadFile(ctx context.Context, objectName string) ([]byte, error) + func (c *Client) DownloadFileWithRange(ctx context.Context, objectName, rangeHeader string) ([]byte, error) + func (c *Client) DownloadStream(ctx context.Context, objectName string) (io.ReadCloser, error) + func (c *Client) GetPresignedURL(objectName string, expiresIn int64) (string, error) + func (c *Client) HeadObject(ctx context.Context, objectName string) (http.Header, error) + func (c *Client) InitiateMultipartUpload(ctx context.Context, objectName, contentType string) (string, error) + func (c *Client) PutObjectPresign(objectName string, expiresIn int64, contentType string) (string, error) + func (c *Client) UploadFile(ctx context.Context, objectName string, data io.Reader, contentType string) error + func (c *Client) UploadPart(ctx context.Context, objectName, uploadID string, partNumber int, ...) (string, error) + type CompleteMultipartUpload struct + Parts []Part + XMLName xml.Name + type Config struct + AccessKeyID string + AccessKeySecret string + Bucket string + Endpoint string + Region string + UseSSL bool + func (c *Config) FromEnv() error + func (c *Config) Validate() error + type Part struct + ETag string + PartNumber int v1.0.0 Jul 24, 2026