Versions in this module Expand all Collapse all v1 v1.0.1 Jun 25, 2023 v1.0.0 Jun 25, 2023 Changes in this version + const DevstorageFullControlScope + const DevstorageReadOnlyScope + const DevstorageReadWriteScope + type Bucket struct + Acl []*BucketAccessControl + DefaultObjectAcl []*ObjectAccessControl + ForceSendFields []string + Id string + Kind string + Location string + NullFields []string + Owner *BucketOwner + ProjectId uint64 + SelfLink string + TimeCreated string + Website *BucketWebsite + func (s *Bucket) MarshalJSON() ([]byte, error) + type BucketAccessControl struct + Bucket string + Domain string + Email string + Entity string + EntityId string + ForceSendFields []string + Id string + Kind string + NullFields []string + Role string + SelfLink string + func (s *BucketAccessControl) MarshalJSON() ([]byte, error) + type BucketAccessControls struct + ForceSendFields []string + Items []*BucketAccessControl + Kind string + NullFields []string + func (s *BucketAccessControls) MarshalJSON() ([]byte, error) + type BucketAccessControlsDeleteCall struct + func (c *BucketAccessControlsDeleteCall) Context(ctx context.Context) *BucketAccessControlsDeleteCall + func (c *BucketAccessControlsDeleteCall) Do(opts ...googleapi.CallOption) error + func (c *BucketAccessControlsDeleteCall) Fields(s ...googleapi.Field) *BucketAccessControlsDeleteCall + func (c *BucketAccessControlsDeleteCall) Header() http.Header + type BucketAccessControlsGetCall struct + func (c *BucketAccessControlsGetCall) Context(ctx context.Context) *BucketAccessControlsGetCall + func (c *BucketAccessControlsGetCall) Do(opts ...googleapi.CallOption) (*BucketAccessControl, error) + func (c *BucketAccessControlsGetCall) Fields(s ...googleapi.Field) *BucketAccessControlsGetCall + func (c *BucketAccessControlsGetCall) Header() http.Header + func (c *BucketAccessControlsGetCall) IfNoneMatch(entityTag string) *BucketAccessControlsGetCall + type BucketAccessControlsInsertCall struct + func (c *BucketAccessControlsInsertCall) Context(ctx context.Context) *BucketAccessControlsInsertCall + func (c *BucketAccessControlsInsertCall) Do(opts ...googleapi.CallOption) (*BucketAccessControl, error) + func (c *BucketAccessControlsInsertCall) Fields(s ...googleapi.Field) *BucketAccessControlsInsertCall + func (c *BucketAccessControlsInsertCall) Header() http.Header + type BucketAccessControlsListCall struct + func (c *BucketAccessControlsListCall) Context(ctx context.Context) *BucketAccessControlsListCall + func (c *BucketAccessControlsListCall) Do(opts ...googleapi.CallOption) (*BucketAccessControls, error) + func (c *BucketAccessControlsListCall) Fields(s ...googleapi.Field) *BucketAccessControlsListCall + func (c *BucketAccessControlsListCall) Header() http.Header + func (c *BucketAccessControlsListCall) IfNoneMatch(entityTag string) *BucketAccessControlsListCall + type BucketAccessControlsPatchCall struct + func (c *BucketAccessControlsPatchCall) Context(ctx context.Context) *BucketAccessControlsPatchCall + func (c *BucketAccessControlsPatchCall) Do(opts ...googleapi.CallOption) (*BucketAccessControl, error) + func (c *BucketAccessControlsPatchCall) Fields(s ...googleapi.Field) *BucketAccessControlsPatchCall + func (c *BucketAccessControlsPatchCall) Header() http.Header + type BucketAccessControlsService struct + func NewBucketAccessControlsService(s *Service) *BucketAccessControlsService + func (r *BucketAccessControlsService) Delete(bucket string, entity string) *BucketAccessControlsDeleteCall + func (r *BucketAccessControlsService) Get(bucket string, entity string) *BucketAccessControlsGetCall + func (r *BucketAccessControlsService) Insert(bucket string, bucketaccesscontrol *BucketAccessControl) *BucketAccessControlsInsertCall + func (r *BucketAccessControlsService) List(bucket string) *BucketAccessControlsListCall + func (r *BucketAccessControlsService) Patch(bucket string, entity string, bucketaccesscontrol *BucketAccessControl) *BucketAccessControlsPatchCall + func (r *BucketAccessControlsService) Update(bucket string, entity string, bucketaccesscontrol *BucketAccessControl) *BucketAccessControlsUpdateCall + type BucketAccessControlsUpdateCall struct + func (c *BucketAccessControlsUpdateCall) Context(ctx context.Context) *BucketAccessControlsUpdateCall + func (c *BucketAccessControlsUpdateCall) Do(opts ...googleapi.CallOption) (*BucketAccessControl, error) + func (c *BucketAccessControlsUpdateCall) Fields(s ...googleapi.Field) *BucketAccessControlsUpdateCall + func (c *BucketAccessControlsUpdateCall) Header() http.Header + type BucketOwner struct + Entity string + EntityId string + ForceSendFields []string + NullFields []string + func (s *BucketOwner) MarshalJSON() ([]byte, error) + type BucketWebsite struct + ForceSendFields []string + MainPageSuffix string + NotFoundPage string + NullFields []string + func (s *BucketWebsite) MarshalJSON() ([]byte, error) + type Buckets struct + ForceSendFields []string + Items []*Bucket + Kind string + NextPageToken string + NullFields []string + func (s *Buckets) MarshalJSON() ([]byte, error) + type BucketsDeleteCall struct + func (c *BucketsDeleteCall) Context(ctx context.Context) *BucketsDeleteCall + func (c *BucketsDeleteCall) Do(opts ...googleapi.CallOption) error + func (c *BucketsDeleteCall) Fields(s ...googleapi.Field) *BucketsDeleteCall + func (c *BucketsDeleteCall) Header() http.Header + type BucketsGetCall struct + func (c *BucketsGetCall) Context(ctx context.Context) *BucketsGetCall + func (c *BucketsGetCall) Do(opts ...googleapi.CallOption) (*Bucket, error) + func (c *BucketsGetCall) Fields(s ...googleapi.Field) *BucketsGetCall + func (c *BucketsGetCall) Header() http.Header + func (c *BucketsGetCall) IfNoneMatch(entityTag string) *BucketsGetCall + func (c *BucketsGetCall) Projection(projection string) *BucketsGetCall + type BucketsInsertCall struct + func (c *BucketsInsertCall) Context(ctx context.Context) *BucketsInsertCall + func (c *BucketsInsertCall) Do(opts ...googleapi.CallOption) (*Bucket, error) + func (c *BucketsInsertCall) Fields(s ...googleapi.Field) *BucketsInsertCall + func (c *BucketsInsertCall) Header() http.Header + func (c *BucketsInsertCall) Projection(projection string) *BucketsInsertCall + type BucketsListCall struct + func (c *BucketsListCall) Context(ctx context.Context) *BucketsListCall + func (c *BucketsListCall) Do(opts ...googleapi.CallOption) (*Buckets, error) + func (c *BucketsListCall) Fields(s ...googleapi.Field) *BucketsListCall + func (c *BucketsListCall) Header() http.Header + func (c *BucketsListCall) IfNoneMatch(entityTag string) *BucketsListCall + func (c *BucketsListCall) MaxResults(maxResults int64) *BucketsListCall + func (c *BucketsListCall) PageToken(pageToken string) *BucketsListCall + func (c *BucketsListCall) Pages(ctx context.Context, f func(*Buckets) error) error + func (c *BucketsListCall) Projection(projection string) *BucketsListCall + type BucketsPatchCall struct + func (c *BucketsPatchCall) Context(ctx context.Context) *BucketsPatchCall + func (c *BucketsPatchCall) Do(opts ...googleapi.CallOption) (*Bucket, error) + func (c *BucketsPatchCall) Fields(s ...googleapi.Field) *BucketsPatchCall + func (c *BucketsPatchCall) Header() http.Header + func (c *BucketsPatchCall) Projection(projection string) *BucketsPatchCall + type BucketsService struct + func NewBucketsService(s *Service) *BucketsService + func (r *BucketsService) Delete(bucket string) *BucketsDeleteCall + func (r *BucketsService) Get(bucket string) *BucketsGetCall + func (r *BucketsService) Insert(bucket *Bucket) *BucketsInsertCall + func (r *BucketsService) List(projectId uint64) *BucketsListCall + func (r *BucketsService) Patch(bucket string, bucket2 *Bucket) *BucketsPatchCall + func (r *BucketsService) Update(bucket string, bucket2 *Bucket) *BucketsUpdateCall + type BucketsUpdateCall struct + func (c *BucketsUpdateCall) Context(ctx context.Context) *BucketsUpdateCall + func (c *BucketsUpdateCall) Do(opts ...googleapi.CallOption) (*Bucket, error) + func (c *BucketsUpdateCall) Fields(s ...googleapi.Field) *BucketsUpdateCall + func (c *BucketsUpdateCall) Header() http.Header + func (c *BucketsUpdateCall) Projection(projection string) *BucketsUpdateCall + type Object struct + Acl []*ObjectAccessControl + Bucket string + CacheControl string + ContentDisposition string + ContentEncoding string + ContentLanguage string + ForceSendFields []string + Id string + Kind string + Media *ObjectMedia + Metadata map[string]string + Name string + NullFields []string + Owner *ObjectOwner + SelfLink string + func (s *Object) MarshalJSON() ([]byte, error) + type ObjectAccessControl struct + Bucket string + Domain string + Email string + Entity string + EntityId string + ForceSendFields []string + Id string + Kind string + NullFields []string + Object string + Role string + SelfLink string + func (s *ObjectAccessControl) MarshalJSON() ([]byte, error) + type ObjectAccessControls struct + ForceSendFields []string + Items []*ObjectAccessControl + Kind string + NullFields []string + func (s *ObjectAccessControls) MarshalJSON() ([]byte, error) + type ObjectAccessControlsDeleteCall struct + func (c *ObjectAccessControlsDeleteCall) Context(ctx context.Context) *ObjectAccessControlsDeleteCall + func (c *ObjectAccessControlsDeleteCall) Do(opts ...googleapi.CallOption) error + func (c *ObjectAccessControlsDeleteCall) Fields(s ...googleapi.Field) *ObjectAccessControlsDeleteCall + func (c *ObjectAccessControlsDeleteCall) Header() http.Header + type ObjectAccessControlsGetCall struct + func (c *ObjectAccessControlsGetCall) Context(ctx context.Context) *ObjectAccessControlsGetCall + func (c *ObjectAccessControlsGetCall) Do(opts ...googleapi.CallOption) (*ObjectAccessControl, error) + func (c *ObjectAccessControlsGetCall) Fields(s ...googleapi.Field) *ObjectAccessControlsGetCall + func (c *ObjectAccessControlsGetCall) Header() http.Header + func (c *ObjectAccessControlsGetCall) IfNoneMatch(entityTag string) *ObjectAccessControlsGetCall + type ObjectAccessControlsInsertCall struct + func (c *ObjectAccessControlsInsertCall) Context(ctx context.Context) *ObjectAccessControlsInsertCall + func (c *ObjectAccessControlsInsertCall) Do(opts ...googleapi.CallOption) (*ObjectAccessControl, error) + func (c *ObjectAccessControlsInsertCall) Fields(s ...googleapi.Field) *ObjectAccessControlsInsertCall + func (c *ObjectAccessControlsInsertCall) Header() http.Header + type ObjectAccessControlsListCall struct + func (c *ObjectAccessControlsListCall) Context(ctx context.Context) *ObjectAccessControlsListCall + func (c *ObjectAccessControlsListCall) Do(opts ...googleapi.CallOption) (*ObjectAccessControls, error) + func (c *ObjectAccessControlsListCall) Fields(s ...googleapi.Field) *ObjectAccessControlsListCall + func (c *ObjectAccessControlsListCall) Header() http.Header + func (c *ObjectAccessControlsListCall) IfNoneMatch(entityTag string) *ObjectAccessControlsListCall + type ObjectAccessControlsPatchCall struct + func (c *ObjectAccessControlsPatchCall) Context(ctx context.Context) *ObjectAccessControlsPatchCall + func (c *ObjectAccessControlsPatchCall) Do(opts ...googleapi.CallOption) (*ObjectAccessControl, error) + func (c *ObjectAccessControlsPatchCall) Fields(s ...googleapi.Field) *ObjectAccessControlsPatchCall + func (c *ObjectAccessControlsPatchCall) Header() http.Header + type ObjectAccessControlsService struct + func NewObjectAccessControlsService(s *Service) *ObjectAccessControlsService + func (r *ObjectAccessControlsService) Delete(bucket string, object string, entity string) *ObjectAccessControlsDeleteCall + func (r *ObjectAccessControlsService) Get(bucket string, object string, entity string) *ObjectAccessControlsGetCall + func (r *ObjectAccessControlsService) Insert(bucket string, object string, objectaccesscontrol *ObjectAccessControl) *ObjectAccessControlsInsertCall + func (r *ObjectAccessControlsService) List(bucket string, object string) *ObjectAccessControlsListCall + func (r *ObjectAccessControlsService) Patch(bucket string, object string, entity string, ...) *ObjectAccessControlsPatchCall + func (r *ObjectAccessControlsService) Update(bucket string, object string, entity string, ...) *ObjectAccessControlsUpdateCall + type ObjectAccessControlsUpdateCall struct + func (c *ObjectAccessControlsUpdateCall) Context(ctx context.Context) *ObjectAccessControlsUpdateCall + func (c *ObjectAccessControlsUpdateCall) Do(opts ...googleapi.CallOption) (*ObjectAccessControl, error) + func (c *ObjectAccessControlsUpdateCall) Fields(s ...googleapi.Field) *ObjectAccessControlsUpdateCall + func (c *ObjectAccessControlsUpdateCall) Header() http.Header + type ObjectMedia struct + Algorithm string + ContentType string + Data string + ForceSendFields []string + Hash string + Length uint64 + Link string + NullFields []string + TimeCreated string + func (s *ObjectMedia) MarshalJSON() ([]byte, error) + type ObjectOwner struct + Entity string + EntityId string + ForceSendFields []string + NullFields []string + func (s *ObjectOwner) MarshalJSON() ([]byte, error) + type Objects struct + ForceSendFields []string + Items []*Object + Kind string + NextPageToken string + NullFields []string + Prefixes []string + func (s *Objects) MarshalJSON() ([]byte, error) + type ObjectsDeleteCall struct + func (c *ObjectsDeleteCall) Context(ctx context.Context) *ObjectsDeleteCall + func (c *ObjectsDeleteCall) Do(opts ...googleapi.CallOption) error + func (c *ObjectsDeleteCall) Fields(s ...googleapi.Field) *ObjectsDeleteCall + func (c *ObjectsDeleteCall) Header() http.Header + type ObjectsGetCall struct + func (c *ObjectsGetCall) Context(ctx context.Context) *ObjectsGetCall + func (c *ObjectsGetCall) Do(opts ...googleapi.CallOption) (*Object, error) + func (c *ObjectsGetCall) Download(opts ...googleapi.CallOption) (*http.Response, error) + func (c *ObjectsGetCall) Fields(s ...googleapi.Field) *ObjectsGetCall + func (c *ObjectsGetCall) Header() http.Header + func (c *ObjectsGetCall) IfNoneMatch(entityTag string) *ObjectsGetCall + func (c *ObjectsGetCall) Projection(projection string) *ObjectsGetCall + type ObjectsInsertCall struct + func (c *ObjectsInsertCall) Context(ctx context.Context) *ObjectsInsertCall + func (c *ObjectsInsertCall) Do(opts ...googleapi.CallOption) (*Object, error) + func (c *ObjectsInsertCall) Fields(s ...googleapi.Field) *ObjectsInsertCall + func (c *ObjectsInsertCall) Header() http.Header + func (c *ObjectsInsertCall) Media(r io.Reader, options ...googleapi.MediaOption) *ObjectsInsertCall + func (c *ObjectsInsertCall) Name(name string) *ObjectsInsertCall + func (c *ObjectsInsertCall) ProgressUpdater(pu googleapi.ProgressUpdater) *ObjectsInsertCall + func (c *ObjectsInsertCall) Projection(projection string) *ObjectsInsertCall + func (c *ObjectsInsertCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *ObjectsInsertCall + type ObjectsListCall struct + func (c *ObjectsListCall) Context(ctx context.Context) *ObjectsListCall + func (c *ObjectsListCall) Delimiter(delimiter string) *ObjectsListCall + func (c *ObjectsListCall) Do(opts ...googleapi.CallOption) (*Objects, error) + func (c *ObjectsListCall) Fields(s ...googleapi.Field) *ObjectsListCall + func (c *ObjectsListCall) Header() http.Header + func (c *ObjectsListCall) IfNoneMatch(entityTag string) *ObjectsListCall + func (c *ObjectsListCall) MaxResults(maxResults int64) *ObjectsListCall + func (c *ObjectsListCall) PageToken(pageToken string) *ObjectsListCall + func (c *ObjectsListCall) Pages(ctx context.Context, f func(*Objects) error) error + func (c *ObjectsListCall) Prefix(prefix string) *ObjectsListCall + func (c *ObjectsListCall) Projection(projection string) *ObjectsListCall + type ObjectsPatchCall struct + func (c *ObjectsPatchCall) Context(ctx context.Context) *ObjectsPatchCall + func (c *ObjectsPatchCall) Do(opts ...googleapi.CallOption) (*Object, error) + func (c *ObjectsPatchCall) Fields(s ...googleapi.Field) *ObjectsPatchCall + func (c *ObjectsPatchCall) Header() http.Header + func (c *ObjectsPatchCall) Projection(projection string) *ObjectsPatchCall + type ObjectsService struct + func NewObjectsService(s *Service) *ObjectsService + func (r *ObjectsService) Delete(bucket string, object string) *ObjectsDeleteCall + func (r *ObjectsService) Get(bucket string, object string) *ObjectsGetCall + func (r *ObjectsService) Insert(bucket string, object *Object) *ObjectsInsertCall + func (r *ObjectsService) List(bucket string) *ObjectsListCall + func (r *ObjectsService) Patch(bucket string, object string, object2 *Object) *ObjectsPatchCall + func (r *ObjectsService) Update(bucket string, object string, object2 *Object) *ObjectsUpdateCall + type ObjectsUpdateCall struct + func (c *ObjectsUpdateCall) Context(ctx context.Context) *ObjectsUpdateCall + func (c *ObjectsUpdateCall) Do(opts ...googleapi.CallOption) (*Object, error) + func (c *ObjectsUpdateCall) Download(opts ...googleapi.CallOption) (*http.Response, error) + func (c *ObjectsUpdateCall) Fields(s ...googleapi.Field) *ObjectsUpdateCall + func (c *ObjectsUpdateCall) Header() http.Header + func (c *ObjectsUpdateCall) Projection(projection string) *ObjectsUpdateCall + type Service struct + BasePath string + BucketAccessControls *BucketAccessControlsService + Buckets *BucketsService + ObjectAccessControls *ObjectAccessControlsService + Objects *ObjectsService + UserAgent string + func New(client *http.Client) (*Service, error) + func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error)