Documentation
¶
Index ¶
- func Validate(ctx context.Context, value Config) error
- type Client
- func (c *Client) Delete(ctx context.Context, bucket, key string) error
- func (c *Client) Head(ctx context.Context, bucket, key string) (Head, error)
- func (c *Client) PresignGet(ctx context.Context, bucket, key string, expires time.Duration) (string, error)
- func (c *Client) PresignPut(ctx context.Context, bucket, key, contentType string, size int64, ...) (string, http.Header, error)
- func (c *Client) PublicURL(bucket, key string) string
- func (c *Client) ReadPrefix(ctx context.Context, bucket, key string, limit int64) ([]byte, error)
- func (c *Client) VerifyBucket(ctx context.Context, bucket string, public bool) error
- type Config
- type Head
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) PresignGet ¶
func (*Client) PresignPut ¶
func (*Client) ReadPrefix ¶
type Config ¶
type Config struct {
Endpoint string `json:"endpoint"`
Region string `json:"region"`
AccessKeyID string `json:"access_key_id"`
SecretAccessKey string `json:"secret_access_key"`
ForcePathStyle bool `json:"force_path_style"`
PublicBucket string `json:"public_bucket,omitempty"`
PrivateBucket string `json:"private_bucket,omitempty"`
PublicBaseURL string `json:"public_base_url,omitempty"`
AllowPrivateEndpoint bool `json:"allow_private_endpoint"`
}
Click to show internal directories.
Click to hide internal directories.