Documentation
¶
Overview ¶
Code generated by protoc-gen-go-resource. DO NOT EDIT.
Index ¶
- Variables
- type NopStorageACLHandle
- type NopStorageBucketHandle
- func (*NopStorageBucketHandle) ACL() StorageACLHandle
- func (*NopStorageBucketHandle) AddNotification(ctx context.Context, x *storage.Notification) (*storage.Notification, error)
- func (*NopStorageBucketHandle) Attrs(context.Context) (*storage.BucketAttrs, error)
- func (*NopStorageBucketHandle) Create(context.Context, string, *storage.BucketAttrs) error
- func (*NopStorageBucketHandle) DefaultObjectACL() StorageACLHandle
- func (*NopStorageBucketHandle) Delete(context.Context) error
- func (*NopStorageBucketHandle) DeleteNotification(context.Context, string) error
- func (*NopStorageBucketHandle) If(storage.BucketConditions) StorageBucketHandle
- func (*NopStorageBucketHandle) LockRetentionPolicy(context.Context) error
- func (*NopStorageBucketHandle) Notifications(context.Context) (map[string]*storage.Notification, error)
- func (*NopStorageBucketHandle) Object(string) StorageObjectHandle
- func (*NopStorageBucketHandle) Objects(context.Context, *storage.Query) StorageObjectIterator
- func (*NopStorageBucketHandle) Update(context.Context, storage.BucketAttrsToUpdate) (*storage.BucketAttrs, error)
- func (*NopStorageBucketHandle) UserProject(projectID string) StorageBucketHandle
- type NopStorageBucketIterator
- type NopStorageObjectComposer
- type NopStorageObjectCopier
- func (*NopStorageObjectCopier) ObjectAttrs() *storage.ObjectAttrs
- func (*NopStorageObjectCopier) Run(context.Context) (*storage.ObjectAttrs, error)
- func (*NopStorageObjectCopier) SetDestinationKMSKeyName(string)
- func (*NopStorageObjectCopier) SetProgressFunc(func(uint64, uint64))
- func (*NopStorageObjectCopier) SetRewriteToken(string)
- type NopStorageObjectHandle
- func (*NopStorageObjectHandle) ACL() StorageACLHandle
- func (*NopStorageObjectHandle) Attrs(context.Context) (*storage.ObjectAttrs, error)
- func (*NopStorageObjectHandle) ComposerFrom(...StorageObjectHandle) StorageObjectComposer
- func (*NopStorageObjectHandle) CopierFrom(StorageObjectHandle) StorageObjectCopier
- func (*NopStorageObjectHandle) Delete(context.Context) error
- func (*NopStorageObjectHandle) Generation(int64) StorageObjectHandle
- func (*NopStorageObjectHandle) If(storage.Conditions) StorageObjectHandle
- func (*NopStorageObjectHandle) Key([]byte) StorageObjectHandle
- func (*NopStorageObjectHandle) NewRangeReader(context.Context, int64, int64) (StorageObjectReader, error)
- func (*NopStorageObjectHandle) NewReader(context.Context) (StorageObjectReader, error)
- func (*NopStorageObjectHandle) NewWriter(context.Context) StorageObjectWriter
- func (*NopStorageObjectHandle) ReadCompressed(bool) StorageObjectHandle
- func (*NopStorageObjectHandle) Update(context.Context, storage.ObjectAttrsToUpdate) (*storage.ObjectAttrs, error)
- type NopStorageObjectIterator
- type NopStoragePageInfo
- type NopStorageServiceClient
- type ParsedBucketName
- type ParsedObjectName
- type ParsedProjectName
- type StorageACLHandle
- type StorageBucketHandle
- type StorageBucketIterator
- type StorageObject
- func (x *StorageObject) Default()
- func (*StorageObject) Descriptor() ([]byte, []int)deprecated
- func (x *StorageObject) GetBucket() string
- func (x *StorageObject) GetCacheControl() string
- func (x *StorageObject) GetComponentCount() int32
- func (x *StorageObject) GetContentDisposition() string
- func (x *StorageObject) GetContentEncoding() string
- func (x *StorageObject) GetContentLanguage() string
- func (x *StorageObject) GetContentType() string
- func (x *StorageObject) GetCrc32C() string
- func (x *StorageObject) GetCustomerEncryption() *StorageObject_CustomerEncryption
- func (x *StorageObject) GetEtag() string
- func (x *StorageObject) GetEventBasedHold() bool
- func (x *StorageObject) GetGeneration() int64
- func (x *StorageObject) GetId() string
- func (x *StorageObject) GetKind() string
- func (x *StorageObject) GetKmsKeyName() string
- func (x *StorageObject) GetMd5Hash() string
- func (x *StorageObject) GetMediaLink() string
- func (x *StorageObject) GetMetadata() map[string]string
- func (x *StorageObject) GetMetageneration() int64
- func (x *StorageObject) GetName() string
- func (x *StorageObject) GetRetentionExpirationTime() *timestamppb.Timestamp
- func (x *StorageObject) GetSelfLink() string
- func (x *StorageObject) GetSize() int64
- func (x *StorageObject) GetStorageClass() string
- func (x *StorageObject) GetTemporaryHold() bool
- func (x *StorageObject) GetTimeCreated() *timestamppb.Timestamp
- func (x *StorageObject) GetTimeDeleted() *timestamppb.Timestamp
- func (x *StorageObject) GetTimeStorageClassUpdated() *timestamppb.Timestamp
- func (x *StorageObject) GetUpdated() *timestamppb.Timestamp
- func (msg *StorageObject) MarshalJSON() ([]byte, error)
- func (*StorageObject) ProtoMessage()
- func (x *StorageObject) ProtoReflect() protoreflect.Message
- func (x *StorageObject) Reset()
- func (x *StorageObject) String() string
- func (msg *StorageObject) UnmarshalJSON(b []byte) error
- func (m *StorageObject) Validate() error
- func (m *StorageObject) ValidateAll() error
- type StorageObjectArchivedEvent
- func (x *StorageObjectArchivedEvent) Default()
- func (*StorageObjectArchivedEvent) Descriptor() ([]byte, []int)deprecated
- func (x *StorageObjectArchivedEvent) GetObject() *StorageObject
- func (msg *StorageObjectArchivedEvent) MarshalJSON() ([]byte, error)
- func (*StorageObjectArchivedEvent) ProtoMessage()
- func (x *StorageObjectArchivedEvent) ProtoReflect() protoreflect.Message
- func (x *StorageObjectArchivedEvent) Reset()
- func (x *StorageObjectArchivedEvent) SetObject(obj *StorageObject)
- func (x *StorageObjectArchivedEvent) String() string
- func (msg *StorageObjectArchivedEvent) UnmarshalJSON(b []byte) error
- func (m *StorageObjectArchivedEvent) Validate() error
- func (m *StorageObjectArchivedEvent) ValidateAll() error
- type StorageObjectArchivedEventMultiError
- type StorageObjectArchivedEventValidationError
- func (e StorageObjectArchivedEventValidationError) Cause() error
- func (e StorageObjectArchivedEventValidationError) Error() string
- func (e StorageObjectArchivedEventValidationError) ErrorName() string
- func (e StorageObjectArchivedEventValidationError) Field() string
- func (e StorageObjectArchivedEventValidationError) Key() bool
- func (e StorageObjectArchivedEventValidationError) Reason() string
- type StorageObjectComposer
- type StorageObjectCopier
- type StorageObjectDeletedEvent
- func (x *StorageObjectDeletedEvent) Default()
- func (*StorageObjectDeletedEvent) Descriptor() ([]byte, []int)deprecated
- func (x *StorageObjectDeletedEvent) GetObject() *StorageObject
- func (msg *StorageObjectDeletedEvent) MarshalJSON() ([]byte, error)
- func (*StorageObjectDeletedEvent) ProtoMessage()
- func (x *StorageObjectDeletedEvent) ProtoReflect() protoreflect.Message
- func (x *StorageObjectDeletedEvent) Reset()
- func (x *StorageObjectDeletedEvent) SetObject(obj *StorageObject)
- func (x *StorageObjectDeletedEvent) String() string
- func (msg *StorageObjectDeletedEvent) UnmarshalJSON(b []byte) error
- func (m *StorageObjectDeletedEvent) Validate() error
- func (m *StorageObjectDeletedEvent) ValidateAll() error
- type StorageObjectDeletedEventMultiError
- type StorageObjectDeletedEventValidationError
- func (e StorageObjectDeletedEventValidationError) Cause() error
- func (e StorageObjectDeletedEventValidationError) Error() string
- func (e StorageObjectDeletedEventValidationError) ErrorName() string
- func (e StorageObjectDeletedEventValidationError) Field() string
- func (e StorageObjectDeletedEventValidationError) Key() bool
- func (e StorageObjectDeletedEventValidationError) Reason() string
- type StorageObjectEvent
- type StorageObjectEventHandler
- type StorageObjectEventType
- func (StorageObjectEventType) Descriptor() protoreflect.EnumDescriptor
- func (x StorageObjectEventType) Enum() *StorageObjectEventType
- func (StorageObjectEventType) EnumDescriptor() ([]byte, []int)deprecated
- func (x StorageObjectEventType) Number() protoreflect.EnumNumber
- func (x StorageObjectEventType) String() string
- func (StorageObjectEventType) Type() protoreflect.EnumType
- type StorageObjectFinalizedEvent
- func (x *StorageObjectFinalizedEvent) Default()
- func (*StorageObjectFinalizedEvent) Descriptor() ([]byte, []int)deprecated
- func (x *StorageObjectFinalizedEvent) GetObject() *StorageObject
- func (msg *StorageObjectFinalizedEvent) MarshalJSON() ([]byte, error)
- func (*StorageObjectFinalizedEvent) ProtoMessage()
- func (x *StorageObjectFinalizedEvent) ProtoReflect() protoreflect.Message
- func (x *StorageObjectFinalizedEvent) Reset()
- func (x *StorageObjectFinalizedEvent) SetObject(obj *StorageObject)
- func (x *StorageObjectFinalizedEvent) String() string
- func (msg *StorageObjectFinalizedEvent) UnmarshalJSON(b []byte) error
- func (m *StorageObjectFinalizedEvent) Validate() error
- func (m *StorageObjectFinalizedEvent) ValidateAll() error
- type StorageObjectFinalizedEventMultiError
- type StorageObjectFinalizedEventValidationError
- func (e StorageObjectFinalizedEventValidationError) Cause() error
- func (e StorageObjectFinalizedEventValidationError) Error() string
- func (e StorageObjectFinalizedEventValidationError) ErrorName() string
- func (e StorageObjectFinalizedEventValidationError) Field() string
- func (e StorageObjectFinalizedEventValidationError) Key() bool
- func (e StorageObjectFinalizedEventValidationError) Reason() string
- type StorageObjectHandle
- type StorageObjectIterator
- type StorageObjectMetadataUpdatedEvent
- func (x *StorageObjectMetadataUpdatedEvent) Default()
- func (*StorageObjectMetadataUpdatedEvent) Descriptor() ([]byte, []int)deprecated
- func (x *StorageObjectMetadataUpdatedEvent) GetObject() *StorageObject
- func (msg *StorageObjectMetadataUpdatedEvent) MarshalJSON() ([]byte, error)
- func (*StorageObjectMetadataUpdatedEvent) ProtoMessage()
- func (x *StorageObjectMetadataUpdatedEvent) ProtoReflect() protoreflect.Message
- func (x *StorageObjectMetadataUpdatedEvent) Reset()
- func (x *StorageObjectMetadataUpdatedEvent) SetObject(obj *StorageObject)
- func (x *StorageObjectMetadataUpdatedEvent) String() string
- func (msg *StorageObjectMetadataUpdatedEvent) UnmarshalJSON(b []byte) error
- func (m *StorageObjectMetadataUpdatedEvent) Validate() error
- func (m *StorageObjectMetadataUpdatedEvent) ValidateAll() error
- type StorageObjectMetadataUpdatedEventMultiError
- type StorageObjectMetadataUpdatedEventValidationError
- func (e StorageObjectMetadataUpdatedEventValidationError) Cause() error
- func (e StorageObjectMetadataUpdatedEventValidationError) Error() string
- func (e StorageObjectMetadataUpdatedEventValidationError) ErrorName() string
- func (e StorageObjectMetadataUpdatedEventValidationError) Field() string
- func (e StorageObjectMetadataUpdatedEventValidationError) Key() bool
- func (e StorageObjectMetadataUpdatedEventValidationError) Reason() string
- type StorageObjectMultiError
- type StorageObjectReader
- type StorageObjectValidationError
- func (e StorageObjectValidationError) Cause() error
- func (e StorageObjectValidationError) Error() string
- func (e StorageObjectValidationError) ErrorName() string
- func (e StorageObjectValidationError) Field() string
- func (e StorageObjectValidationError) Key() bool
- func (e StorageObjectValidationError) Reason() string
- type StorageObjectWriter
- type StorageObject_CustomerEncryption
- func (x *StorageObject_CustomerEncryption) Default()
- func (*StorageObject_CustomerEncryption) Descriptor() ([]byte, []int)deprecated
- func (x *StorageObject_CustomerEncryption) GetEncryptionAlgorithm() string
- func (x *StorageObject_CustomerEncryption) GetKeySha256() string
- func (msg *StorageObject_CustomerEncryption) MarshalJSON() ([]byte, error)
- func (*StorageObject_CustomerEncryption) ProtoMessage()
- func (x *StorageObject_CustomerEncryption) ProtoReflect() protoreflect.Message
- func (x *StorageObject_CustomerEncryption) Reset()
- func (x *StorageObject_CustomerEncryption) String() string
- func (msg *StorageObject_CustomerEncryption) UnmarshalJSON(b []byte) error
- func (m *StorageObject_CustomerEncryption) Validate() error
- func (m *StorageObject_CustomerEncryption) ValidateAll() error
- type StorageObject_CustomerEncryptionMultiError
- type StorageObject_CustomerEncryptionValidationError
- func (e StorageObject_CustomerEncryptionValidationError) Cause() error
- func (e StorageObject_CustomerEncryptionValidationError) Error() string
- func (e StorageObject_CustomerEncryptionValidationError) ErrorName() string
- func (e StorageObject_CustomerEncryptionValidationError) Field() string
- func (e StorageObject_CustomerEncryptionValidationError) Key() bool
- func (e StorageObject_CustomerEncryptionValidationError) Reason() string
- type StoragePageInfo
- type StorageServiceClient
Constants ¶
This section is empty.
Variables ¶
var ( StorageObjectEventType_name = map[int32]string{ 0: "OBJECT_UNSPECIFIED", 1: "OBJECT_FINALIZE", 2: "OBJECT_METADATA_UPDATE", 3: "OBJECT_DELETE", 4: "OBJECT_ARCHIVE", } StorageObjectEventType_value = map[string]int32{ "OBJECT_UNSPECIFIED": 0, "OBJECT_FINALIZE": 1, "OBJECT_METADATA_UPDATE": 2, "OBJECT_DELETE": 3, "OBJECT_ARCHIVE": 4, } )
Enum value maps for StorageObjectEventType.
var ErrStorageEventTypeUnknown = errors.New("unknown storage event type")
The error occurs when the event is unknown.
var File_connect_storage_v1_storage_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type NopStorageACLHandle ¶
type NopStorageACLHandle struct{}
NopStorageACLHandle is a no-op implementation of StorageACLHandle.
type NopStorageBucketHandle ¶
type NopStorageBucketHandle struct{}
NopStorageBucketHandle is a no-op implementation of StorageBucketHandle.
func (*NopStorageBucketHandle) ACL ¶
func (*NopStorageBucketHandle) ACL() StorageACLHandle
ACL implements StorageBucketHandle.
func (*NopStorageBucketHandle) AddNotification ¶
func (*NopStorageBucketHandle) AddNotification(ctx context.Context, x *storage.Notification) (*storage.Notification, error)
AddNotification implements StorageBucketHandle.
func (*NopStorageBucketHandle) Attrs ¶
func (*NopStorageBucketHandle) Attrs(context.Context) (*storage.BucketAttrs, error)
Attrs implements StorageBucketHandle.
func (*NopStorageBucketHandle) Create ¶
func (*NopStorageBucketHandle) Create(context.Context, string, *storage.BucketAttrs) error
Create implements StorageBucketHandle.
func (*NopStorageBucketHandle) DefaultObjectACL ¶
func (*NopStorageBucketHandle) DefaultObjectACL() StorageACLHandle
DefaultObjectACL implements StorageBucketHandle.
func (*NopStorageBucketHandle) Delete ¶
func (*NopStorageBucketHandle) Delete(context.Context) error
Delete implements StorageBucketHandle.
func (*NopStorageBucketHandle) DeleteNotification ¶
func (*NopStorageBucketHandle) DeleteNotification(context.Context, string) error
DeleteNotification implements StorageBucketHandle.
func (*NopStorageBucketHandle) LockRetentionPolicy ¶
func (*NopStorageBucketHandle) LockRetentionPolicy(context.Context) error
LockRetentionPolicy implements StorageBucketHandle.
func (*NopStorageBucketHandle) Notifications ¶
func (*NopStorageBucketHandle) Notifications(context.Context) (map[string]*storage.Notification, error)
Notifications implements StorageBucketHandle.
func (*NopStorageBucketHandle) Object ¶
func (*NopStorageBucketHandle) Object(string) StorageObjectHandle
Object implements StorageBucketHandle.
func (*NopStorageBucketHandle) Objects ¶
func (*NopStorageBucketHandle) Objects(context.Context, *storage.Query) StorageObjectIterator
Objects implements StorageBucketHandle.
func (*NopStorageBucketHandle) Update ¶
func (*NopStorageBucketHandle) Update(context.Context, storage.BucketAttrsToUpdate) (*storage.BucketAttrs, error)
Update implements StorageBucketHandle.
func (*NopStorageBucketHandle) UserProject ¶
func (*NopStorageBucketHandle) UserProject(projectID string) StorageBucketHandle
UserProject implements StorageBucketHandle.
type NopStorageBucketIterator ¶
type NopStorageBucketIterator struct{}
NopStorageBucketIterator is a no-op implementation of StorageBucketIterator.
func (*NopStorageBucketIterator) Next ¶
func (*NopStorageBucketIterator) Next() (*storage.BucketAttrs, error)
Next implements StorageBucketIterator.
func (*NopStorageBucketIterator) PageInfo ¶
func (x *NopStorageBucketIterator) PageInfo() StoragePageInfo
PageInfo implements StorageBucketIterator.
type NopStorageObjectComposer ¶
type NopStorageObjectComposer struct{}
NopStorageObjectComposer is a no-op implementation of StorageObjectComposer.
func (*NopStorageObjectComposer) ObjectAttrs ¶
func (*NopStorageObjectComposer) ObjectAttrs() *storage.ObjectAttrs
ObjectAttrs implements StorageObjectComposer.
func (*NopStorageObjectComposer) Run ¶
func (*NopStorageObjectComposer) Run(context.Context) (*storage.ObjectAttrs, error)
Run implements StorageObjectComposer.
type NopStorageObjectCopier ¶
type NopStorageObjectCopier struct{}
NopStorageObjectCopier is a no-op implementation of StorageObjectCopier.
func (*NopStorageObjectCopier) ObjectAttrs ¶
func (*NopStorageObjectCopier) ObjectAttrs() *storage.ObjectAttrs
ObjectAttrs implements StorageObjectCopier.
func (*NopStorageObjectCopier) Run ¶
func (*NopStorageObjectCopier) Run(context.Context) (*storage.ObjectAttrs, error)
Run implements StorageObjectCopier.
func (*NopStorageObjectCopier) SetDestinationKMSKeyName ¶
func (*NopStorageObjectCopier) SetDestinationKMSKeyName(string)
SetDestinationKMSKeyName implements StorageObjectCopier.
func (*NopStorageObjectCopier) SetProgressFunc ¶
func (*NopStorageObjectCopier) SetProgressFunc(func(uint64, uint64))
SetProgressFunc implements StorageObjectCopier.
func (*NopStorageObjectCopier) SetRewriteToken ¶
func (*NopStorageObjectCopier) SetRewriteToken(string)
SetRewriteToken implements StorageObjectCopier.
type NopStorageObjectHandle ¶
type NopStorageObjectHandle struct{}
NopStorageObjectHandle is a no-op implementation of StorageObjectHandle.
func (*NopStorageObjectHandle) ACL ¶
func (*NopStorageObjectHandle) ACL() StorageACLHandle
ACL implements StorageObjectHandle.
func (*NopStorageObjectHandle) Attrs ¶
func (*NopStorageObjectHandle) Attrs(context.Context) (*storage.ObjectAttrs, error)
Attrs implements StorageObjectHandle.
func (*NopStorageObjectHandle) ComposerFrom ¶
func (*NopStorageObjectHandle) ComposerFrom(...StorageObjectHandle) StorageObjectComposer
ComposerFrom implements StorageObjectHandle.
func (*NopStorageObjectHandle) CopierFrom ¶
func (*NopStorageObjectHandle) CopierFrom(StorageObjectHandle) StorageObjectCopier
CopierFrom implements StorageObjectHandle.
func (*NopStorageObjectHandle) Delete ¶
func (*NopStorageObjectHandle) Delete(context.Context) error
Delete implements StorageObjectHandle.
func (*NopStorageObjectHandle) Generation ¶
func (*NopStorageObjectHandle) Generation(int64) StorageObjectHandle
Generation implements StorageObjectHandle.
func (*NopStorageObjectHandle) If ¶
func (*NopStorageObjectHandle) If(storage.Conditions) StorageObjectHandle
If implements StorageObjectHandle.
func (*NopStorageObjectHandle) Key ¶
func (*NopStorageObjectHandle) Key([]byte) StorageObjectHandle
Key implements StorageObjectHandle.
func (*NopStorageObjectHandle) NewRangeReader ¶
func (*NopStorageObjectHandle) NewRangeReader(context.Context, int64, int64) (StorageObjectReader, error)
NewRangeReader implements StorageObjectHandle.
func (*NopStorageObjectHandle) NewReader ¶
func (*NopStorageObjectHandle) NewReader(context.Context) (StorageObjectReader, error)
NewReader implements StorageObjectHandle.
func (*NopStorageObjectHandle) NewWriter ¶
func (*NopStorageObjectHandle) NewWriter(context.Context) StorageObjectWriter
NewWriter implements StorageObjectHandle.
func (*NopStorageObjectHandle) ReadCompressed ¶
func (*NopStorageObjectHandle) ReadCompressed(bool) StorageObjectHandle
ReadCompressed implements StorageObjectHandle.
func (*NopStorageObjectHandle) Update ¶
func (*NopStorageObjectHandle) Update(context.Context, storage.ObjectAttrsToUpdate) (*storage.ObjectAttrs, error)
Update implements StorageObjectHandle.
type NopStorageObjectIterator ¶
type NopStorageObjectIterator struct{}
NopStorageObjectIterator is a no-op implementation of StorageObjectIterator.
func (*NopStorageObjectIterator) Next ¶
func (*NopStorageObjectIterator) Next() (*storage.ObjectAttrs, error)
Next implements StorageObjectIterator.
func (*NopStorageObjectIterator) PageInfo ¶
func (*NopStorageObjectIterator) PageInfo() StoragePageInfo
PageInfo implements StorageObjectIterator.
type NopStoragePageInfo ¶
type NopStoragePageInfo struct{}
NopStoragePageInfo is a no-op implementation of StoragePageInfo.
func (*NopStoragePageInfo) MaxSize ¶
func (*NopStoragePageInfo) MaxSize() int
MaxSize implements StoragePageInfo.
func (*NopStoragePageInfo) Remaining ¶
func (*NopStoragePageInfo) Remaining() int
Remaining implements StoragePageInfo.
func (*NopStoragePageInfo) Token ¶
func (*NopStoragePageInfo) Token() string
Token implements StoragePageInfo.
type NopStorageServiceClient ¶
type NopStorageServiceClient struct{}
NopStorageServiceClient is a no-op implementation of StorageServiceClient.
func (*NopStorageServiceClient) Bucket ¶
func (x *NopStorageServiceClient) Bucket(name string) StorageBucketHandle
Bucket implements StorageServiceClient.
func (*NopStorageServiceClient) Buckets ¶
func (x *NopStorageServiceClient) Buckets(ctx context.Context, projectID string) StorageBucketIterator
Buckets implements StorageServiceClient.
func (*NopStorageServiceClient) Close ¶
func (x *NopStorageServiceClient) Close() error
Close implements StorageServiceClient.
type ParsedBucketName ¶
func ParseBucketName ¶
func ParseBucketName(s string) (ParsedBucketName, error)
func ParseFullBucketName ¶
func ParseFullBucketName(s string) (ParsedBucketName, error)
func (ParsedBucketName) FullName ¶
func (n ParsedBucketName) FullName() string
func (ParsedBucketName) Key ¶
func (x ParsedBucketName) Key() string
Key returns the key representation.
func (ParsedBucketName) Name ¶
func (n ParsedBucketName) Name() string
func (ParsedBucketName) Parent ¶
func (x ParsedBucketName) Parent() ParsedProjectName
Parent returns the parent representation.
func (ParsedBucketName) String ¶
func (x ParsedBucketName) String() string
String returns the string representation.
type ParsedObjectName ¶
func ParseFullObjectName ¶
func ParseFullObjectName(s string) (ParsedObjectName, error)
func ParseObjectName ¶
func ParseObjectName(s string) (ParsedObjectName, error)
func (ParsedObjectName) FullName ¶
func (n ParsedObjectName) FullName() string
func (ParsedObjectName) Key ¶
func (x ParsedObjectName) Key() string
Key returns the key representation.
func (ParsedObjectName) Name ¶
func (n ParsedObjectName) Name() string
func (ParsedObjectName) Parent ¶
func (x ParsedObjectName) Parent() ParsedBucketName
Parent returns the parent representation.
func (ParsedObjectName) String ¶
func (x ParsedObjectName) String() string
String returns the string representation.
type ParsedProjectName ¶
type ParsedProjectName struct {
ProjectID string
}
func ParseFullProjectName ¶
func ParseFullProjectName(s string) (ParsedProjectName, error)
func ParseProjectName ¶
func ParseProjectName(s string) (ParsedProjectName, error)
func (ParsedProjectName) FullName ¶
func (n ParsedProjectName) FullName() string
func (ParsedProjectName) Key ¶
func (x ParsedProjectName) Key() string
Key returns the key representation.
func (ParsedProjectName) Name ¶
func (n ParsedProjectName) Name() string
func (ParsedProjectName) String ¶
func (x ParsedProjectName) String() string
String returns the string representation.
type StorageACLHandle ¶
type StorageBucketHandle ¶
type StorageBucketHandle interface { Create(context.Context, string, *storage.BucketAttrs) error Delete(context.Context) error DefaultObjectACL() StorageACLHandle Object(string) StorageObjectHandle Attrs(context.Context) (*storage.BucketAttrs, error) Update(context.Context, storage.BucketAttrsToUpdate) (*storage.BucketAttrs, error) If(storage.BucketConditions) StorageBucketHandle Objects(context.Context, *storage.Query) StorageObjectIterator ACL() StorageACLHandle UserProject(projectID string) StorageBucketHandle Notifications(context.Context) (map[string]*storage.Notification, error) AddNotification(context.Context, *storage.Notification) (*storage.Notification, error) DeleteNotification(context.Context, string) error LockRetentionPolicy(context.Context) error }
type StorageBucketIterator ¶
type StorageBucketIterator interface { Next() (*storage.BucketAttrs, error) PageInfo() StoragePageInfo }
type StorageObject ¶
type StorageObject struct { // Content-Encoding of the object data, matching // [https://tools.ietf.org/html/rfc7231#section-3.1.2.2][RFC 7231 §3.1.2.2] ContentEncoding string `protobuf:"bytes,1,opt,name=content_encoding,json=contentEncoding,proto3" json:"content_encoding,omitempty"` // Content-Disposition of the object data, matching // [https://tools.ietf.org/html/rfc6266][RFC 6266]. ContentDisposition string `protobuf:"bytes,2,opt,name=content_disposition,json=contentDisposition,proto3" json:"content_disposition,omitempty"` // Cache-Control directive for the object data, matching // [https://tools.ietf.org/html/rfc7234#section-5.2"][RFC 7234 §5.2]. CacheControl string `protobuf:"bytes,3,opt,name=cache_control,json=cacheControl,proto3" json:"cache_control,omitempty"` // Content-Language of the object data, matching // [https://tools.ietf.org/html/rfc7231#section-3.1.3.2][RFC 7231 §3.1.3.2]. ContentLanguage string `protobuf:"bytes,5,opt,name=content_language,json=contentLanguage,proto3" json:"content_language,omitempty"` // The version of the metadata for this object at this generation. Used for // preconditions and for detecting changes in metadata. A metageneration // number is only meaningful in the context of a particular generation of a // particular object. Metageneration int64 `protobuf:"varint,6,opt,name=metageneration,proto3" json:"metageneration,omitempty"` // The deletion time of the object. Will be returned if and only if this // version of the object has been deleted. TimeDeleted *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=time_deleted,json=timeDeleted,proto3" json:"time_deleted,omitempty"` // Content-Type of the object data, matching // [https://tools.ietf.org/html/rfc7231#section-3.1.1.5][RFC 7231 §3.1.1.5]. // If an object is stored without a Content-Type, it is served as // `application/octet-stream`. ContentType string `protobuf:"bytes,8,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"` // Content-Length of the object data in bytes, matching // [https://tools.ietf.org/html/rfc7230#section-3.3.2][RFC 7230 §3.3.2]. Size int64 `protobuf:"varint,9,opt,name=size,proto3" json:"size,omitempty"` // The creation time of the object. // Attempting to set this field will result in an error. TimeCreated *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=time_created,json=timeCreated,proto3" json:"time_created,omitempty"` // CRC32c checksum. For more information about using the CRC32c // checksum, see // [https://cloud.google.com/storage/docs/hashes-etags#_JSONAPI][Hashes and // ETags: Best Practices]. Crc32C string `protobuf:"bytes,11,opt,name=crc32c,proto3" json:"crc32c,omitempty"` // Number of underlying components that make up this object. Components are // accumulated by compose operations. // Attempting to set this field will result in an error. ComponentCount int32 `protobuf:"varint,12,opt,name=component_count,json=componentCount,proto3" json:"component_count,omitempty"` // MD5 hash of the data; encoded using base64 as per // [https://tools.ietf.org/html/rfc4648#section-4][RFC 4648 §4]. For more // information about using the MD5 hash, see // [https://cloud.google.com/storage/docs/hashes-etags#_JSONAPI][Hashes and // ETags: Best Practices]. Md5Hash string `protobuf:"bytes,13,opt,name=md5_hash,json=md5Hash,proto3" json:"md5_hash,omitempty"` // HTTP 1.1 Entity tag for the object. See // [https://tools.ietf.org/html/rfc7232#section-2.3][RFC 7232 §2.3]. Etag string `protobuf:"bytes,14,opt,name=etag,proto3" json:"etag,omitempty"` // The modification time of the object metadata. Updated *timestamppb.Timestamp `protobuf:"bytes,15,opt,name=updated,proto3" json:"updated,omitempty"` // Storage class of the object. StorageClass string `protobuf:"bytes,16,opt,name=storage_class,json=storageClass,proto3" json:"storage_class,omitempty"` // Cloud KMS Key used to encrypt this object, if the object is encrypted by // such a key. KmsKeyName string `protobuf:"bytes,17,opt,name=kms_key_name,json=kmsKeyName,proto3" json:"kms_key_name,omitempty"` // The time at which the object's storage class was last changed. TimeStorageClassUpdated *timestamppb.Timestamp `` /* 135-byte string literal not displayed */ // Whether an object is under temporary hold. TemporaryHold bool `protobuf:"varint,19,opt,name=temporary_hold,json=temporaryHold,proto3" json:"temporary_hold,omitempty"` // A server-determined value that specifies the earliest time that the // object's retention period expires. RetentionExpirationTime *timestamppb.Timestamp `` /* 133-byte string literal not displayed */ // User-provided metadata, in key/value pairs. Metadata map[string]string `` /* 158-byte string literal not displayed */ // Whether an object is under event-based hold. EventBasedHold bool `protobuf:"varint,29,opt,name=event_based_hold,json=eventBasedHold,proto3" json:"event_based_hold,omitempty"` // The name of the object. Name string `protobuf:"bytes,23,opt,name=name,proto3" json:"name,omitempty"` // The ID of the object, including the bucket name, object name, and // generation number. Id string `protobuf:"bytes,24,opt,name=id,proto3" json:"id,omitempty"` // The name of the bucket containing this object. Bucket string `protobuf:"bytes,25,opt,name=bucket,proto3" json:"bucket,omitempty"` // The content generation of this object. Used for object versioning. // Attempting to set this field will result in an error. Generation int64 `protobuf:"varint,26,opt,name=generation,proto3" json:"generation,omitempty"` // Metadata of customer-supplied encryption key, if the object is encrypted by // such a key. CustomerEncryption *StorageObject_CustomerEncryption `protobuf:"bytes,28,opt,name=customer_encryption,json=customerEncryption,proto3" json:"customer_encryption,omitempty"` // Media download link. MediaLink string `protobuf:"bytes,100,opt,name=media_link,json=mediaLink,proto3" json:"media_link,omitempty"` // The link to this object. SelfLink string `protobuf:"bytes,101,opt,name=self_link,json=selfLink,proto3" json:"self_link,omitempty"` // The kind of item this is. For objects, this is always "storage#object". Kind string `protobuf:"bytes,102,opt,name=kind,proto3" json:"kind,omitempty"` // contains filtered or unexported fields }
An object within Google Cloud Storage.
func (*StorageObject) Default ¶
func (x *StorageObject) Default()
func (*StorageObject) Descriptor
deprecated
func (*StorageObject) Descriptor() ([]byte, []int)
Deprecated: Use StorageObject.ProtoReflect.Descriptor instead.
func (*StorageObject) GetBucket ¶
func (x *StorageObject) GetBucket() string
func (*StorageObject) GetCacheControl ¶
func (x *StorageObject) GetCacheControl() string
func (*StorageObject) GetComponentCount ¶
func (x *StorageObject) GetComponentCount() int32
func (*StorageObject) GetContentDisposition ¶
func (x *StorageObject) GetContentDisposition() string
func (*StorageObject) GetContentEncoding ¶
func (x *StorageObject) GetContentEncoding() string
func (*StorageObject) GetContentLanguage ¶
func (x *StorageObject) GetContentLanguage() string
func (*StorageObject) GetContentType ¶
func (x *StorageObject) GetContentType() string
func (*StorageObject) GetCrc32C ¶
func (x *StorageObject) GetCrc32C() string
func (*StorageObject) GetCustomerEncryption ¶
func (x *StorageObject) GetCustomerEncryption() *StorageObject_CustomerEncryption
func (*StorageObject) GetEtag ¶
func (x *StorageObject) GetEtag() string
func (*StorageObject) GetEventBasedHold ¶
func (x *StorageObject) GetEventBasedHold() bool
func (*StorageObject) GetGeneration ¶
func (x *StorageObject) GetGeneration() int64
func (*StorageObject) GetId ¶
func (x *StorageObject) GetId() string
func (*StorageObject) GetKind ¶
func (x *StorageObject) GetKind() string
func (*StorageObject) GetKmsKeyName ¶
func (x *StorageObject) GetKmsKeyName() string
func (*StorageObject) GetMd5Hash ¶
func (x *StorageObject) GetMd5Hash() string
func (*StorageObject) GetMediaLink ¶
func (x *StorageObject) GetMediaLink() string
func (*StorageObject) GetMetadata ¶
func (x *StorageObject) GetMetadata() map[string]string
func (*StorageObject) GetMetageneration ¶
func (x *StorageObject) GetMetageneration() int64
func (*StorageObject) GetName ¶
func (x *StorageObject) GetName() string
func (*StorageObject) GetRetentionExpirationTime ¶
func (x *StorageObject) GetRetentionExpirationTime() *timestamppb.Timestamp
func (*StorageObject) GetSelfLink ¶
func (x *StorageObject) GetSelfLink() string
func (*StorageObject) GetSize ¶
func (x *StorageObject) GetSize() int64
func (*StorageObject) GetStorageClass ¶
func (x *StorageObject) GetStorageClass() string
func (*StorageObject) GetTemporaryHold ¶
func (x *StorageObject) GetTemporaryHold() bool
func (*StorageObject) GetTimeCreated ¶
func (x *StorageObject) GetTimeCreated() *timestamppb.Timestamp
func (*StorageObject) GetTimeDeleted ¶
func (x *StorageObject) GetTimeDeleted() *timestamppb.Timestamp
func (*StorageObject) GetTimeStorageClassUpdated ¶
func (x *StorageObject) GetTimeStorageClassUpdated() *timestamppb.Timestamp
func (*StorageObject) GetUpdated ¶
func (x *StorageObject) GetUpdated() *timestamppb.Timestamp
func (*StorageObject) MarshalJSON ¶
func (msg *StorageObject) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler
func (*StorageObject) ProtoMessage ¶
func (*StorageObject) ProtoMessage()
func (*StorageObject) ProtoReflect ¶
func (x *StorageObject) ProtoReflect() protoreflect.Message
func (*StorageObject) Reset ¶
func (x *StorageObject) Reset()
func (*StorageObject) String ¶
func (x *StorageObject) String() string
func (*StorageObject) UnmarshalJSON ¶
func (msg *StorageObject) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler
func (*StorageObject) Validate ¶
func (m *StorageObject) Validate() error
Validate checks the field values on StorageObject with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*StorageObject) ValidateAll ¶
func (m *StorageObject) ValidateAll() error
ValidateAll checks the field values on StorageObject with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in StorageObjectMultiError, or nil if none found.
type StorageObjectArchivedEvent ¶
type StorageObjectArchivedEvent struct { // The object associated with the event. Object *StorageObject `protobuf:"bytes,1,opt,name=object,proto3" json:"object,omitempty"` // contains filtered or unexported fields }
The CloudEvent raised when an object is archived in Google Cloud Storage.
func (*StorageObjectArchivedEvent) Default ¶
func (x *StorageObjectArchivedEvent) Default()
func (*StorageObjectArchivedEvent) Descriptor
deprecated
func (*StorageObjectArchivedEvent) Descriptor() ([]byte, []int)
Deprecated: Use StorageObjectArchivedEvent.ProtoReflect.Descriptor instead.
func (*StorageObjectArchivedEvent) GetObject ¶
func (x *StorageObjectArchivedEvent) GetObject() *StorageObject
func (*StorageObjectArchivedEvent) MarshalJSON ¶
func (msg *StorageObjectArchivedEvent) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler
func (*StorageObjectArchivedEvent) ProtoMessage ¶
func (*StorageObjectArchivedEvent) ProtoMessage()
func (*StorageObjectArchivedEvent) ProtoReflect ¶
func (x *StorageObjectArchivedEvent) ProtoReflect() protoreflect.Message
func (*StorageObjectArchivedEvent) Reset ¶
func (x *StorageObjectArchivedEvent) Reset()
func (*StorageObjectArchivedEvent) SetObject ¶
func (x *StorageObjectArchivedEvent) SetObject(obj *StorageObject)
SetStorageObject sets the StorageObject.
func (*StorageObjectArchivedEvent) String ¶
func (x *StorageObjectArchivedEvent) String() string
func (*StorageObjectArchivedEvent) UnmarshalJSON ¶
func (msg *StorageObjectArchivedEvent) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler
func (*StorageObjectArchivedEvent) Validate ¶
func (m *StorageObjectArchivedEvent) Validate() error
Validate checks the field values on StorageObjectArchivedEvent with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*StorageObjectArchivedEvent) ValidateAll ¶
func (m *StorageObjectArchivedEvent) ValidateAll() error
ValidateAll checks the field values on StorageObjectArchivedEvent with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in StorageObjectArchivedEventMultiError, or nil if none found.
type StorageObjectArchivedEventMultiError ¶
type StorageObjectArchivedEventMultiError []error
StorageObjectArchivedEventMultiError is an error wrapping multiple validation errors returned by StorageObjectArchivedEvent.ValidateAll() if the designated constraints aren't met.
func (StorageObjectArchivedEventMultiError) AllErrors ¶
func (m StorageObjectArchivedEventMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (StorageObjectArchivedEventMultiError) Error ¶
func (m StorageObjectArchivedEventMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type StorageObjectArchivedEventValidationError ¶
type StorageObjectArchivedEventValidationError struct {
// contains filtered or unexported fields
}
StorageObjectArchivedEventValidationError is the validation error returned by StorageObjectArchivedEvent.Validate if the designated constraints aren't met.
func (StorageObjectArchivedEventValidationError) Cause ¶
func (e StorageObjectArchivedEventValidationError) Cause() error
Cause function returns cause value.
func (StorageObjectArchivedEventValidationError) Error ¶
func (e StorageObjectArchivedEventValidationError) Error() string
Error satisfies the builtin error interface
func (StorageObjectArchivedEventValidationError) ErrorName ¶
func (e StorageObjectArchivedEventValidationError) ErrorName() string
ErrorName returns error name.
func (StorageObjectArchivedEventValidationError) Field ¶
func (e StorageObjectArchivedEventValidationError) Field() string
Field function returns field value.
func (StorageObjectArchivedEventValidationError) Key ¶
func (e StorageObjectArchivedEventValidationError) Key() bool
Key function returns key value.
func (StorageObjectArchivedEventValidationError) Reason ¶
func (e StorageObjectArchivedEventValidationError) Reason() string
Reason function returns reason value.
type StorageObjectComposer ¶
type StorageObjectComposer interface { ObjectAttrs() *storage.ObjectAttrs Run(context.Context) (*storage.ObjectAttrs, error) }
type StorageObjectCopier ¶
type StorageObjectDeletedEvent ¶
type StorageObjectDeletedEvent struct { // The object associated with the event. Object *StorageObject `protobuf:"bytes,1,opt,name=object,proto3" json:"object,omitempty"` // contains filtered or unexported fields }
The CloudEvent raised when an object is deleted in Google Cloud Storage.
func (*StorageObjectDeletedEvent) Default ¶
func (x *StorageObjectDeletedEvent) Default()
func (*StorageObjectDeletedEvent) Descriptor
deprecated
func (*StorageObjectDeletedEvent) Descriptor() ([]byte, []int)
Deprecated: Use StorageObjectDeletedEvent.ProtoReflect.Descriptor instead.
func (*StorageObjectDeletedEvent) GetObject ¶
func (x *StorageObjectDeletedEvent) GetObject() *StorageObject
func (*StorageObjectDeletedEvent) MarshalJSON ¶
func (msg *StorageObjectDeletedEvent) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler
func (*StorageObjectDeletedEvent) ProtoMessage ¶
func (*StorageObjectDeletedEvent) ProtoMessage()
func (*StorageObjectDeletedEvent) ProtoReflect ¶
func (x *StorageObjectDeletedEvent) ProtoReflect() protoreflect.Message
func (*StorageObjectDeletedEvent) Reset ¶
func (x *StorageObjectDeletedEvent) Reset()
func (*StorageObjectDeletedEvent) SetObject ¶
func (x *StorageObjectDeletedEvent) SetObject(obj *StorageObject)
SetStorageObject sets the StorageObject.
func (*StorageObjectDeletedEvent) String ¶
func (x *StorageObjectDeletedEvent) String() string
func (*StorageObjectDeletedEvent) UnmarshalJSON ¶
func (msg *StorageObjectDeletedEvent) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler
func (*StorageObjectDeletedEvent) Validate ¶
func (m *StorageObjectDeletedEvent) Validate() error
Validate checks the field values on StorageObjectDeletedEvent with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*StorageObjectDeletedEvent) ValidateAll ¶
func (m *StorageObjectDeletedEvent) ValidateAll() error
ValidateAll checks the field values on StorageObjectDeletedEvent with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in StorageObjectDeletedEventMultiError, or nil if none found.
type StorageObjectDeletedEventMultiError ¶
type StorageObjectDeletedEventMultiError []error
StorageObjectDeletedEventMultiError is an error wrapping multiple validation errors returned by StorageObjectDeletedEvent.ValidateAll() if the designated constraints aren't met.
func (StorageObjectDeletedEventMultiError) AllErrors ¶
func (m StorageObjectDeletedEventMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (StorageObjectDeletedEventMultiError) Error ¶
func (m StorageObjectDeletedEventMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type StorageObjectDeletedEventValidationError ¶
type StorageObjectDeletedEventValidationError struct {
// contains filtered or unexported fields
}
StorageObjectDeletedEventValidationError is the validation error returned by StorageObjectDeletedEvent.Validate if the designated constraints aren't met.
func (StorageObjectDeletedEventValidationError) Cause ¶
func (e StorageObjectDeletedEventValidationError) Cause() error
Cause function returns cause value.
func (StorageObjectDeletedEventValidationError) Error ¶
func (e StorageObjectDeletedEventValidationError) Error() string
Error satisfies the builtin error interface
func (StorageObjectDeletedEventValidationError) ErrorName ¶
func (e StorageObjectDeletedEventValidationError) ErrorName() string
ErrorName returns error name.
func (StorageObjectDeletedEventValidationError) Field ¶
func (e StorageObjectDeletedEventValidationError) Field() string
Field function returns field value.
func (StorageObjectDeletedEventValidationError) Key ¶
func (e StorageObjectDeletedEventValidationError) Key() bool
Key function returns key value.
func (StorageObjectDeletedEventValidationError) Reason ¶
func (e StorageObjectDeletedEventValidationError) Reason() string
Reason function returns reason value.
type StorageObjectEvent ¶
type StorageObjectEvent interface { GetObject() *StorageObject SetObject(*StorageObject) }
StorageObjectEvent is the interface for events that contain a StorageObject.
type StorageObjectEventHandler ¶
type StorageObjectEventHandler interface { // HandleStorageObjectEvent handles the connect.storage.v1.StorageObjectEvent event. HandleStorageObjectEvent(context.Context, StorageObjectEvent) error }
StorageEventHandler handles connect.storage.v1.StorageObjectEvent event.
type StorageObjectEventType ¶
type StorageObjectEventType int32
StorageObjectEventType is the type of event that occurred on the storage object.
const ( // Unspecified event type. StorageObjectEventType_OBJECT_UNSPECIFIED StorageObjectEventType = 0 // Sent when a new object (or a new generation of an existing object) is successfully created in the bucket. This includes copying or rewriting an existing object. A failed upload does not trigger this event. StorageObjectEventType_OBJECT_FINALIZE StorageObjectEventType = 1 // Sent when the metadata of an existing object changes StorageObjectEventType_OBJECT_METADATA_UPDATE StorageObjectEventType = 2 // Sent when an object has been permanently deleted. This includes objects that are replaced or deleted as part of the bucket's lifecycle configuration. This does not include objects that become noncurrent (see OBJECT_ARCHIVE) or aborted multipart uploads. StorageObjectEventType_OBJECT_DELETE StorageObjectEventType = 3 // Only sent when a bucket has enabled object versioning. This event indicates that the live version of an object has become a noncurrent version, either because it was explicitly made noncurrent or because it was replaced by the upload of an object of the same name. StorageObjectEventType_OBJECT_ARCHIVE StorageObjectEventType = 4 )
func (StorageObjectEventType) Descriptor ¶
func (StorageObjectEventType) Descriptor() protoreflect.EnumDescriptor
func (StorageObjectEventType) Enum ¶
func (x StorageObjectEventType) Enum() *StorageObjectEventType
func (StorageObjectEventType) EnumDescriptor
deprecated
func (StorageObjectEventType) EnumDescriptor() ([]byte, []int)
Deprecated: Use StorageObjectEventType.Descriptor instead.
func (StorageObjectEventType) Number ¶
func (x StorageObjectEventType) Number() protoreflect.EnumNumber
func (StorageObjectEventType) String ¶
func (x StorageObjectEventType) String() string
func (StorageObjectEventType) Type ¶
func (StorageObjectEventType) Type() protoreflect.EnumType
type StorageObjectFinalizedEvent ¶
type StorageObjectFinalizedEvent struct { // The object associated with the event. Object *StorageObject `protobuf:"bytes,1,opt,name=object,proto3" json:"object,omitempty"` // contains filtered or unexported fields }
The CloudEvent raised when an object is finalized in Google Cloud Storage.
func (*StorageObjectFinalizedEvent) Default ¶
func (x *StorageObjectFinalizedEvent) Default()
func (*StorageObjectFinalizedEvent) Descriptor
deprecated
func (*StorageObjectFinalizedEvent) Descriptor() ([]byte, []int)
Deprecated: Use StorageObjectFinalizedEvent.ProtoReflect.Descriptor instead.
func (*StorageObjectFinalizedEvent) GetObject ¶
func (x *StorageObjectFinalizedEvent) GetObject() *StorageObject
func (*StorageObjectFinalizedEvent) MarshalJSON ¶
func (msg *StorageObjectFinalizedEvent) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler
func (*StorageObjectFinalizedEvent) ProtoMessage ¶
func (*StorageObjectFinalizedEvent) ProtoMessage()
func (*StorageObjectFinalizedEvent) ProtoReflect ¶
func (x *StorageObjectFinalizedEvent) ProtoReflect() protoreflect.Message
func (*StorageObjectFinalizedEvent) Reset ¶
func (x *StorageObjectFinalizedEvent) Reset()
func (*StorageObjectFinalizedEvent) SetObject ¶
func (x *StorageObjectFinalizedEvent) SetObject(obj *StorageObject)
SetStorageObject sets the StorageObject.
func (*StorageObjectFinalizedEvent) String ¶
func (x *StorageObjectFinalizedEvent) String() string
func (*StorageObjectFinalizedEvent) UnmarshalJSON ¶
func (msg *StorageObjectFinalizedEvent) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler
func (*StorageObjectFinalizedEvent) Validate ¶
func (m *StorageObjectFinalizedEvent) Validate() error
Validate checks the field values on StorageObjectFinalizedEvent with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*StorageObjectFinalizedEvent) ValidateAll ¶
func (m *StorageObjectFinalizedEvent) ValidateAll() error
ValidateAll checks the field values on StorageObjectFinalizedEvent with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in StorageObjectFinalizedEventMultiError, or nil if none found.
type StorageObjectFinalizedEventMultiError ¶
type StorageObjectFinalizedEventMultiError []error
StorageObjectFinalizedEventMultiError is an error wrapping multiple validation errors returned by StorageObjectFinalizedEvent.ValidateAll() if the designated constraints aren't met.
func (StorageObjectFinalizedEventMultiError) AllErrors ¶
func (m StorageObjectFinalizedEventMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (StorageObjectFinalizedEventMultiError) Error ¶
func (m StorageObjectFinalizedEventMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type StorageObjectFinalizedEventValidationError ¶
type StorageObjectFinalizedEventValidationError struct {
// contains filtered or unexported fields
}
StorageObjectFinalizedEventValidationError is the validation error returned by StorageObjectFinalizedEvent.Validate if the designated constraints aren't met.
func (StorageObjectFinalizedEventValidationError) Cause ¶
func (e StorageObjectFinalizedEventValidationError) Cause() error
Cause function returns cause value.
func (StorageObjectFinalizedEventValidationError) Error ¶
func (e StorageObjectFinalizedEventValidationError) Error() string
Error satisfies the builtin error interface
func (StorageObjectFinalizedEventValidationError) ErrorName ¶
func (e StorageObjectFinalizedEventValidationError) ErrorName() string
ErrorName returns error name.
func (StorageObjectFinalizedEventValidationError) Field ¶
func (e StorageObjectFinalizedEventValidationError) Field() string
Field function returns field value.
func (StorageObjectFinalizedEventValidationError) Key ¶
func (e StorageObjectFinalizedEventValidationError) Key() bool
Key function returns key value.
func (StorageObjectFinalizedEventValidationError) Reason ¶
func (e StorageObjectFinalizedEventValidationError) Reason() string
Reason function returns reason value.
type StorageObjectHandle ¶
type StorageObjectHandle interface { ACL() StorageACLHandle Generation(int64) StorageObjectHandle If(storage.Conditions) StorageObjectHandle Key([]byte) StorageObjectHandle ReadCompressed(bool) StorageObjectHandle Attrs(context.Context) (*storage.ObjectAttrs, error) Update(context.Context, storage.ObjectAttrsToUpdate) (*storage.ObjectAttrs, error) NewReader(context.Context) (StorageObjectReader, error) NewRangeReader(context.Context, int64, int64) (StorageObjectReader, error) NewWriter(context.Context) StorageObjectWriter Delete(context.Context) error CopierFrom(StorageObjectHandle) StorageObjectCopier ComposerFrom(...StorageObjectHandle) StorageObjectComposer }
type StorageObjectIterator ¶
type StorageObjectIterator interface { Next() (*storage.ObjectAttrs, error) PageInfo() StoragePageInfo }
type StorageObjectMetadataUpdatedEvent ¶
type StorageObjectMetadataUpdatedEvent struct { // The object associated with the event. Object *StorageObject `protobuf:"bytes,1,opt,name=object,proto3" json:"object,omitempty"` // contains filtered or unexported fields }
The CloudEvent raised when an object's metadata is updated in Google Cloud Storage.
func (*StorageObjectMetadataUpdatedEvent) Default ¶
func (x *StorageObjectMetadataUpdatedEvent) Default()
func (*StorageObjectMetadataUpdatedEvent) Descriptor
deprecated
func (*StorageObjectMetadataUpdatedEvent) Descriptor() ([]byte, []int)
Deprecated: Use StorageObjectMetadataUpdatedEvent.ProtoReflect.Descriptor instead.
func (*StorageObjectMetadataUpdatedEvent) GetObject ¶
func (x *StorageObjectMetadataUpdatedEvent) GetObject() *StorageObject
func (*StorageObjectMetadataUpdatedEvent) MarshalJSON ¶
func (msg *StorageObjectMetadataUpdatedEvent) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler
func (*StorageObjectMetadataUpdatedEvent) ProtoMessage ¶
func (*StorageObjectMetadataUpdatedEvent) ProtoMessage()
func (*StorageObjectMetadataUpdatedEvent) ProtoReflect ¶
func (x *StorageObjectMetadataUpdatedEvent) ProtoReflect() protoreflect.Message
func (*StorageObjectMetadataUpdatedEvent) Reset ¶
func (x *StorageObjectMetadataUpdatedEvent) Reset()
func (*StorageObjectMetadataUpdatedEvent) SetObject ¶
func (x *StorageObjectMetadataUpdatedEvent) SetObject(obj *StorageObject)
SetStorageObject sets the StorageObject.
func (*StorageObjectMetadataUpdatedEvent) String ¶
func (x *StorageObjectMetadataUpdatedEvent) String() string
func (*StorageObjectMetadataUpdatedEvent) UnmarshalJSON ¶
func (msg *StorageObjectMetadataUpdatedEvent) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler
func (*StorageObjectMetadataUpdatedEvent) Validate ¶
func (m *StorageObjectMetadataUpdatedEvent) Validate() error
Validate checks the field values on StorageObjectMetadataUpdatedEvent with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*StorageObjectMetadataUpdatedEvent) ValidateAll ¶
func (m *StorageObjectMetadataUpdatedEvent) ValidateAll() error
ValidateAll checks the field values on StorageObjectMetadataUpdatedEvent with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in StorageObjectMetadataUpdatedEventMultiError, or nil if none found.
type StorageObjectMetadataUpdatedEventMultiError ¶
type StorageObjectMetadataUpdatedEventMultiError []error
StorageObjectMetadataUpdatedEventMultiError is an error wrapping multiple validation errors returned by StorageObjectMetadataUpdatedEvent.ValidateAll() if the designated constraints aren't met.
func (StorageObjectMetadataUpdatedEventMultiError) AllErrors ¶
func (m StorageObjectMetadataUpdatedEventMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (StorageObjectMetadataUpdatedEventMultiError) Error ¶
func (m StorageObjectMetadataUpdatedEventMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type StorageObjectMetadataUpdatedEventValidationError ¶
type StorageObjectMetadataUpdatedEventValidationError struct {
// contains filtered or unexported fields
}
StorageObjectMetadataUpdatedEventValidationError is the validation error returned by StorageObjectMetadataUpdatedEvent.Validate if the designated constraints aren't met.
func (StorageObjectMetadataUpdatedEventValidationError) Cause ¶
func (e StorageObjectMetadataUpdatedEventValidationError) Cause() error
Cause function returns cause value.
func (StorageObjectMetadataUpdatedEventValidationError) Error ¶
func (e StorageObjectMetadataUpdatedEventValidationError) Error() string
Error satisfies the builtin error interface
func (StorageObjectMetadataUpdatedEventValidationError) ErrorName ¶
func (e StorageObjectMetadataUpdatedEventValidationError) ErrorName() string
ErrorName returns error name.
func (StorageObjectMetadataUpdatedEventValidationError) Field ¶
func (e StorageObjectMetadataUpdatedEventValidationError) Field() string
Field function returns field value.
func (StorageObjectMetadataUpdatedEventValidationError) Key ¶
func (e StorageObjectMetadataUpdatedEventValidationError) Key() bool
Key function returns key value.
func (StorageObjectMetadataUpdatedEventValidationError) Reason ¶
func (e StorageObjectMetadataUpdatedEventValidationError) Reason() string
Reason function returns reason value.
type StorageObjectMultiError ¶
type StorageObjectMultiError []error
StorageObjectMultiError is an error wrapping multiple validation errors returned by StorageObject.ValidateAll() if the designated constraints aren't met.
func (StorageObjectMultiError) AllErrors ¶
func (m StorageObjectMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (StorageObjectMultiError) Error ¶
func (m StorageObjectMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type StorageObjectReader ¶
type StorageObjectValidationError ¶
type StorageObjectValidationError struct {
// contains filtered or unexported fields
}
StorageObjectValidationError is the validation error returned by StorageObject.Validate if the designated constraints aren't met.
func (StorageObjectValidationError) Cause ¶
func (e StorageObjectValidationError) Cause() error
Cause function returns cause value.
func (StorageObjectValidationError) Error ¶
func (e StorageObjectValidationError) Error() string
Error satisfies the builtin error interface
func (StorageObjectValidationError) ErrorName ¶
func (e StorageObjectValidationError) ErrorName() string
ErrorName returns error name.
func (StorageObjectValidationError) Field ¶
func (e StorageObjectValidationError) Field() string
Field function returns field value.
func (StorageObjectValidationError) Key ¶
func (e StorageObjectValidationError) Key() bool
Key function returns key value.
func (StorageObjectValidationError) Reason ¶
func (e StorageObjectValidationError) Reason() string
Reason function returns reason value.
type StorageObjectWriter ¶
type StorageObjectWriter interface { io.WriteCloser ObjectAttrs() *storage.ObjectAttrs SetChunkSize(int) SetProgressFunc(func(int64)) SetContentType(string) SetCRC32C(uint32) CloseWithError(err error) error Attrs() *storage.ObjectAttrs }
type StorageObject_CustomerEncryption ¶
type StorageObject_CustomerEncryption struct { // The encryption algorithm. EncryptionAlgorithm string `protobuf:"bytes,1,opt,name=encryption_algorithm,json=encryptionAlgorithm,proto3" json:"encryption_algorithm,omitempty"` // SHA256 hash value of the encryption key. KeySha256 string `protobuf:"bytes,2,opt,name=key_sha256,json=keySha256,proto3" json:"key_sha256,omitempty"` // contains filtered or unexported fields }
Describes the customer-specified mechanism used to store the data at rest.
func (*StorageObject_CustomerEncryption) Default ¶
func (x *StorageObject_CustomerEncryption) Default()
func (*StorageObject_CustomerEncryption) Descriptor
deprecated
func (*StorageObject_CustomerEncryption) Descriptor() ([]byte, []int)
Deprecated: Use StorageObject_CustomerEncryption.ProtoReflect.Descriptor instead.
func (*StorageObject_CustomerEncryption) GetEncryptionAlgorithm ¶
func (x *StorageObject_CustomerEncryption) GetEncryptionAlgorithm() string
func (*StorageObject_CustomerEncryption) GetKeySha256 ¶
func (x *StorageObject_CustomerEncryption) GetKeySha256() string
func (*StorageObject_CustomerEncryption) MarshalJSON ¶
func (msg *StorageObject_CustomerEncryption) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler
func (*StorageObject_CustomerEncryption) ProtoMessage ¶
func (*StorageObject_CustomerEncryption) ProtoMessage()
func (*StorageObject_CustomerEncryption) ProtoReflect ¶
func (x *StorageObject_CustomerEncryption) ProtoReflect() protoreflect.Message
func (*StorageObject_CustomerEncryption) Reset ¶
func (x *StorageObject_CustomerEncryption) Reset()
func (*StorageObject_CustomerEncryption) String ¶
func (x *StorageObject_CustomerEncryption) String() string
func (*StorageObject_CustomerEncryption) UnmarshalJSON ¶
func (msg *StorageObject_CustomerEncryption) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler
func (*StorageObject_CustomerEncryption) Validate ¶
func (m *StorageObject_CustomerEncryption) Validate() error
Validate checks the field values on StorageObject_CustomerEncryption with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*StorageObject_CustomerEncryption) ValidateAll ¶
func (m *StorageObject_CustomerEncryption) ValidateAll() error
ValidateAll checks the field values on StorageObject_CustomerEncryption with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in StorageObject_CustomerEncryptionMultiError, or nil if none found.
type StorageObject_CustomerEncryptionMultiError ¶
type StorageObject_CustomerEncryptionMultiError []error
StorageObject_CustomerEncryptionMultiError is an error wrapping multiple validation errors returned by StorageObject_CustomerEncryption.ValidateAll() if the designated constraints aren't met.
func (StorageObject_CustomerEncryptionMultiError) AllErrors ¶
func (m StorageObject_CustomerEncryptionMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (StorageObject_CustomerEncryptionMultiError) Error ¶
func (m StorageObject_CustomerEncryptionMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type StorageObject_CustomerEncryptionValidationError ¶
type StorageObject_CustomerEncryptionValidationError struct {
// contains filtered or unexported fields
}
StorageObject_CustomerEncryptionValidationError is the validation error returned by StorageObject_CustomerEncryption.Validate if the designated constraints aren't met.
func (StorageObject_CustomerEncryptionValidationError) Cause ¶
func (e StorageObject_CustomerEncryptionValidationError) Cause() error
Cause function returns cause value.
func (StorageObject_CustomerEncryptionValidationError) Error ¶
func (e StorageObject_CustomerEncryptionValidationError) Error() string
Error satisfies the builtin error interface
func (StorageObject_CustomerEncryptionValidationError) ErrorName ¶
func (e StorageObject_CustomerEncryptionValidationError) ErrorName() string
ErrorName returns error name.
func (StorageObject_CustomerEncryptionValidationError) Field ¶
func (e StorageObject_CustomerEncryptionValidationError) Field() string
Field function returns field value.
func (StorageObject_CustomerEncryptionValidationError) Key ¶
func (e StorageObject_CustomerEncryptionValidationError) Key() bool
Key function returns key value.
func (StorageObject_CustomerEncryptionValidationError) Reason ¶
func (e StorageObject_CustomerEncryptionValidationError) Reason() string
Reason function returns reason value.
type StoragePageInfo ¶
StoragePageInfo contains information about an iterator's paging state.
type StorageServiceClient ¶
type StorageServiceClient interface { Bucket(name string) StorageBucketHandle Buckets(ctx context.Context, projectID string) StorageBucketIterator Close() error }