Documentation ¶
Index ¶
- type Blob
- type Bucket
- func (bu *Bucket) Close()
- func (bu *Bucket) Exists(ctx context.Context, key string) (ok bool, err error)
- func (bu *Bucket) GetBlob(ctx context.Context, key string) (b *Blob, err error)
- func (bu *Bucket) List(options ...ListOption) *ListIterator
- func (bu *Bucket) SetBlob(ctx context.Context, key string, data []byte, opts ...WriteOption) error
- func (bu *Bucket) WithPrefix(prefix string) *Bucket
- type BucketOption
- type ListIterator
- type ListOption
- type NotFoundError
- type OptBucketCacheDir
- type OptBucketNoCache
- type OptListPrefix
- type OptWriteCacheTTL
- type WriteOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bucket ¶
type Bucket struct {
// contains filtered or unexported fields
}
func (*Bucket) List ¶
func (bu *Bucket) List(options ...ListOption) *ListIterator
func (*Bucket) WithPrefix ¶
WithPrefix returns a new bucket with the given prefix.
type BucketOption ¶
type BucketOption interface {
// contains filtered or unexported methods
}
type ListIterator ¶
type ListIterator struct {
// contains filtered or unexported fields
}
func (*ListIterator) Err ¶
func (it *ListIterator) Err() error
func (*ListIterator) Key ¶
func (it *ListIterator) Key() string
type ListOption ¶
type ListOption interface {
// contains filtered or unexported methods
}
type NotFoundError ¶
type NotFoundError struct {
Key string
}
NotFoundError is returned when a key is not found in the bucket.
func (*NotFoundError) Error ¶
func (e *NotFoundError) Error() string
type OptBucketCacheDir ¶
type OptBucketCacheDir struct {
CacheDir string
}
type OptBucketNoCache ¶
type OptBucketNoCache struct {
NoCache bool
}
type OptListPrefix ¶
type OptListPrefix struct {
Prefix string
}
type OptWriteCacheTTL ¶
type WriteOption ¶
type WriteOption interface {
// contains filtered or unexported methods
}
Click to show internal directories.
Click to hide internal directories.