Documentation
¶
Index ¶
- Variables
- func RegisterMetadataServer(s grpc.ServiceRegistrar, srv MetadataServer)
- type GetFoldersRequest
- func (*GetFoldersRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetFoldersRequest) GetFrom() string
- func (x *GetFoldersRequest) GetLimit() int32
- func (x *GetFoldersRequest) GetStorageId() string
- func (*GetFoldersRequest) ProtoMessage()
- func (x *GetFoldersRequest) ProtoReflect() protoreflect.Message
- func (x *GetFoldersRequest) Reset()
- func (x *GetFoldersRequest) String() string
- type GetFoldersResponse
- func (*GetFoldersResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetFoldersResponse) GetFolders() []string
- func (*GetFoldersResponse) ProtoMessage()
- func (x *GetFoldersResponse) ProtoReflect() protoreflect.Message
- func (x *GetFoldersResponse) Reset()
- func (x *GetFoldersResponse) String() string
- type GetModificationTimeRequest
- func (*GetModificationTimeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetModificationTimeRequest) GetObjectPath() string
- func (x *GetModificationTimeRequest) GetStorageId() string
- func (*GetModificationTimeRequest) ProtoMessage()
- func (x *GetModificationTimeRequest) ProtoReflect() protoreflect.Message
- func (x *GetModificationTimeRequest) Reset()
- func (x *GetModificationTimeRequest) String() string
- type GetModificationTimeResponse
- func (*GetModificationTimeResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetModificationTimeResponse) GetModificationTime() int64
- func (*GetModificationTimeResponse) ProtoMessage()
- func (x *GetModificationTimeResponse) ProtoReflect() protoreflect.Message
- func (x *GetModificationTimeResponse) Reset()
- func (x *GetModificationTimeResponse) String() string
- type GetModificationTimesRequest
- func (*GetModificationTimesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetModificationTimesRequest) GetFolderPath() string
- func (x *GetModificationTimesRequest) GetStorageId() string
- func (*GetModificationTimesRequest) ProtoMessage()
- func (x *GetModificationTimesRequest) ProtoReflect() protoreflect.Message
- func (x *GetModificationTimesRequest) Reset()
- func (x *GetModificationTimesRequest) String() string
- type GetModificationTimesResponse
- func (*GetModificationTimesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetModificationTimesResponse) GetPairs() map[string]int64
- func (*GetModificationTimesResponse) ProtoMessage()
- func (x *GetModificationTimesResponse) ProtoReflect() protoreflect.Message
- func (x *GetModificationTimesResponse) Reset()
- func (x *GetModificationTimesResponse) String() string
- type MetadataClient
- type MetadataServer
- type RemoveMetadataRequest
- func (*RemoveMetadataRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RemoveMetadataRequest) GetObjectPath() string
- func (x *RemoveMetadataRequest) GetStorageId() string
- func (*RemoveMetadataRequest) ProtoMessage()
- func (x *RemoveMetadataRequest) ProtoReflect() protoreflect.Message
- func (x *RemoveMetadataRequest) Reset()
- func (x *RemoveMetadataRequest) String() string
- type SetModificationTimeRequest
- func (*SetModificationTimeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetModificationTimeRequest) GetModificationTime() int64
- func (x *SetModificationTimeRequest) GetObjectPath() string
- func (x *SetModificationTimeRequest) GetStorageId() string
- func (*SetModificationTimeRequest) ProtoMessage()
- func (x *SetModificationTimeRequest) ProtoReflect() protoreflect.Message
- func (x *SetModificationTimeRequest) Reset()
- func (x *SetModificationTimeRequest) String() string
- type UnimplementedMetadataServer
- func (UnimplementedMetadataServer) GetFolders(context.Context, *GetFoldersRequest) (*GetFoldersResponse, error)
- func (UnimplementedMetadataServer) GetModificationTime(context.Context, *GetModificationTimeRequest) (*GetModificationTimeResponse, error)
- func (UnimplementedMetadataServer) GetModificationTimes(context.Context, *GetModificationTimesRequest) (*GetModificationTimesResponse, error)
- func (UnimplementedMetadataServer) RemoveMetadata(context.Context, *RemoveMetadataRequest) (*emptypb.Empty, error)
- func (UnimplementedMetadataServer) SetModificationTime(context.Context, *SetModificationTimeRequest) (*emptypb.Empty, error)
- type UnsafeMetadataServer
Constants ¶
This section is empty.
Variables ¶
var File_metadata_proto_metadata_proto protoreflect.FileDescriptor
var Metadata_ServiceDesc = grpc.ServiceDesc{ ServiceName: "proto.Metadata", HandlerType: (*MetadataServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SetModificationTime", Handler: _Metadata_SetModificationTime_Handler, }, { MethodName: "GetModificationTime", Handler: _Metadata_GetModificationTime_Handler, }, { MethodName: "GetModificationTimes", Handler: _Metadata_GetModificationTimes_Handler, }, { MethodName: "RemoveMetadata", Handler: _Metadata_RemoveMetadata_Handler, }, { MethodName: "GetFolders", Handler: _Metadata_GetFolders_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "metadata/proto/metadata.proto", }
Metadata_ServiceDesc is the grpc.ServiceDesc for Metadata service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterMetadataServer ¶
func RegisterMetadataServer(s grpc.ServiceRegistrar, srv MetadataServer)
Types ¶
type GetFoldersRequest ¶
type GetFoldersRequest struct {
StorageId string `protobuf:"bytes,1,opt,name=storage_id,json=storageId,proto3" json:"storage_id,omitempty"`
Limit int32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
From string `protobuf:"bytes,3,opt,name=from,proto3" json:"from,omitempty"`
// contains filtered or unexported fields
}
func (*GetFoldersRequest) Descriptor
deprecated
func (*GetFoldersRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetFoldersRequest.ProtoReflect.Descriptor instead.
func (*GetFoldersRequest) GetFrom ¶
func (x *GetFoldersRequest) GetFrom() string
func (*GetFoldersRequest) GetLimit ¶
func (x *GetFoldersRequest) GetLimit() int32
func (*GetFoldersRequest) GetStorageId ¶
func (x *GetFoldersRequest) GetStorageId() string
func (*GetFoldersRequest) ProtoMessage ¶
func (*GetFoldersRequest) ProtoMessage()
func (*GetFoldersRequest) ProtoReflect ¶
func (x *GetFoldersRequest) ProtoReflect() protoreflect.Message
func (*GetFoldersRequest) Reset ¶
func (x *GetFoldersRequest) Reset()
func (*GetFoldersRequest) String ¶
func (x *GetFoldersRequest) String() string
type GetFoldersResponse ¶
type GetFoldersResponse struct {
Folders []string `protobuf:"bytes,1,rep,name=folders,proto3" json:"folders,omitempty"`
// contains filtered or unexported fields
}
func (*GetFoldersResponse) Descriptor
deprecated
func (*GetFoldersResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetFoldersResponse.ProtoReflect.Descriptor instead.
func (*GetFoldersResponse) GetFolders ¶
func (x *GetFoldersResponse) GetFolders() []string
func (*GetFoldersResponse) ProtoMessage ¶
func (*GetFoldersResponse) ProtoMessage()
func (*GetFoldersResponse) ProtoReflect ¶
func (x *GetFoldersResponse) ProtoReflect() protoreflect.Message
func (*GetFoldersResponse) Reset ¶
func (x *GetFoldersResponse) Reset()
func (*GetFoldersResponse) String ¶
func (x *GetFoldersResponse) String() string
type GetModificationTimeRequest ¶
type GetModificationTimeRequest struct {
StorageId string `protobuf:"bytes,1,opt,name=storage_id,json=storageId,proto3" json:"storage_id,omitempty"`
ObjectPath string `protobuf:"bytes,2,opt,name=object_path,json=objectPath,proto3" json:"object_path,omitempty"`
// contains filtered or unexported fields
}
func (*GetModificationTimeRequest) Descriptor
deprecated
func (*GetModificationTimeRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetModificationTimeRequest.ProtoReflect.Descriptor instead.
func (*GetModificationTimeRequest) GetObjectPath ¶
func (x *GetModificationTimeRequest) GetObjectPath() string
func (*GetModificationTimeRequest) GetStorageId ¶
func (x *GetModificationTimeRequest) GetStorageId() string
func (*GetModificationTimeRequest) ProtoMessage ¶
func (*GetModificationTimeRequest) ProtoMessage()
func (*GetModificationTimeRequest) ProtoReflect ¶
func (x *GetModificationTimeRequest) ProtoReflect() protoreflect.Message
func (*GetModificationTimeRequest) Reset ¶
func (x *GetModificationTimeRequest) Reset()
func (*GetModificationTimeRequest) String ¶
func (x *GetModificationTimeRequest) String() string
type GetModificationTimeResponse ¶
type GetModificationTimeResponse struct {
ModificationTime int64 `protobuf:"varint,1,opt,name=modification_time,json=modificationTime,proto3" json:"modification_time,omitempty"`
// contains filtered or unexported fields
}
func (*GetModificationTimeResponse) Descriptor
deprecated
func (*GetModificationTimeResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetModificationTimeResponse.ProtoReflect.Descriptor instead.
func (*GetModificationTimeResponse) GetModificationTime ¶
func (x *GetModificationTimeResponse) GetModificationTime() int64
func (*GetModificationTimeResponse) ProtoMessage ¶
func (*GetModificationTimeResponse) ProtoMessage()
func (*GetModificationTimeResponse) ProtoReflect ¶
func (x *GetModificationTimeResponse) ProtoReflect() protoreflect.Message
func (*GetModificationTimeResponse) Reset ¶
func (x *GetModificationTimeResponse) Reset()
func (*GetModificationTimeResponse) String ¶
func (x *GetModificationTimeResponse) String() string
type GetModificationTimesRequest ¶
type GetModificationTimesRequest struct {
StorageId string `protobuf:"bytes,1,opt,name=storage_id,json=storageId,proto3" json:"storage_id,omitempty"`
FolderPath string `protobuf:"bytes,2,opt,name=folder_path,json=folderPath,proto3" json:"folder_path,omitempty"`
// contains filtered or unexported fields
}
func (*GetModificationTimesRequest) Descriptor
deprecated
func (*GetModificationTimesRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetModificationTimesRequest.ProtoReflect.Descriptor instead.
func (*GetModificationTimesRequest) GetFolderPath ¶
func (x *GetModificationTimesRequest) GetFolderPath() string
func (*GetModificationTimesRequest) GetStorageId ¶
func (x *GetModificationTimesRequest) GetStorageId() string
func (*GetModificationTimesRequest) ProtoMessage ¶
func (*GetModificationTimesRequest) ProtoMessage()
func (*GetModificationTimesRequest) ProtoReflect ¶
func (x *GetModificationTimesRequest) ProtoReflect() protoreflect.Message
func (*GetModificationTimesRequest) Reset ¶
func (x *GetModificationTimesRequest) Reset()
func (*GetModificationTimesRequest) String ¶
func (x *GetModificationTimesRequest) String() string
type GetModificationTimesResponse ¶
type GetModificationTimesResponse struct {
// the file name (not the full path) is the map key and the modification time is the map value
Pairs map[string]int64 `` /* 152-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*GetModificationTimesResponse) Descriptor
deprecated
func (*GetModificationTimesResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetModificationTimesResponse.ProtoReflect.Descriptor instead.
func (*GetModificationTimesResponse) GetPairs ¶
func (x *GetModificationTimesResponse) GetPairs() map[string]int64
func (*GetModificationTimesResponse) ProtoMessage ¶
func (*GetModificationTimesResponse) ProtoMessage()
func (*GetModificationTimesResponse) ProtoReflect ¶
func (x *GetModificationTimesResponse) ProtoReflect() protoreflect.Message
func (*GetModificationTimesResponse) Reset ¶
func (x *GetModificationTimesResponse) Reset()
func (*GetModificationTimesResponse) String ¶
func (x *GetModificationTimesResponse) String() string
type MetadataClient ¶
type MetadataClient interface {
SetModificationTime(ctx context.Context, in *SetModificationTimeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
GetModificationTime(ctx context.Context, in *GetModificationTimeRequest, opts ...grpc.CallOption) (*GetModificationTimeResponse, error)
GetModificationTimes(ctx context.Context, in *GetModificationTimesRequest, opts ...grpc.CallOption) (*GetModificationTimesResponse, error)
RemoveMetadata(ctx context.Context, in *RemoveMetadataRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
GetFolders(ctx context.Context, in *GetFoldersRequest, opts ...grpc.CallOption) (*GetFoldersResponse, error)
}
MetadataClient is the client API for Metadata service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewMetadataClient ¶
func NewMetadataClient(cc grpc.ClientConnInterface) MetadataClient
type MetadataServer ¶
type MetadataServer interface {
SetModificationTime(context.Context, *SetModificationTimeRequest) (*emptypb.Empty, error)
GetModificationTime(context.Context, *GetModificationTimeRequest) (*GetModificationTimeResponse, error)
GetModificationTimes(context.Context, *GetModificationTimesRequest) (*GetModificationTimesResponse, error)
RemoveMetadata(context.Context, *RemoveMetadataRequest) (*emptypb.Empty, error)
GetFolders(context.Context, *GetFoldersRequest) (*GetFoldersResponse, error)
}
MetadataServer is the server API for Metadata service. All implementations should embed UnimplementedMetadataServer for forward compatibility
type RemoveMetadataRequest ¶
type RemoveMetadataRequest struct {
StorageId string `protobuf:"bytes,1,opt,name=storage_id,json=storageId,proto3" json:"storage_id,omitempty"`
ObjectPath string `protobuf:"bytes,2,opt,name=object_path,json=objectPath,proto3" json:"object_path,omitempty"`
// contains filtered or unexported fields
}
func (*RemoveMetadataRequest) Descriptor
deprecated
func (*RemoveMetadataRequest) Descriptor() ([]byte, []int)
Deprecated: Use RemoveMetadataRequest.ProtoReflect.Descriptor instead.
func (*RemoveMetadataRequest) GetObjectPath ¶
func (x *RemoveMetadataRequest) GetObjectPath() string
func (*RemoveMetadataRequest) GetStorageId ¶
func (x *RemoveMetadataRequest) GetStorageId() string
func (*RemoveMetadataRequest) ProtoMessage ¶
func (*RemoveMetadataRequest) ProtoMessage()
func (*RemoveMetadataRequest) ProtoReflect ¶
func (x *RemoveMetadataRequest) ProtoReflect() protoreflect.Message
func (*RemoveMetadataRequest) Reset ¶
func (x *RemoveMetadataRequest) Reset()
func (*RemoveMetadataRequest) String ¶
func (x *RemoveMetadataRequest) String() string
type SetModificationTimeRequest ¶
type SetModificationTimeRequest struct {
StorageId string `protobuf:"bytes,1,opt,name=storage_id,json=storageId,proto3" json:"storage_id,omitempty"`
ObjectPath string `protobuf:"bytes,2,opt,name=object_path,json=objectPath,proto3" json:"object_path,omitempty"`
ModificationTime int64 `protobuf:"varint,3,opt,name=modification_time,json=modificationTime,proto3" json:"modification_time,omitempty"`
// contains filtered or unexported fields
}
func (*SetModificationTimeRequest) Descriptor
deprecated
func (*SetModificationTimeRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetModificationTimeRequest.ProtoReflect.Descriptor instead.
func (*SetModificationTimeRequest) GetModificationTime ¶
func (x *SetModificationTimeRequest) GetModificationTime() int64
func (*SetModificationTimeRequest) GetObjectPath ¶
func (x *SetModificationTimeRequest) GetObjectPath() string
func (*SetModificationTimeRequest) GetStorageId ¶
func (x *SetModificationTimeRequest) GetStorageId() string
func (*SetModificationTimeRequest) ProtoMessage ¶
func (*SetModificationTimeRequest) ProtoMessage()
func (*SetModificationTimeRequest) ProtoReflect ¶
func (x *SetModificationTimeRequest) ProtoReflect() protoreflect.Message
func (*SetModificationTimeRequest) Reset ¶
func (x *SetModificationTimeRequest) Reset()
func (*SetModificationTimeRequest) String ¶
func (x *SetModificationTimeRequest) String() string
type UnimplementedMetadataServer ¶
type UnimplementedMetadataServer struct {
}
UnimplementedMetadataServer should be embedded to have forward compatible implementations.
func (UnimplementedMetadataServer) GetFolders ¶
func (UnimplementedMetadataServer) GetFolders(context.Context, *GetFoldersRequest) (*GetFoldersResponse, error)
func (UnimplementedMetadataServer) GetModificationTime ¶
func (UnimplementedMetadataServer) GetModificationTime(context.Context, *GetModificationTimeRequest) (*GetModificationTimeResponse, error)
func (UnimplementedMetadataServer) GetModificationTimes ¶
func (UnimplementedMetadataServer) GetModificationTimes(context.Context, *GetModificationTimesRequest) (*GetModificationTimesResponse, error)
func (UnimplementedMetadataServer) RemoveMetadata ¶
func (UnimplementedMetadataServer) RemoveMetadata(context.Context, *RemoveMetadataRequest) (*emptypb.Empty, error)
func (UnimplementedMetadataServer) SetModificationTime ¶
func (UnimplementedMetadataServer) SetModificationTime(context.Context, *SetModificationTimeRequest) (*emptypb.Empty, error)
type UnsafeMetadataServer ¶ added in v0.1.3
type UnsafeMetadataServer interface {
// contains filtered or unexported methods
}
UnsafeMetadataServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MetadataServer will result in compilation errors.