proto

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_metadata_proto protoreflect.FileDescriptor

Functions

func NewMetadataEndpoints

func NewMetadataEndpoints() []*api.Endpoint

func RegisterMetadataHandler

func RegisterMetadataHandler(s server.Server, hdlr MetadataHandler, opts ...server.HandlerOption) error

Types

type Access

type Access struct {
	DisplayName  string `protobuf:"bytes,1,opt,name=displayName,proto3" json:"displayName,omitempty"`
	EmailAddress string `protobuf:"bytes,2,opt,name=emailAddress,proto3" json:"emailAddress,omitempty"`
	Id           string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"`
	Type         string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"`
	Uri          string `protobuf:"bytes,5,opt,name=uri,proto3" json:"uri,omitempty"`
	Permission   string `protobuf:"bytes,6,opt,name=permission,proto3" json:"permission,omitempty"`
	// contains filtered or unexported fields
}

func (*Access) Descriptor deprecated

func (*Access) Descriptor() ([]byte, []int)

Deprecated: Use Access.ProtoReflect.Descriptor instead.

func (*Access) GetDisplayName

func (x *Access) GetDisplayName() string

func (*Access) GetEmailAddress

func (x *Access) GetEmailAddress() string

func (*Access) GetId

func (x *Access) GetId() string

func (*Access) GetPermission

func (x *Access) GetPermission() string

func (*Access) GetType

func (x *Access) GetType() string

func (*Access) GetUri

func (x *Access) GetUri() string

func (*Access) ProtoMessage

func (*Access) ProtoMessage()

func (*Access) ProtoReflect

func (x *Access) ProtoReflect() protoreflect.Message

func (*Access) Reset

func (x *Access) Reset()

func (*Access) String

func (x *Access) String() string

type BackendMetadata

type BackendMetadata struct {
	Id                      string            `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	BackendName             string            `protobuf:"bytes,2,opt,name=backendName,proto3" json:"backendName,omitempty"`
	Region                  string            `protobuf:"bytes,3,opt,name=region,proto3" json:"region,omitempty"`
	Type                    string            `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"`
	NumberOfBuckets         int32             `protobuf:"varint,5,opt,name=numberOfBuckets,proto3" json:"numberOfBuckets,omitempty"`
	NumberOfFilteredBuckets int32             `protobuf:"varint,6,opt,name=numberOfFilteredBuckets,proto3" json:"numberOfFilteredBuckets,omitempty"`
	Buckets                 []*BucketMetadata `protobuf:"bytes,7,rep,name=buckets,proto3" json:"buckets,omitempty"`
	// contains filtered or unexported fields
}

func (*BackendMetadata) Descriptor deprecated

func (*BackendMetadata) Descriptor() ([]byte, []int)

Deprecated: Use BackendMetadata.ProtoReflect.Descriptor instead.

func (*BackendMetadata) GetBackendName

func (x *BackendMetadata) GetBackendName() string

func (*BackendMetadata) GetBuckets

func (x *BackendMetadata) GetBuckets() []*BucketMetadata

func (*BackendMetadata) GetId

func (x *BackendMetadata) GetId() string

func (*BackendMetadata) GetNumberOfBuckets

func (x *BackendMetadata) GetNumberOfBuckets() int32

func (*BackendMetadata) GetNumberOfFilteredBuckets

func (x *BackendMetadata) GetNumberOfFilteredBuckets() int32

func (*BackendMetadata) GetRegion

func (x *BackendMetadata) GetRegion() string

func (*BackendMetadata) GetType

func (x *BackendMetadata) GetType() string

func (*BackendMetadata) ProtoMessage

func (*BackendMetadata) ProtoMessage()

func (*BackendMetadata) ProtoReflect

func (x *BackendMetadata) ProtoReflect() protoreflect.Message

func (*BackendMetadata) Reset

func (x *BackendMetadata) Reset()

func (*BackendMetadata) String

func (x *BackendMetadata) String() string

type BaseResponse

type BaseResponse struct {
	ErrorCode int32  `protobuf:"varint,1,opt,name=errorCode,proto3" json:"errorCode,omitempty"`
	Msg       string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	// contains filtered or unexported fields
}

func (*BaseResponse) Descriptor deprecated

func (*BaseResponse) Descriptor() ([]byte, []int)

Deprecated: Use BaseResponse.ProtoReflect.Descriptor instead.

func (*BaseResponse) GetErrorCode

func (x *BaseResponse) GetErrorCode() int32

func (*BaseResponse) GetMsg

func (x *BaseResponse) GetMsg() string

func (*BaseResponse) ProtoMessage

func (*BaseResponse) ProtoMessage()

func (*BaseResponse) ProtoReflect

func (x *BaseResponse) ProtoReflect() protoreflect.Message

func (*BaseResponse) Reset

func (x *BaseResponse) Reset()

func (*BaseResponse) String

func (x *BaseResponse) String() string

type BucketMetadata

type BucketMetadata struct {

	// The createdAt representing the server time when the bucket was created.
	CreationDate string `protobuf:"bytes,1,opt,name=creationDate,proto3" json:"creationDate,omitempty"`
	// The name of the bucket.
	Name      string    `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Region    string    `protobuf:"bytes,3,opt,name=region,proto3" json:"region,omitempty"`
	Type      string    `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"`
	BucketAcl []*Access `protobuf:"bytes,5,rep,name=bucketAcl,proto3" json:"bucketAcl,omitempty"`
	// The number of objects in the bucket
	NumberOfObjects         int32 `protobuf:"varint,6,opt,name=numberOfObjects,proto3" json:"numberOfObjects,omitempty"`
	NumberOfFilteredObjects int32 `protobuf:"varint,7,opt,name=numberOfFilteredObjects,proto3" json:"numberOfFilteredObjects,omitempty"`
	// The total size occupied by the bucket
	BucketSizeInBytes  int64 `protobuf:"varint,8,opt,name=bucketSizeInBytes,proto3" json:"bucketSizeInBytes,omitempty"`
	FilteredBucketSize int64 `protobuf:"varint,9,opt,name=filteredBucketSize,proto3" json:"filteredBucketSize,omitempty"`
	// The tags of the bucket
	BucketTags map[string]string `` /* 162-byte string literal not displayed */
	Objects    []*ObjectMetadata `protobuf:"bytes,11,rep,name=objects,proto3" json:"objects,omitempty"`
	// contains filtered or unexported fields
}

func (*BucketMetadata) Descriptor deprecated

func (*BucketMetadata) Descriptor() ([]byte, []int)

Deprecated: Use BucketMetadata.ProtoReflect.Descriptor instead.

func (*BucketMetadata) GetBucketAcl

func (x *BucketMetadata) GetBucketAcl() []*Access

func (*BucketMetadata) GetBucketSizeInBytes

func (x *BucketMetadata) GetBucketSizeInBytes() int64

func (*BucketMetadata) GetBucketTags

func (x *BucketMetadata) GetBucketTags() map[string]string

func (*BucketMetadata) GetCreationDate

func (x *BucketMetadata) GetCreationDate() string

func (*BucketMetadata) GetFilteredBucketSize

func (x *BucketMetadata) GetFilteredBucketSize() int64

func (*BucketMetadata) GetName

func (x *BucketMetadata) GetName() string

func (*BucketMetadata) GetNumberOfFilteredObjects

func (x *BucketMetadata) GetNumberOfFilteredObjects() int32

func (*BucketMetadata) GetNumberOfObjects

func (x *BucketMetadata) GetNumberOfObjects() int32

func (*BucketMetadata) GetObjects

func (x *BucketMetadata) GetObjects() []*ObjectMetadata

func (*BucketMetadata) GetRegion

func (x *BucketMetadata) GetRegion() string

func (*BucketMetadata) GetType

func (x *BucketMetadata) GetType() string

func (*BucketMetadata) ProtoMessage

func (*BucketMetadata) ProtoMessage()

func (*BucketMetadata) ProtoReflect

func (x *BucketMetadata) ProtoReflect() protoreflect.Message

func (*BucketMetadata) Reset

func (x *BucketMetadata) Reset()

func (*BucketMetadata) String

func (x *BucketMetadata) String() string

type ListMetadataRequest

type ListMetadataRequest struct {

	// the number of records at max which can be there in response
	Limit int32 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"`
	// the index of the first record to be returned
	Offset int32 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"`
	//used to denote the type of cloud provider
	Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
	//name of the backend
	BackendName string `protobuf:"bytes,4,opt,name=backendName,proto3" json:"backendName,omitempty"`
	Region      string `protobuf:"bytes,5,opt,name=region,proto3" json:"region,omitempty"`
	// name of the bucket
	BucketName string `protobuf:"bytes,6,opt,name=bucketName,proto3" json:"bucketName,omitempty"`
	// name of the object
	ObjectName string `protobuf:"bytes,7,opt,name=objectName,proto3" json:"objectName,omitempty"`
	// the size of the object in bytes
	SizeOfObjectInBytes int64 `protobuf:"varint,8,opt,name=sizeOfObjectInBytes,proto3" json:"sizeOfObjectInBytes,omitempty"`
	// the size of the bucket in bytes
	SizeOfBucketInBytes int64 `protobuf:"varint,9,opt,name=sizeOfBucketInBytes,proto3" json:"sizeOfBucketInBytes,omitempty"`
	// operator is eq, gte,gt,lte,lt
	BucketSizeOperator string `protobuf:"bytes,10,opt,name=bucketSizeOperator,proto3" json:"bucketSizeOperator,omitempty"`
	// operator is eq, gte,gt,lte,lt
	ObjectSizeOperator string `protobuf:"bytes,11,opt,name=objectSizeOperator,proto3" json:"objectSizeOperator,omitempty"`
	// can have values desc or asc
	SortOrder string `protobuf:"bytes,12,opt,name=sortOrder,proto3" json:"sortOrder,omitempty"`
	// contains filtered or unexported fields
}

func (*ListMetadataRequest) Descriptor deprecated

func (*ListMetadataRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListMetadataRequest.ProtoReflect.Descriptor instead.

func (*ListMetadataRequest) GetBackendName

func (x *ListMetadataRequest) GetBackendName() string

func (*ListMetadataRequest) GetBucketName

func (x *ListMetadataRequest) GetBucketName() string

func (*ListMetadataRequest) GetBucketSizeOperator

func (x *ListMetadataRequest) GetBucketSizeOperator() string

func (*ListMetadataRequest) GetLimit

func (x *ListMetadataRequest) GetLimit() int32

func (*ListMetadataRequest) GetObjectName

func (x *ListMetadataRequest) GetObjectName() string

func (*ListMetadataRequest) GetObjectSizeOperator

func (x *ListMetadataRequest) GetObjectSizeOperator() string

func (*ListMetadataRequest) GetOffset

func (x *ListMetadataRequest) GetOffset() int32

func (*ListMetadataRequest) GetRegion

func (x *ListMetadataRequest) GetRegion() string

func (*ListMetadataRequest) GetSizeOfBucketInBytes

func (x *ListMetadataRequest) GetSizeOfBucketInBytes() int64

func (*ListMetadataRequest) GetSizeOfObjectInBytes

func (x *ListMetadataRequest) GetSizeOfObjectInBytes() int64

func (*ListMetadataRequest) GetSortOrder

func (x *ListMetadataRequest) GetSortOrder() string

func (*ListMetadataRequest) GetType

func (x *ListMetadataRequest) GetType() string

func (*ListMetadataRequest) ProtoMessage

func (*ListMetadataRequest) ProtoMessage()

func (*ListMetadataRequest) ProtoReflect

func (x *ListMetadataRequest) ProtoReflect() protoreflect.Message

func (*ListMetadataRequest) Reset

func (x *ListMetadataRequest) Reset()

func (*ListMetadataRequest) String

func (x *ListMetadataRequest) String() string

type ListMetadataResponse

type ListMetadataResponse struct {
	Backends []*BackendMetadata `protobuf:"bytes,1,rep,name=backends,proto3" json:"backends,omitempty"`
	// contains filtered or unexported fields
}

func (*ListMetadataResponse) Descriptor deprecated

func (*ListMetadataResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListMetadataResponse.ProtoReflect.Descriptor instead.

func (*ListMetadataResponse) GetBackends

func (x *ListMetadataResponse) GetBackends() []*BackendMetadata

func (*ListMetadataResponse) ProtoMessage

func (*ListMetadataResponse) ProtoMessage()

func (*ListMetadataResponse) ProtoReflect

func (x *ListMetadataResponse) ProtoReflect() protoreflect.Message

func (*ListMetadataResponse) Reset

func (x *ListMetadataResponse) Reset()

func (*ListMetadataResponse) String

func (x *ListMetadataResponse) String() string

type MetadataDetail

type MetadataDetail struct {
	ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	UserId    string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Type      string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (*MetadataDetail) Descriptor deprecated

func (*MetadataDetail) Descriptor() ([]byte, []int)

Deprecated: Use MetadataDetail.ProtoReflect.Descriptor instead.

func (*MetadataDetail) GetProjectId

func (x *MetadataDetail) GetProjectId() string

func (*MetadataDetail) GetType

func (x *MetadataDetail) GetType() string

func (*MetadataDetail) GetUserId

func (x *MetadataDetail) GetUserId() string

func (*MetadataDetail) ProtoMessage

func (*MetadataDetail) ProtoMessage()

func (*MetadataDetail) ProtoReflect

func (x *MetadataDetail) ProtoReflect() protoreflect.Message

func (*MetadataDetail) Reset

func (x *MetadataDetail) Reset()

func (*MetadataDetail) String

func (x *MetadataDetail) String() string

type MetadataHandler

type MetadataHandler interface {
	SyncMetadata(context.Context, *SyncMetadataRequest, *BaseResponse) error
	ListMetadata(context.Context, *ListMetadataRequest, *ListMetadataResponse) error
}

type MetadataService

type MetadataService interface {
	SyncMetadata(ctx context.Context, in *SyncMetadataRequest, opts ...client.CallOption) (*BaseResponse, error)
	ListMetadata(ctx context.Context, in *ListMetadataRequest, opts ...client.CallOption) (*ListMetadataResponse, error)
}

func NewMetadataService

func NewMetadataService(name string, c client.Client) MetadataService

type ObjectMetadata

type ObjectMetadata struct {

	// The date of the last modification on the object
	LastModifiedDate string `protobuf:"bytes,1,opt,name=lastModifiedDate,proto3" json:"lastModifiedDate,omitempty"`
	// The name of the object
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// The name of the bucket to which the object belongs
	BucketName string `protobuf:"bytes,3,opt,name=bucketName,proto3" json:"bucketName,omitempty"`
	// The size o the object in bytes
	ObjectSizeInBytes int32 `protobuf:"varint,4,opt,name=objectSizeInBytes,proto3" json:"objectSizeInBytes,omitempty"`
	// extension of the object
	Type string `protobuf:"bytes,5,opt,name=type,proto3" json:"type,omitempty"`
	// true if server side encyption is enabled
	ServerSideEncryption string `protobuf:"bytes,6,opt,name=serverSideEncryption,proto3" json:"serverSideEncryption,omitempty"`
	// used to store the version info of the object
	VersionId string `protobuf:"bytes,7,opt,name=versionId,proto3" json:"versionId,omitempty"`
	// used to denote the storage class of the object in the cloud vendor
	StorageClass      string            `protobuf:"bytes,8,opt,name=storageClass,proto3" json:"storageClass,omitempty"`
	RedirectLocation  string            `protobuf:"bytes,9,opt,name=redirectLocation,proto3" json:"redirectLocation,omitempty"`
	ReplicationStatus string            `protobuf:"bytes,10,opt,name=replicationStatus,proto3" json:"replicationStatus,omitempty"`
	ExpiresDate       string            `protobuf:"bytes,11,opt,name=expiresDate,proto3" json:"expiresDate,omitempty"`
	ObjectAcl         []*Access         `protobuf:"bytes,12,rep,name=objectAcl,proto3" json:"objectAcl,omitempty"`
	ObjectTags        map[string]string `` /* 162-byte string literal not displayed */
	Metadata          map[string]string `` /* 158-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ObjectMetadata) Descriptor deprecated

func (*ObjectMetadata) Descriptor() ([]byte, []int)

Deprecated: Use ObjectMetadata.ProtoReflect.Descriptor instead.

func (*ObjectMetadata) GetBucketName

func (x *ObjectMetadata) GetBucketName() string

func (*ObjectMetadata) GetExpiresDate

func (x *ObjectMetadata) GetExpiresDate() string

func (*ObjectMetadata) GetLastModifiedDate

func (x *ObjectMetadata) GetLastModifiedDate() string

func (*ObjectMetadata) GetMetadata

func (x *ObjectMetadata) GetMetadata() map[string]string

func (*ObjectMetadata) GetName

func (x *ObjectMetadata) GetName() string

func (*ObjectMetadata) GetObjectAcl

func (x *ObjectMetadata) GetObjectAcl() []*Access

func (*ObjectMetadata) GetObjectSizeInBytes

func (x *ObjectMetadata) GetObjectSizeInBytes() int32

func (*ObjectMetadata) GetObjectTags

func (x *ObjectMetadata) GetObjectTags() map[string]string

func (*ObjectMetadata) GetRedirectLocation

func (x *ObjectMetadata) GetRedirectLocation() string

func (*ObjectMetadata) GetReplicationStatus

func (x *ObjectMetadata) GetReplicationStatus() string

func (*ObjectMetadata) GetServerSideEncryption

func (x *ObjectMetadata) GetServerSideEncryption() string

func (*ObjectMetadata) GetStorageClass

func (x *ObjectMetadata) GetStorageClass() string

func (*ObjectMetadata) GetType

func (x *ObjectMetadata) GetType() string

func (*ObjectMetadata) GetVersionId

func (x *ObjectMetadata) GetVersionId() string

func (*ObjectMetadata) ProtoMessage

func (*ObjectMetadata) ProtoMessage()

func (*ObjectMetadata) ProtoReflect

func (x *ObjectMetadata) ProtoReflect() protoreflect.Message

func (*ObjectMetadata) Reset

func (x *ObjectMetadata) Reset()

func (*ObjectMetadata) String

func (x *ObjectMetadata) String() string

type SyncMetadataRequest

type SyncMetadataRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*SyncMetadataRequest) Descriptor deprecated

func (*SyncMetadataRequest) Descriptor() ([]byte, []int)

Deprecated: Use SyncMetadataRequest.ProtoReflect.Descriptor instead.

func (*SyncMetadataRequest) GetId

func (x *SyncMetadataRequest) GetId() string

func (*SyncMetadataRequest) ProtoMessage

func (*SyncMetadataRequest) ProtoMessage()

func (*SyncMetadataRequest) ProtoReflect

func (x *SyncMetadataRequest) ProtoReflect() protoreflect.Message

func (*SyncMetadataRequest) Reset

func (x *SyncMetadataRequest) Reset()

func (*SyncMetadataRequest) String

func (x *SyncMetadataRequest) String() string

type SyncMetadataResponse

type SyncMetadataResponse struct {
	MetadataDetail []*MetadataDetail `protobuf:"bytes,1,rep,name=MetadataDetail,proto3" json:"MetadataDetail,omitempty"`
	// contains filtered or unexported fields
}

func (*SyncMetadataResponse) Descriptor deprecated

func (*SyncMetadataResponse) Descriptor() ([]byte, []int)

Deprecated: Use SyncMetadataResponse.ProtoReflect.Descriptor instead.

func (*SyncMetadataResponse) GetMetadataDetail

func (x *SyncMetadataResponse) GetMetadataDetail() []*MetadataDetail

func (*SyncMetadataResponse) ProtoMessage

func (*SyncMetadataResponse) ProtoMessage()

func (*SyncMetadataResponse) ProtoReflect

func (x *SyncMetadataResponse) ProtoReflect() protoreflect.Message

func (*SyncMetadataResponse) Reset

func (x *SyncMetadataResponse) Reset()

func (*SyncMetadataResponse) String

func (x *SyncMetadataResponse) String() string

Jump to

Keyboard shortcuts

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