storagev1

package
v0.0.0-...-e0125e7 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 26 Imported by: 0

Documentation

Overview

Code generated by protoc-gen-go-resource. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
var ErrStorageEventTypeUnknown = errors.New("unknown storage event type")

The error occurs when the event is unknown.

View Source
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.

func (*NopStorageACLHandle) Delete

Delete implements StorageACLHandle.

func (*NopStorageACLHandle) List

List implements StorageACLHandle.

func (*NopStorageACLHandle) Set

Set implements StorageACLHandle.

type NopStorageBucketHandle

type NopStorageBucketHandle struct{}

NopStorageBucketHandle is a no-op implementation of StorageBucketHandle.

func (*NopStorageBucketHandle) ACL

ACL implements StorageBucketHandle.

func (*NopStorageBucketHandle) AddNotification

AddNotification implements StorageBucketHandle.

func (*NopStorageBucketHandle) Attrs

Attrs implements StorageBucketHandle.

func (*NopStorageBucketHandle) Create

Create implements StorageBucketHandle.

func (*NopStorageBucketHandle) DefaultObjectACL

func (*NopStorageBucketHandle) DefaultObjectACL() StorageACLHandle

DefaultObjectACL implements StorageBucketHandle.

func (*NopStorageBucketHandle) Delete

Delete implements StorageBucketHandle.

func (*NopStorageBucketHandle) DeleteNotification

func (*NopStorageBucketHandle) DeleteNotification(context.Context, string) error

DeleteNotification implements StorageBucketHandle.

func (*NopStorageBucketHandle) If

If implements StorageBucketHandle.

func (*NopStorageBucketHandle) LockRetentionPolicy

func (*NopStorageBucketHandle) LockRetentionPolicy(context.Context) error

LockRetentionPolicy implements StorageBucketHandle.

func (*NopStorageBucketHandle) Notifications

Notifications implements StorageBucketHandle.

func (*NopStorageBucketHandle) Object

Object implements StorageBucketHandle.

func (*NopStorageBucketHandle) Objects

Objects implements StorageBucketHandle.

func (*NopStorageBucketHandle) Update

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

Next implements StorageBucketIterator.

func (*NopStorageBucketIterator) PageInfo

PageInfo implements StorageBucketIterator.

type NopStorageObjectComposer

type NopStorageObjectComposer struct{}

NopStorageObjectComposer is a no-op implementation of StorageObjectComposer.

func (*NopStorageObjectComposer) ObjectAttrs

ObjectAttrs implements StorageObjectComposer.

func (*NopStorageObjectComposer) Run

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

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

ACL implements StorageObjectHandle.

func (*NopStorageObjectHandle) Attrs

Attrs implements StorageObjectHandle.

func (*NopStorageObjectHandle) ComposerFrom

ComposerFrom implements StorageObjectHandle.

func (*NopStorageObjectHandle) CopierFrom

CopierFrom implements StorageObjectHandle.

func (*NopStorageObjectHandle) Delete

Delete implements StorageObjectHandle.

func (*NopStorageObjectHandle) Generation

Generation implements StorageObjectHandle.

func (*NopStorageObjectHandle) If

If implements StorageObjectHandle.

func (*NopStorageObjectHandle) Key

Key implements StorageObjectHandle.

func (*NopStorageObjectHandle) NewRangeReader

NewRangeReader implements StorageObjectHandle.

func (*NopStorageObjectHandle) NewReader

NewReader implements StorageObjectHandle.

func (*NopStorageObjectHandle) NewWriter

NewWriter implements StorageObjectHandle.

func (*NopStorageObjectHandle) ReadCompressed

ReadCompressed implements StorageObjectHandle.

func (*NopStorageObjectHandle) Update

Update implements StorageObjectHandle.

type NopStorageObjectIterator

type NopStorageObjectIterator struct{}

NopStorageObjectIterator is a no-op implementation of StorageObjectIterator.

func (*NopStorageObjectIterator) Next

Next implements StorageObjectIterator.

func (*NopStorageObjectIterator) PageInfo

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

Bucket implements StorageServiceClient.

func (*NopStorageServiceClient) Buckets

Buckets implements StorageServiceClient.

func (*NopStorageServiceClient) Close

func (x *NopStorageServiceClient) Close() error

Close implements StorageServiceClient.

type ParsedBucketName

type ParsedBucketName struct {
	ProjectID string

	BucketID string
}

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

Parent returns the parent representation.

func (ParsedBucketName) String

func (x ParsedBucketName) String() string

String returns the string representation.

type ParsedObjectName

type ParsedObjectName struct {
	ProjectID string

	BucketID string

	ObjectID string
}

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

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 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 (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 (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 (*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

AllErrors returns a list of validation violation errors.

func (StorageObjectArchivedEventMultiError) Error

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

Cause function returns cause value.

func (StorageObjectArchivedEventValidationError) Error

Error satisfies the builtin error interface

func (StorageObjectArchivedEventValidationError) ErrorName

ErrorName returns error name.

func (StorageObjectArchivedEventValidationError) Field

Field function returns field value.

func (StorageObjectArchivedEventValidationError) Key

Key function returns key value.

func (StorageObjectArchivedEventValidationError) Reason

Reason function returns reason value.

type StorageObjectComposer

type StorageObjectComposer interface {
	ObjectAttrs() *storage.ObjectAttrs
	Run(context.Context) (*storage.ObjectAttrs, error)
}

type StorageObjectCopier

type StorageObjectCopier interface {
	ObjectAttrs() *storage.ObjectAttrs
	SetRewriteToken(string)
	SetProgressFunc(func(uint64, uint64))
	SetDestinationKMSKeyName(string)
	Run(context.Context) (*storage.ObjectAttrs, error)
}

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 (*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

AllErrors returns a list of validation violation errors.

func (StorageObjectDeletedEventMultiError) Error

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

Cause function returns cause value.

func (StorageObjectDeletedEventValidationError) Error

Error satisfies the builtin error interface

func (StorageObjectDeletedEventValidationError) ErrorName

ErrorName returns error name.

func (StorageObjectDeletedEventValidationError) Field

Field function returns field value.

func (StorageObjectDeletedEventValidationError) Key

Key function returns key value.

func (StorageObjectDeletedEventValidationError) Reason

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) Enum

func (StorageObjectEventType) EnumDescriptor deprecated

func (StorageObjectEventType) EnumDescriptor() ([]byte, []int)

Deprecated: Use StorageObjectEventType.Descriptor instead.

func (StorageObjectEventType) Number

func (StorageObjectEventType) String

func (x StorageObjectEventType) String() string

func (StorageObjectEventType) Type

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 (*StorageObjectFinalizedEvent) MarshalJSON

func (msg *StorageObjectFinalizedEvent) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*StorageObjectFinalizedEvent) ProtoMessage

func (*StorageObjectFinalizedEvent) ProtoMessage()

func (*StorageObjectFinalizedEvent) ProtoReflect

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

AllErrors returns a list of validation violation errors.

func (StorageObjectFinalizedEventMultiError) Error

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

Cause function returns cause value.

func (StorageObjectFinalizedEventValidationError) Error

Error satisfies the builtin error interface

func (StorageObjectFinalizedEventValidationError) ErrorName

ErrorName returns error name.

func (StorageObjectFinalizedEventValidationError) Field

Field function returns field value.

func (StorageObjectFinalizedEventValidationError) Key

Key function returns key value.

func (StorageObjectFinalizedEventValidationError) Reason

Reason function returns reason value.

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 (*StorageObjectMetadataUpdatedEvent) MarshalJSON

func (msg *StorageObjectMetadataUpdatedEvent) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*StorageObjectMetadataUpdatedEvent) ProtoMessage

func (*StorageObjectMetadataUpdatedEvent) ProtoMessage()

func (*StorageObjectMetadataUpdatedEvent) ProtoReflect

func (*StorageObjectMetadataUpdatedEvent) Reset

func (*StorageObjectMetadataUpdatedEvent) SetObject

SetStorageObject sets the StorageObject.

func (*StorageObjectMetadataUpdatedEvent) String

func (*StorageObjectMetadataUpdatedEvent) UnmarshalJSON

func (msg *StorageObjectMetadataUpdatedEvent) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

func (*StorageObjectMetadataUpdatedEvent) Validate

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

AllErrors returns a list of validation violation errors.

func (StorageObjectMetadataUpdatedEventMultiError) Error

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

Cause function returns cause value.

func (StorageObjectMetadataUpdatedEventValidationError) Error

Error satisfies the builtin error interface

func (StorageObjectMetadataUpdatedEventValidationError) ErrorName

ErrorName returns error name.

func (StorageObjectMetadataUpdatedEventValidationError) Field

Field function returns field value.

func (StorageObjectMetadataUpdatedEventValidationError) Key

Key function returns key value.

func (StorageObjectMetadataUpdatedEventValidationError) Reason

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 StorageObjectReader interface {
	io.ReadCloser
	Size() int64
	Remain() int64
	ContentType() string
	ContentEncoding() string
	CacheControl() string
}

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

Cause function returns cause value.

func (StorageObjectValidationError) Error

Error satisfies the builtin error interface

func (StorageObjectValidationError) ErrorName

func (e StorageObjectValidationError) ErrorName() string

ErrorName returns error name.

func (StorageObjectValidationError) Field

Field function returns field value.

func (StorageObjectValidationError) Key

Key function returns key value.

func (StorageObjectValidationError) Reason

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 (*StorageObject_CustomerEncryption) Reset

func (*StorageObject_CustomerEncryption) String

func (*StorageObject_CustomerEncryption) UnmarshalJSON

func (msg *StorageObject_CustomerEncryption) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

func (*StorageObject_CustomerEncryption) Validate

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

AllErrors returns a list of validation violation errors.

func (StorageObject_CustomerEncryptionMultiError) Error

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

Cause function returns cause value.

func (StorageObject_CustomerEncryptionValidationError) Error

Error satisfies the builtin error interface

func (StorageObject_CustomerEncryptionValidationError) ErrorName

ErrorName returns error name.

func (StorageObject_CustomerEncryptionValidationError) Field

Field function returns field value.

func (StorageObject_CustomerEncryptionValidationError) Key

Key function returns key value.

func (StorageObject_CustomerEncryptionValidationError) Reason

Reason function returns reason value.

type StoragePageInfo

type StoragePageInfo interface {
	Token() string
	MaxSize() int
	Remaining() int
}

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
}

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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