Versions in this module Expand all Collapse all v0 v0.5.0 Nov 3, 2015 Changes in this version + const ScopeFullControl + const ScopeReadOnly + const ScopeReadWrite + var ErrBucketNotExist = errors.New("storage: bucket doesn't exist") + var ErrObjectNotExist = errors.New("storage: object doesn't exist") + func DeleteACLRule(ctx context.Context, bucket, object string, entity ACLEntity) error + func DeleteBucketACLRule(ctx context.Context, bucket string, entity ACLEntity) error + func DeleteDefaultACLRule(ctx context.Context, bucket string, entity ACLEntity) error + func DeleteObject(ctx context.Context, bucket, name string) error + func NewReader(ctx context.Context, bucket, name string) (io.ReadCloser, error) + func PutACLRule(ctx context.Context, bucket, object string, entity ACLEntity, role ACLRole) error + func PutBucketACLRule(ctx context.Context, bucket string, entity ACLEntity, role ACLRole) error + func PutDefaultACLRule(ctx context.Context, bucket string, entity ACLEntity, role ACLRole) error + func SignedURL(bucket, name string, opts *SignedURLOptions) (string, error) + type ACLEntity string + const AllAuthenticatedUsers + const AllUsers + type ACLRole string + const RoleOwner + const RoleReader + type ACLRule struct + Entity ACLEntity + Role ACLRole + func ACL(ctx context.Context, bucket, object string) ([]ACLRule, error) + func BucketACL(ctx context.Context, bucket string) ([]ACLRule, error) + func DefaultACL(ctx context.Context, bucket string) ([]ACLRule, error) + type Bucket struct + ACL []ACLRule + Created time.Time + DefaultObjectACL []ACLRule + Location string + Metageneration int64 + Name string + StorageClass string + func BucketInfo(ctx context.Context, name string) (*Bucket, error) + type Object struct + ACL []ACLRule + Bucket string + CRC32C uint32 + CacheControl string + ContentEncoding string + ContentLanguage string + ContentType string + Deleted time.Time + Generation int64 + MD5 []byte + MediaLink string + MetaGeneration int64 + Metadata map[string]string + Name string + Owner string + Size int64 + StorageClass string + Updated time.Time + func CopyObject(ctx context.Context, srcBucket, srcName string, destBucket, destName string, ...) (*Object, error) + func StatObject(ctx context.Context, bucket, name string) (*Object, error) + func UpdateAttrs(ctx context.Context, bucket, name string, attrs ObjectAttrs) (*Object, error) + type ObjectAttrs struct + ACL []ACLRule + CacheControl string + ContentDisposition string + ContentEncoding string + ContentLanguage string + ContentType string + Metadata map[string]string + Name string + type Objects struct + Next *Query + Prefixes []string + Results []*Object + func ListObjects(ctx context.Context, bucket string, q *Query) (*Objects, error) + type Query struct + Cursor string + Delimiter string + MaxResults int + Prefix string + Versions bool + type SignedURLOptions struct + ContentType string + Expires time.Time + GoogleAccessID string + Headers []string + MD5 []byte + Method string + PrivateKey []byte + type Writer struct + func NewWriter(ctx context.Context, bucket, name string) *Writer + func (w *Writer) Close() error + func (w *Writer) CloseWithError(err error) error + func (w *Writer) Object() *Object + func (w *Writer) Write(p []byte) (n int, err error) v0.5.0-rc4 Oct 29, 2015