storage

package
v0.0.0-...-d6cb8d1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 17, 2015 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package storage provides access to the Cloud Storage API.

See https://developers.google.com/storage/docs/json_api/

Usage example:

import "camlistore.org/third_party/google.golang.org/api/storage/v1beta1"
...
storageService, err := storage.New(oauthHttpClient)

Index

Constants

View Source
const (
	// Manage your data and permissions in Google Cloud Storage
	DevstorageFull_controlScope = "https://www.googleapis.com/auth/devstorage.full_control"

	// View your data in Google Cloud Storage
	DevstorageRead_onlyScope = "https://www.googleapis.com/auth/devstorage.read_only"

	// Manage your data in Google Cloud Storage
	DevstorageRead_writeScope = "https://www.googleapis.com/auth/devstorage.read_write"
)

OAuth2 scopes used by this API.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bucket

type Bucket struct {
	// Acl: Access controls on the bucket.
	Acl []*BucketAccessControl `json:"acl,omitempty"`

	// DefaultObjectAcl: Default access controls to apply to new objects
	// when no ACL is provided.
	DefaultObjectAcl []*ObjectAccessControl `json:"defaultObjectAcl,omitempty"`

	// Id: The name of the bucket.
	Id string `json:"id,omitempty"`

	// Kind: The kind of item this is. For buckets, this is always
	// storage#bucket.
	Kind string `json:"kind,omitempty"`

	// Location: The location of the bucket. Object data for objects in the
	// bucket resides in physical storage in this location. Can be US or EU.
	// Defaults to US.
	Location string `json:"location,omitempty"`

	// Owner: The owner of the bucket. This will always be the project
	// team's owner group.
	Owner *BucketOwner `json:"owner,omitempty"`

	// ProjectId: The project the bucket belongs to.
	ProjectId uint64 `json:"projectId,omitempty,string"`

	// SelfLink: The URI of this bucket.
	SelfLink string `json:"selfLink,omitempty"`

	// TimeCreated: Creation time of the bucket in RFC 3339 format.
	TimeCreated string `json:"timeCreated,omitempty"`

	// Website: The bucket's website configuration.
	Website *BucketWebsite `json:"website,omitempty"`
}

type BucketAccessControl

type BucketAccessControl struct {
	// Bucket: The name of the bucket.
	Bucket string `json:"bucket,omitempty"`

	// Domain: The domain associated with the entity, if any.
	Domain string `json:"domain,omitempty"`

	// Email: The email address associated with the entity, if any.
	Email string `json:"email,omitempty"`

	// Entity: The entity holding the permission, in one of the following
	// forms:
	// - user-userId
	// - user-email
	// - group-groupId
	// - group-email
	//
	// - domain-domain
	// - allUsers
	// - allAuthenticatedUsers Examples:
	// -
	// The user liz@example.com would be user-liz@example.com.
	// - The group
	// example@googlegroups.com would be group-example@googlegroups.com.
	// -
	// To refer to all members of the Google Apps for Business domain
	// example.com, the entity would be domain-example.com.
	Entity string `json:"entity,omitempty"`

	// EntityId: The ID for the entity, if any.
	EntityId string `json:"entityId,omitempty"`

	// Id: The ID of the access-control entry.
	Id string `json:"id,omitempty"`

	// Kind: The kind of item this is. For bucket access control entries,
	// this is always storage#bucketAccessControl.
	Kind string `json:"kind,omitempty"`

	// Role: The access permission for the entity. Can be READER, WRITER, or
	// OWNER.
	Role string `json:"role,omitempty"`

	// SelfLink: The link to this access-control entry.
	SelfLink string `json:"selfLink,omitempty"`
}

type BucketAccessControls

type BucketAccessControls struct {
	// Items: The list of items.
	Items []*BucketAccessControl `json:"items,omitempty"`

	// Kind: The kind of item this is. For lists of bucket access control
	// entries, this is always storage#bucketAccessControls.
	Kind string `json:"kind,omitempty"`
}

type BucketAccessControlsDeleteCall

type BucketAccessControlsDeleteCall struct {
	// contains filtered or unexported fields
}

func (*BucketAccessControlsDeleteCall) Do

func (*BucketAccessControlsDeleteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type BucketAccessControlsGetCall

type BucketAccessControlsGetCall struct {
	// contains filtered or unexported fields
}

func (*BucketAccessControlsGetCall) Do

func (*BucketAccessControlsGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type BucketAccessControlsInsertCall

type BucketAccessControlsInsertCall struct {
	// contains filtered or unexported fields
}

func (*BucketAccessControlsInsertCall) Do

func (*BucketAccessControlsInsertCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type BucketAccessControlsListCall

type BucketAccessControlsListCall struct {
	// contains filtered or unexported fields
}

func (*BucketAccessControlsListCall) Do

func (*BucketAccessControlsListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type BucketAccessControlsPatchCall

type BucketAccessControlsPatchCall struct {
	// contains filtered or unexported fields
}

func (*BucketAccessControlsPatchCall) Do

func (*BucketAccessControlsPatchCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type BucketAccessControlsService

type BucketAccessControlsService struct {
	// contains filtered or unexported fields
}

func NewBucketAccessControlsService

func NewBucketAccessControlsService(s *Service) *BucketAccessControlsService

func (*BucketAccessControlsService) Delete

Delete: Deletes the ACL entry for the specified entity on the specified bucket.

func (*BucketAccessControlsService) Get

Get: Returns the ACL entry for the specified entity on the specified bucket.

func (*BucketAccessControlsService) Insert

Insert: Creates a new ACL entry on the specified bucket.

func (*BucketAccessControlsService) List

List: Retrieves ACL entries on the specified bucket.

func (*BucketAccessControlsService) Patch

func (r *BucketAccessControlsService) Patch(bucket string, entity string, bucketaccesscontrol *BucketAccessControl) *BucketAccessControlsPatchCall

Patch: Updates an ACL entry on the specified bucket. This method supports patch semantics.

func (*BucketAccessControlsService) Update

func (r *BucketAccessControlsService) Update(bucket string, entity string, bucketaccesscontrol *BucketAccessControl) *BucketAccessControlsUpdateCall

Update: Updates an ACL entry on the specified bucket.

type BucketAccessControlsUpdateCall

type BucketAccessControlsUpdateCall struct {
	// contains filtered or unexported fields
}

func (*BucketAccessControlsUpdateCall) Do

func (*BucketAccessControlsUpdateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type BucketOwner

type BucketOwner struct {
	// Entity: The entity, in the form group-groupId.
	Entity string `json:"entity,omitempty"`

	// EntityId: The ID for the entity.
	EntityId string `json:"entityId,omitempty"`
}

type BucketWebsite

type BucketWebsite struct {
	// MainPageSuffix: Behaves as the bucket's directory index where missing
	// objects are treated as potential directories.
	MainPageSuffix string `json:"mainPageSuffix,omitempty"`

	// NotFoundPage: The custom object to return when a requested resource
	// is not found.
	NotFoundPage string `json:"notFoundPage,omitempty"`
}

type Buckets

type Buckets struct {
	// Items: The list of items.
	Items []*Bucket `json:"items,omitempty"`

	// Kind: The kind of item this is. For lists of buckets, this is always
	// storage#buckets.
	Kind string `json:"kind,omitempty"`

	// NextPageToken: The continuation token, used to page through large
	// result sets. Provide this value in a subsequent request to return the
	// next page of results.
	NextPageToken string `json:"nextPageToken,omitempty"`
}

type BucketsDeleteCall

type BucketsDeleteCall struct {
	// contains filtered or unexported fields
}

func (*BucketsDeleteCall) Do

func (c *BucketsDeleteCall) Do() error

func (*BucketsDeleteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type BucketsGetCall

type BucketsGetCall struct {
	// contains filtered or unexported fields
}

func (*BucketsGetCall) Do

func (c *BucketsGetCall) Do() (*Bucket, error)

func (*BucketsGetCall) Fields

func (c *BucketsGetCall) Fields(s ...googleapi.Field) *BucketsGetCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*BucketsGetCall) Projection

func (c *BucketsGetCall) Projection(projection string) *BucketsGetCall

Projection sets the optional parameter "projection": Set of properties to return. Defaults to no_acl.

type BucketsInsertCall

type BucketsInsertCall struct {
	// contains filtered or unexported fields
}

func (*BucketsInsertCall) Do

func (c *BucketsInsertCall) Do() (*Bucket, error)

func (*BucketsInsertCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*BucketsInsertCall) Projection

func (c *BucketsInsertCall) Projection(projection string) *BucketsInsertCall

Projection sets the optional parameter "projection": Set of properties to return. Defaults to no_acl, unless the bucket resource specifies acl or defaultObjectAcl properties, when it defaults to full.

type BucketsListCall

type BucketsListCall struct {
	// contains filtered or unexported fields
}

func (*BucketsListCall) Do

func (c *BucketsListCall) Do() (*Buckets, error)

func (*BucketsListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*BucketsListCall) MaxResults

func (c *BucketsListCall) MaxResults(maxResults int64) *BucketsListCall

MaxResults sets the optional parameter "max-results": Maximum number of buckets to return.

func (*BucketsListCall) PageToken

func (c *BucketsListCall) PageToken(pageToken string) *BucketsListCall

PageToken sets the optional parameter "pageToken": A previously-returned page token representing part of the larger set of results to view.

func (*BucketsListCall) Projection

func (c *BucketsListCall) Projection(projection string) *BucketsListCall

Projection sets the optional parameter "projection": Set of properties to return. Defaults to no_acl.

type BucketsPatchCall

type BucketsPatchCall struct {
	// contains filtered or unexported fields
}

func (*BucketsPatchCall) Do

func (c *BucketsPatchCall) Do() (*Bucket, error)

func (*BucketsPatchCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*BucketsPatchCall) Projection

func (c *BucketsPatchCall) Projection(projection string) *BucketsPatchCall

Projection sets the optional parameter "projection": Set of properties to return. Defaults to full.

type BucketsService

type BucketsService struct {
	// contains filtered or unexported fields
}

func NewBucketsService

func NewBucketsService(s *Service) *BucketsService

func (*BucketsService) Delete

func (r *BucketsService) Delete(bucket string) *BucketsDeleteCall

Delete: Deletes an empty bucket.

func (*BucketsService) Get

func (r *BucketsService) Get(bucket string) *BucketsGetCall

Get: Returns metadata for the specified bucket.

func (*BucketsService) Insert

func (r *BucketsService) Insert(bucket *Bucket) *BucketsInsertCall

Insert: Creates a new bucket.

func (*BucketsService) List

func (r *BucketsService) List(projectId uint64) *BucketsListCall

List: Retrieves a list of buckets for a given project.

func (*BucketsService) Patch

func (r *BucketsService) Patch(bucket string, bucket2 *Bucket) *BucketsPatchCall

Patch: Updates a bucket. This method supports patch semantics.

func (*BucketsService) Update

func (r *BucketsService) Update(bucket string, bucket2 *Bucket) *BucketsUpdateCall

Update: Updates a bucket.

type BucketsUpdateCall

type BucketsUpdateCall struct {
	// contains filtered or unexported fields
}

func (*BucketsUpdateCall) Do

func (c *BucketsUpdateCall) Do() (*Bucket, error)

func (*BucketsUpdateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*BucketsUpdateCall) Projection

func (c *BucketsUpdateCall) Projection(projection string) *BucketsUpdateCall

Projection sets the optional parameter "projection": Set of properties to return. Defaults to full.

type Object

type Object struct {
	// Acl: Access controls on the object.
	Acl []*ObjectAccessControl `json:"acl,omitempty"`

	// Bucket: The bucket containing this object.
	Bucket string `json:"bucket,omitempty"`

	// CacheControl: Cache-Control directive for the object data.
	CacheControl string `json:"cacheControl,omitempty"`

	// ContentDisposition: Content-Disposition of the object data.
	ContentDisposition string `json:"contentDisposition,omitempty"`

	// ContentEncoding: Content-Encoding of the object data.
	ContentEncoding string `json:"contentEncoding,omitempty"`

	// ContentLanguage: Content-Language of the object data.
	ContentLanguage string `json:"contentLanguage,omitempty"`

	// Id: The ID of the object.
	Id string `json:"id,omitempty"`

	// Kind: The kind of item this is. For objects, this is always
	// storage#object.
	Kind string `json:"kind,omitempty"`

	// Media: Object media data. Provided on your behalf when uploading raw
	// media or multipart/related with an auxiliary media part.
	Media *ObjectMedia `json:"media,omitempty"`

	// Metadata: User-provided metadata, in key/value pairs.
	Metadata map[string]string `json:"metadata,omitempty"`

	// Name: The name of this object. Required if not specified by URL
	// parameter.
	Name string `json:"name,omitempty"`

	// Owner: The owner of the object. This will always be the uploader of
	// the object.
	Owner *ObjectOwner `json:"owner,omitempty"`

	// SelfLink: The link to this object.
	SelfLink string `json:"selfLink,omitempty"`
}

type ObjectAccessControl

type ObjectAccessControl struct {
	// Bucket: The name of the bucket.
	Bucket string `json:"bucket,omitempty"`

	// Domain: The domain associated with the entity, if any.
	Domain string `json:"domain,omitempty"`

	// Email: The email address associated with the entity, if any.
	Email string `json:"email,omitempty"`

	// Entity: The entity holding the permission, in one of the following
	// forms:
	// - user-userId
	// - user-email
	// - group-groupId
	// - group-email
	//
	// - domain-domain
	// - allUsers
	// - allAuthenticatedUsers Examples:
	// -
	// The user liz@example.com would be user-liz@example.com.
	// - The group
	// example@googlegroups.com would be group-example@googlegroups.com.
	// -
	// To refer to all members of the Google Apps for Business domain
	// example.com, the entity would be domain-example.com.
	Entity string `json:"entity,omitempty"`

	// EntityId: The ID for the entity, if any.
	EntityId string `json:"entityId,omitempty"`

	// Id: The ID of the access-control entry.
	Id string `json:"id,omitempty"`

	// Kind: The kind of item this is. For object access control entries,
	// this is always storage#objectAccessControl.
	Kind string `json:"kind,omitempty"`

	// Object: The name of the object.
	Object string `json:"object,omitempty"`

	// Role: The access permission for the entity. Can be READER or OWNER.
	Role string `json:"role,omitempty"`

	// SelfLink: The link to this access-control entry.
	SelfLink string `json:"selfLink,omitempty"`
}

type ObjectAccessControls

type ObjectAccessControls struct {
	// Items: The list of items.
	Items []*ObjectAccessControl `json:"items,omitempty"`

	// Kind: The kind of item this is. For lists of object access control
	// entries, this is always storage#objectAccessControls.
	Kind string `json:"kind,omitempty"`
}

type ObjectAccessControlsDeleteCall

type ObjectAccessControlsDeleteCall struct {
	// contains filtered or unexported fields
}

func (*ObjectAccessControlsDeleteCall) Do

func (*ObjectAccessControlsDeleteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type ObjectAccessControlsGetCall

type ObjectAccessControlsGetCall struct {
	// contains filtered or unexported fields
}

func (*ObjectAccessControlsGetCall) Do

func (*ObjectAccessControlsGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type ObjectAccessControlsInsertCall

type ObjectAccessControlsInsertCall struct {
	// contains filtered or unexported fields
}

func (*ObjectAccessControlsInsertCall) Do

func (*ObjectAccessControlsInsertCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type ObjectAccessControlsListCall

type ObjectAccessControlsListCall struct {
	// contains filtered or unexported fields
}

func (*ObjectAccessControlsListCall) Do

func (*ObjectAccessControlsListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type ObjectAccessControlsPatchCall

type ObjectAccessControlsPatchCall struct {
	// contains filtered or unexported fields
}

func (*ObjectAccessControlsPatchCall) Do

func (*ObjectAccessControlsPatchCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type ObjectAccessControlsService

type ObjectAccessControlsService struct {
	// contains filtered or unexported fields
}

func NewObjectAccessControlsService

func NewObjectAccessControlsService(s *Service) *ObjectAccessControlsService

func (*ObjectAccessControlsService) Delete

Delete: Deletes the ACL entry for the specified entity on the specified object.

func (*ObjectAccessControlsService) Get

Get: Returns the ACL entry for the specified entity on the specified object.

func (*ObjectAccessControlsService) Insert

func (r *ObjectAccessControlsService) Insert(bucket string, object string, objectaccesscontrol *ObjectAccessControl) *ObjectAccessControlsInsertCall

Insert: Creates a new ACL entry on the specified object.

func (*ObjectAccessControlsService) List

List: Retrieves ACL entries on the specified object.

func (*ObjectAccessControlsService) Patch

func (r *ObjectAccessControlsService) Patch(bucket string, object string, entity string, objectaccesscontrol *ObjectAccessControl) *ObjectAccessControlsPatchCall

Patch: Updates an ACL entry on the specified object. This method supports patch semantics.

func (*ObjectAccessControlsService) Update

func (r *ObjectAccessControlsService) Update(bucket string, object string, entity string, objectaccesscontrol *ObjectAccessControl) *ObjectAccessControlsUpdateCall

Update: Updates an ACL entry on the specified object.

type ObjectAccessControlsUpdateCall

type ObjectAccessControlsUpdateCall struct {
	// contains filtered or unexported fields
}

func (*ObjectAccessControlsUpdateCall) Do

func (*ObjectAccessControlsUpdateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type ObjectMedia

type ObjectMedia struct {
	// Algorithm: Hash algorithm used. Currently only MD5 is supported.
	// Required if a hash is provided.
	Algorithm string `json:"algorithm,omitempty"`

	// ContentType: Content-Type of the object data.
	ContentType string `json:"contentType,omitempty"`

	// Data: URL-safe Base64-encoded data. This property can be used to
	// insert objects under 64KB in size, and will only be returned in
	// response to the get method for objects so created. When this resource
	// is returned in response to the list method, this property is omitted.
	Data string `json:"data,omitempty"`

	// Hash: Hash of the data. Required if a hash algorithm is provided.
	Hash string `json:"hash,omitempty"`

	// Length: Content-Length of the data in bytes.
	Length uint64 `json:"length,omitempty,string"`

	// Link: Media download link.
	Link string `json:"link,omitempty"`

	// TimeCreated: Creation time of the data in RFC 3339 format.
	TimeCreated string `json:"timeCreated,omitempty"`
}

type ObjectOwner

type ObjectOwner struct {
	// Entity: The entity, in the form user-userId.
	Entity string `json:"entity,omitempty"`

	// EntityId: The ID for the entity.
	EntityId string `json:"entityId,omitempty"`
}

type Objects

type Objects struct {
	// Items: The list of items.
	Items []*Object `json:"items,omitempty"`

	// Kind: The kind of item this is. For lists of objects, this is always
	// storage#objects.
	Kind string `json:"kind,omitempty"`

	// NextPageToken: The continuation token, used to page through large
	// result sets. Provide this value in a subsequent request to return the
	// next page of results.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// Prefixes: The list of prefixes of objects matching-but-not-listed up
	// to and including the requested delimiter.
	Prefixes []string `json:"prefixes,omitempty"`
}

type ObjectsDeleteCall

type ObjectsDeleteCall struct {
	// contains filtered or unexported fields
}

func (*ObjectsDeleteCall) Do

func (c *ObjectsDeleteCall) Do() error

func (*ObjectsDeleteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type ObjectsGetCall

type ObjectsGetCall struct {
	// contains filtered or unexported fields
}

func (*ObjectsGetCall) Do

func (c *ObjectsGetCall) Do() (*Object, error)

func (*ObjectsGetCall) Fields

func (c *ObjectsGetCall) Fields(s ...googleapi.Field) *ObjectsGetCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ObjectsGetCall) Projection

func (c *ObjectsGetCall) Projection(projection string) *ObjectsGetCall

Projection sets the optional parameter "projection": Set of properties to return. Defaults to no_acl.

type ObjectsInsertCall

type ObjectsInsertCall struct {
	// contains filtered or unexported fields
}

func (*ObjectsInsertCall) Do

func (c *ObjectsInsertCall) Do() (*Object, error)

func (*ObjectsInsertCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ObjectsInsertCall) Media

func (*ObjectsInsertCall) Name

Name sets the optional parameter "name": Name of the object. Required when the object metadata is not otherwise provided. Overrides the object metadata's name value, if any.

func (*ObjectsInsertCall) Projection

func (c *ObjectsInsertCall) Projection(projection string) *ObjectsInsertCall

Projection sets the optional parameter "projection": Set of properties to return. Defaults to no_acl, unless the object resource specifies the acl property, when it defaults to full.

type ObjectsListCall

type ObjectsListCall struct {
	// contains filtered or unexported fields
}

func (*ObjectsListCall) Delimiter

func (c *ObjectsListCall) Delimiter(delimiter string) *ObjectsListCall

Delimiter sets the optional parameter "delimiter": Returns results in a directory-like mode. items will contain only objects whose names, aside from the prefix, do not contain delimiter. Objects whose names, aside from the prefix, contain delimiter will have their name, truncated after the delimiter, returned in prefixes. Duplicate prefixes are omitted.

func (*ObjectsListCall) Do

func (c *ObjectsListCall) Do() (*Objects, error)

func (*ObjectsListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ObjectsListCall) MaxResults

func (c *ObjectsListCall) MaxResults(maxResults int64) *ObjectsListCall

MaxResults sets the optional parameter "max-results": Maximum number of items plus prefixes to return. As duplicate prefixes are omitted, fewer total results may be returned than requested.

func (*ObjectsListCall) PageToken

func (c *ObjectsListCall) PageToken(pageToken string) *ObjectsListCall

PageToken sets the optional parameter "pageToken": A previously-returned page token representing part of the larger set of results to view.

func (*ObjectsListCall) Prefix

func (c *ObjectsListCall) Prefix(prefix string) *ObjectsListCall

Prefix sets the optional parameter "prefix": Filter results to objects whose names begin with this prefix.

func (*ObjectsListCall) Projection

func (c *ObjectsListCall) Projection(projection string) *ObjectsListCall

Projection sets the optional parameter "projection": Set of properties to return. Defaults to no_acl.

type ObjectsPatchCall

type ObjectsPatchCall struct {
	// contains filtered or unexported fields
}

func (*ObjectsPatchCall) Do

func (c *ObjectsPatchCall) Do() (*Object, error)

func (*ObjectsPatchCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ObjectsPatchCall) Projection

func (c *ObjectsPatchCall) Projection(projection string) *ObjectsPatchCall

Projection sets the optional parameter "projection": Set of properties to return. Defaults to full.

type ObjectsService

type ObjectsService struct {
	// contains filtered or unexported fields
}

func NewObjectsService

func NewObjectsService(s *Service) *ObjectsService

func (*ObjectsService) Delete

func (r *ObjectsService) Delete(bucket string, object string) *ObjectsDeleteCall

Delete: Deletes data blobs and associated metadata.

func (*ObjectsService) Get

func (r *ObjectsService) Get(bucket string, object string) *ObjectsGetCall

Get: Retrieves objects or their associated metadata.

func (*ObjectsService) Insert

func (r *ObjectsService) Insert(bucket string, object *Object) *ObjectsInsertCall

Insert: Stores new data blobs and associated metadata.

func (*ObjectsService) List

func (r *ObjectsService) List(bucket string) *ObjectsListCall

List: Retrieves a list of objects matching the criteria.

func (*ObjectsService) Patch

func (r *ObjectsService) Patch(bucket string, object string, object2 *Object) *ObjectsPatchCall

Patch: Updates a data blob's associated metadata. This method supports patch semantics.

func (*ObjectsService) Update

func (r *ObjectsService) Update(bucket string, object string, object2 *Object) *ObjectsUpdateCall

Update: Updates a data blob's associated metadata.

type ObjectsUpdateCall

type ObjectsUpdateCall struct {
	// contains filtered or unexported fields
}

func (*ObjectsUpdateCall) Do

func (c *ObjectsUpdateCall) Do() (*Object, error)

func (*ObjectsUpdateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ObjectsUpdateCall) Projection

func (c *ObjectsUpdateCall) Projection(projection string) *ObjectsUpdateCall

Projection sets the optional parameter "projection": Set of properties to return. Defaults to full.

type Service

type Service struct {
	BasePath string // API endpoint base URL

	BucketAccessControls *BucketAccessControlsService

	Buckets *BucketsService

	ObjectAccessControls *ObjectAccessControlsService

	Objects *ObjectsService
	// contains filtered or unexported fields
}

func New

func New(client *http.Client) (*Service, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL