Documentation ¶
Index ¶
- Constants
- type Bucket
- func (b *Bucket) DequeueObjectPool()
- func (b *Bucket) DownloadObject(ctx context.Context, key, filepath string) error
- func (b *Bucket) EnqueueObjectPool(obj string)
- func (b *Bucket) HeadObject(ctx context.Context, key string) (*s3.HeadObjectOutput, error)
- func (b *Bucket) ListObjects(ctx context.Context, key string, lastKey string) error
- func (b *Bucket) ObjectPool() chan string
- func (b *Bucket) ReadObject(ctx context.Context, key string) ([]byte, error)
Constants ¶
View Source
const MaxListKeys = 10000
MaxListKeys is the maximum number of keys to be listed in the ListObjects method of the Bucket type.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bucket ¶
type Bucket struct {
// contains filtered or unexported fields
}
Bucket represents a container for storing objects.
name is the name of the bucket.
log is a logger used for logging.
cli is an S3 client for interacting with the AWS S3 service.
objectQueue is a queue of objects.
errorsCh is a channel used for sending and receiving errors.
func (*Bucket) DequeueObjectPool ¶
func (b *Bucket) DequeueObjectPool()
func (*Bucket) DownloadObject ¶
func (*Bucket) EnqueueObjectPool ¶
func (*Bucket) HeadObject ¶
func (*Bucket) ListObjects ¶
ListObjects lists the objects in a bucket.
func (*Bucket) ObjectPool ¶
Click to show internal directories.
Click to hide internal directories.