Documentation
¶
Overview ¶
Package objectstore provides an S3-compatible blob storage client.
Index ¶
- Variables
- type Client
- func (c *Client) Delete(ctx context.Context, key string) error
- func (c *Client) Exists(ctx context.Context, key string) (bool, error)
- func (c *Client) Get(ctx context.Context, key string) (io.ReadCloser, int64, error)
- func (c *Client) Head(ctx context.Context, key string) (int64, error)
- func (c *Client) List(ctx context.Context, prefix string) ([]string, error)
- func (c *Client) Put(ctx context.Context, key string, body io.Reader, size int64) error
- func (c *Client) PutLargeFile(ctx context.Context, key, filePath string) error
- type Config
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("not found")
ErrNotFound is returned when a requested object does not exist.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client wraps a MinIO S3 client with key prefixing.
type Config ¶
type Config struct {
Endpoint string
AccessKey string //nolint:gosec // configuration schema field name
SecretKey string //nolint:gosec // configuration schema field name
Bucket string
Region string
Prefix string
Secure bool
}
Config holds S3-compatible object store connection settings.
func ConfigFromEnv ¶
ConfigFromEnv reads S3 settings from environment, falling back to ~/.config/epoch/s3.env.
Click to show internal directories.
Click to hide internal directories.