Versions in this module Expand all Collapse all v0 v0.17.1 Oct 26, 2019 Changes in this version + const DefaultSignedURLExpiry + var NewBucket = newBucket + var OpenCensusViews = append(oc.Views(pkgName, latencyMeasure), &view.View{ ... }, &view.View{ ... }) + type Attributes struct + CacheControl string + ContentDisposition string + ContentEncoding string + ContentLanguage string + ContentType string + MD5 []byte + Metadata map[string]string + ModTime time.Time + Size int64 + func (a *Attributes) As(i interface{}) bool + type Bucket struct + func OpenBucket(ctx context.Context, urlstr string) (*Bucket, error) + func PrefixedBucket(bucket *Bucket, prefix string) *Bucket + func (b *Bucket) As(i interface{}) bool + 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, opts *CopyOptions) (err error) + func (b *Bucket) Delete(ctx context.Context, key string) (err error) + func (b *Bucket) ErrorAs(err error, i interface{}) bool + func (b *Bucket) Exists(ctx context.Context, key string) (bool, error) + func (b *Bucket) List(opts *ListOptions) *ListIterator + func (b *Bucket) NewRangeReader(ctx context.Context, key string, offset, length int64, opts *ReaderOptions) (_ *Reader, err error) + func (b *Bucket) NewReader(ctx context.Context, key string, opts *ReaderOptions) (*Reader, error) + func (b *Bucket) NewWriter(ctx context.Context, key string, opts *WriterOptions) (_ *Writer, err error) + func (b *Bucket) ReadAll(ctx context.Context, key string) (_ []byte, err error) + func (b *Bucket) SignedURL(ctx context.Context, key string, opts *SignedURLOptions) (string, error) + func (b *Bucket) WriteAll(ctx context.Context, key string, p []byte, opts *WriterOptions) (err error) + type BucketURLOpener interface + OpenBucketURL func(ctx context.Context, u *url.URL) (*Bucket, error) + type CopyOptions struct + BeforeCopy func(asFunc func(interface{}) bool) error + 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 + func (o *ListObject) As(i interface{}) bool + type ListOptions struct + BeforeList func(asFunc func(interface{}) bool) error + Delimiter string + Prefix string + type Reader struct + func (r *Reader) As(i interface{}) bool + 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) Size() int64 + type ReaderOptions struct + BeforeRead func(asFunc func(interface{}) bool) error + type SignedURLOptions struct + Expiry time.Duration + Method string + type URLMux struct + func DefaultURLMux() *URLMux + func (mux *URLMux) BucketSchemes() []string + func (mux *URLMux) OpenBucket(ctx context.Context, urlstr string) (*Bucket, error) + func (mux *URLMux) OpenBucketURL(ctx context.Context, u *url.URL) (*Bucket, error) + func (mux *URLMux) RegisterBucket(scheme string, opener BucketURLOpener) + func (mux *URLMux) ValidBucketScheme(scheme string) bool + type Writer struct + func (w *Writer) Close() (err error) + func (w *Writer) Write(p []byte) (int, error) + type WriterOptions struct + BeforeWrite func(asFunc func(interface{}) bool) error + BufferSize int + CacheControl string + ContentDisposition string + ContentEncoding string + ContentLanguage string + ContentMD5 []byte + ContentType string + Metadata map[string]string