Versions in this module Expand all Collapse all v1 v1.0.0 Sep 18, 2026 Changes in this version + func EscapePath(key string) string + func HashBody(body io.ReadSeeker) (sum []byte, length int64, err error) + func SSECHeaders(keyBytes []byte) map[string]string + type Client struct + func New(cfg Config) (*Client, error) + func (c *Client) Authorize(method, reqURL string, headers map[string]string, payloadHash string, ...) string + func (c *Client) CopyObject(ctx context.Context, srcKey, dstKey string, headers map[string]string) error + func (c *Client) DeleteObject(ctx context.Context, key string) error + func (c *Client) Do(ctx context.Context, method, key string, body io.ReadSeeker, ...) error + func (c *Client) ObjectURL(key string) string + func (c *Client) PutObject(ctx context.Context, key string, body io.ReadSeeker, contentType string, ...) error + func (c *Client) SigningKey(date string) []byte + type Config struct + AccessKey string + Bucket string + Endpoint string + HTTPClient *http.Client + Region string + SecretKey string + UsePathStyle bool + type Error struct + Code string + Message string + Status int + func (e *Error) Error() string