Versions in this module Expand all Collapse all v0 v0.27.1 Apr 24, 2025 Changes in this version + var ErrClosed = errors.New("bucket or blob is closed") + var ErrNotFound = errors.New("resource not found") + var FirstPageToken = []byte("first page") + func HexEscape(s string, shouldEscape func(s []rune, i int) bool) string + func HexUnescape(s string) string + type Attributes struct + CacheControl string + ContentDisposition string + ContentEncoding string + ContentLanguage string + ContentType string + CreateTime time.Time + ETag string + MD5 []byte + Metadata map[string]string + ModTime time.Time + Size int64 + type Bucket struct + func NewBucket(drv Driver) *Bucket + func (b *Bucket) Attributes(ctx context.Context, key string) (_ *Attributes, err error) + func (b *Bucket) Close() error + func (b *Bucket) Copy(ctx context.Context, dstKey, srcKey string) (err error) + func (b *Bucket) Delete(ctx context.Context, key string) (err error) + func (b *Bucket) Exists(ctx context.Context, key string) (bool, error) + func (b *Bucket) List(opts *ListOptions) *ListIterator + func (b *Bucket) ListPage(ctx context.Context, pageToken []byte, pageSize int, opts *ListOptions) (retval []*ListObject, nextPageToken []byte, err error) + func (b *Bucket) NewRangeReader(ctx context.Context, key string, offset, length int64) (_ *Reader, err error) + func (b *Bucket) NewReader(ctx context.Context, key string) (*Reader, error) + func (b *Bucket) NewWriter(ctx context.Context, key string, opts *WriterOptions) (_ *Writer, err error) + type Driver interface + Attributes func(ctx context.Context, key string) (*Attributes, error) + Close func() error + Copy func(ctx context.Context, dstKey, srcKey string) error + Delete func(ctx context.Context, key string) error + ListPaged func(ctx context.Context, opts *ListOptions) (*ListPage, error) + NewRangeReader func(ctx context.Context, key string, offset, length int64) (DriverReader, error) + NewTypedWriter func(ctx context.Context, key, contentType string, opts *WriterOptions) (DriverWriter, error) + NormalizeError func(err error) error + type DriverReader interface + Attributes func() *ReaderAttributes + type DriverWriter interface + type ListIterator struct + func (i *ListIterator) Next(ctx context.Context) (*ListObject, error) + type ListObject struct + IsDir bool + Key string + MD5 []byte + ModTime time.Time + Size int64 + type ListOptions struct + Delimiter string + PageSize int + PageToken []byte + Prefix string + type ListPage struct + NextPageToken []byte + Objects []*ListObject + type Reader struct + func (r *Reader) Close() error + func (r *Reader) ContentType() string + func (r *Reader) ModTime() time.Time + func (r *Reader) Read(p []byte) (int, error) + func (r *Reader) Seek(offset int64, whence int) (int64, error) + func (r *Reader) Size() int64 + func (r *Reader) WriteTo(w io.Writer) (int64, error) + type ReaderAttributes struct + ContentType string + ModTime time.Time + Size int64 + type Writer struct + func (w *Writer) Close() (err error) + func (w *Writer) ReadFrom(r io.Reader) (int64, error) + func (w *Writer) Write(p []byte) (int, error) + type WriterOptions struct + BufferSize int + CacheControl string + ContentDisposition string + ContentEncoding string + ContentLanguage string + ContentMD5 []byte + ContentType string + DisableContentTypeDetection bool + MaxConcurrency int + Metadata map[string]string