Documentation
¶
Index ¶
- Variables
- func RegisterObjectstoreServiceServer(s grpc.ServiceRegistrar, srv ObjectstoreServiceServer)
- type ExistInVirtualBucketResponse
- func (*ExistInVirtualBucketResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ExistInVirtualBucketResponse) GetExist() bool
- func (*ExistInVirtualBucketResponse) ProtoMessage()
- func (x *ExistInVirtualBucketResponse) ProtoReflect() protoreflect.Message
- func (x *ExistInVirtualBucketResponse) Reset()
- func (x *ExistInVirtualBucketResponse) String() string
- type IngestResponse
- type ObjectRequest
- func (*ObjectRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ObjectRequest) GetBucket() *v1alpha1.VirtualBucket
- func (x *ObjectRequest) GetConnection() *v1alpha1.Connection
- func (x *ObjectRequest) GetKey() string
- func (x *ObjectRequest) GetSecret() map[string][]byte
- func (*ObjectRequest) ProtoMessage()
- func (x *ObjectRequest) ProtoReflect() protoreflect.Message
- func (x *ObjectRequest) Reset()
- func (x *ObjectRequest) String() string
- type ObjectResponse
- type ObjectstoreServiceClient
- type ObjectstoreServiceServer
- type UnimplementedObjectstoreServiceServer
- func (UnimplementedObjectstoreServiceServer) Archive(context.Context, *ObjectRequest) (*ObjectResponse, error)
- func (UnimplementedObjectstoreServiceServer) ExistInVirtualBucket(context.Context, *ObjectRequest) (*ExistInVirtualBucketResponse, error)
- func (UnimplementedObjectstoreServiceServer) Ingest(context.Context, *ObjectRequest) (*ObjectResponse, error)
- func (UnimplementedObjectstoreServiceServer) Recover(context.Context, *ObjectRequest) (*ObjectResponse, error)
- type UnsafeObjectstoreServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_github_com_metaprov_modelaapi_services_objectstored_v1_objectstored_proto protoreflect.FileDescriptor
var ObjectstoreService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "github.com.metaprov.modelaapi.services.objectstored.v1.ObjectstoreService", HandlerType: (*ObjectstoreServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Ingest", Handler: _ObjectstoreService_Ingest_Handler, }, { MethodName: "Archive", Handler: _ObjectstoreService_Archive_Handler, }, { MethodName: "Recover", Handler: _ObjectstoreService_Recover_Handler, }, { MethodName: "ExistInVirtualBucket", Handler: _ObjectstoreService_ExistInVirtualBucket_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "github.com/metaprov/modelaapi/services/objectstored/v1/objectstored.proto", }
ObjectstoreService_ServiceDesc is the grpc.ServiceDesc for ObjectstoreService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterObjectstoreServiceServer ¶
func RegisterObjectstoreServiceServer(s grpc.ServiceRegistrar, srv ObjectstoreServiceServer)
Types ¶
type ExistInVirtualBucketResponse ¶
type ExistInVirtualBucketResponse struct { Exist bool `protobuf:"varint,1,opt,name=exist,proto3" json:"exist,omitempty"` // contains filtered or unexported fields }
func (*ExistInVirtualBucketResponse) Descriptor
deprecated
func (*ExistInVirtualBucketResponse) Descriptor() ([]byte, []int)
Deprecated: Use ExistInVirtualBucketResponse.ProtoReflect.Descriptor instead.
func (*ExistInVirtualBucketResponse) GetExist ¶
func (x *ExistInVirtualBucketResponse) GetExist() bool
func (*ExistInVirtualBucketResponse) ProtoMessage ¶
func (*ExistInVirtualBucketResponse) ProtoMessage()
func (*ExistInVirtualBucketResponse) ProtoReflect ¶
func (x *ExistInVirtualBucketResponse) ProtoReflect() protoreflect.Message
func (*ExistInVirtualBucketResponse) Reset ¶
func (x *ExistInVirtualBucketResponse) Reset()
func (*ExistInVirtualBucketResponse) String ¶
func (x *ExistInVirtualBucketResponse) String() string
type IngestResponse ¶
type IngestResponse struct { LiveKey string `protobuf:"bytes,1,opt,name=liveKey,proto3" json:"liveKey,omitempty"` // the new live key // contains filtered or unexported fields }
func (*IngestResponse) Descriptor
deprecated
func (*IngestResponse) Descriptor() ([]byte, []int)
Deprecated: Use IngestResponse.ProtoReflect.Descriptor instead.
func (*IngestResponse) GetLiveKey ¶
func (x *IngestResponse) GetLiveKey() string
func (*IngestResponse) ProtoMessage ¶
func (*IngestResponse) ProtoMessage()
func (*IngestResponse) ProtoReflect ¶
func (x *IngestResponse) ProtoReflect() protoreflect.Message
func (*IngestResponse) Reset ¶
func (x *IngestResponse) Reset()
func (*IngestResponse) String ¶
func (x *IngestResponse) String() string
type ObjectRequest ¶
type ObjectRequest struct { Bucket *v1alpha1.VirtualBucket `protobuf:"bytes,1,opt,name=bucket,proto3" json:"bucket,omitempty"` Connection *v1alpha1.Connection `protobuf:"bytes,2,opt,name=connection,proto3" json:"connection,omitempty"` Secret map[string][]byte `` /* 153-byte string literal not displayed */ Key string `protobuf:"bytes,7,opt,name=key,proto3" json:"key,omitempty"` // the depot location of the object // contains filtered or unexported fields }
A request to recover archived object from the archive into the depot.
func (*ObjectRequest) Descriptor
deprecated
func (*ObjectRequest) Descriptor() ([]byte, []int)
Deprecated: Use ObjectRequest.ProtoReflect.Descriptor instead.
func (*ObjectRequest) GetBucket ¶
func (x *ObjectRequest) GetBucket() *v1alpha1.VirtualBucket
func (*ObjectRequest) GetConnection ¶
func (x *ObjectRequest) GetConnection() *v1alpha1.Connection
func (*ObjectRequest) GetKey ¶
func (x *ObjectRequest) GetKey() string
func (*ObjectRequest) GetSecret ¶
func (x *ObjectRequest) GetSecret() map[string][]byte
func (*ObjectRequest) ProtoMessage ¶
func (*ObjectRequest) ProtoMessage()
func (*ObjectRequest) ProtoReflect ¶
func (x *ObjectRequest) ProtoReflect() protoreflect.Message
func (*ObjectRequest) Reset ¶
func (x *ObjectRequest) Reset()
func (*ObjectRequest) String ¶
func (x *ObjectRequest) String() string
type ObjectResponse ¶
type ObjectResponse struct { ArchivePath string `protobuf:"bytes,1,opt,name=archivePath,proto3" json:"archivePath,omitempty"` // contains filtered or unexported fields }
func (*ObjectResponse) Descriptor
deprecated
func (*ObjectResponse) Descriptor() ([]byte, []int)
Deprecated: Use ObjectResponse.ProtoReflect.Descriptor instead.
func (*ObjectResponse) GetArchivePath ¶
func (x *ObjectResponse) GetArchivePath() string
func (*ObjectResponse) ProtoMessage ¶
func (*ObjectResponse) ProtoMessage()
func (*ObjectResponse) ProtoReflect ¶
func (x *ObjectResponse) ProtoReflect() protoreflect.Message
func (*ObjectResponse) Reset ¶
func (x *ObjectResponse) Reset()
func (*ObjectResponse) String ¶
func (x *ObjectResponse) String() string
type ObjectstoreServiceClient ¶
type ObjectstoreServiceClient interface { // Ingest a new dataset to the store, the store creates a new layouts and set of keys // for the new dataset Ingest(ctx context.Context, in *ObjectRequest, opts ...grpc.CallOption) (*ObjectResponse, error) // Delete a dataset from the store. Datasets are not deleted but moved to archive mode Archive(ctx context.Context, in *ObjectRequest, opts ...grpc.CallOption) (*ObjectResponse, error) // Recover an item from the archive into the depot Recover(ctx context.Context, in *ObjectRequest, opts ...grpc.CallOption) (*ObjectResponse, error) // Check if a dataset exist in bucket ExistInVirtualBucket(ctx context.Context, in *ObjectRequest, opts ...grpc.CallOption) (*ExistInVirtualBucketResponse, error) }
ObjectstoreServiceClient is the client API for ObjectstoreService 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 NewObjectstoreServiceClient ¶
func NewObjectstoreServiceClient(cc grpc.ClientConnInterface) ObjectstoreServiceClient
type ObjectstoreServiceServer ¶
type ObjectstoreServiceServer interface { // Ingest a new dataset to the store, the store creates a new layouts and set of keys // for the new dataset Ingest(context.Context, *ObjectRequest) (*ObjectResponse, error) // Delete a dataset from the store. Datasets are not deleted but moved to archive mode Archive(context.Context, *ObjectRequest) (*ObjectResponse, error) // Recover an item from the archive into the depot Recover(context.Context, *ObjectRequest) (*ObjectResponse, error) // Check if a dataset exist in bucket ExistInVirtualBucket(context.Context, *ObjectRequest) (*ExistInVirtualBucketResponse, error) // contains filtered or unexported methods }
ObjectstoreServiceServer is the server API for ObjectstoreService service. All implementations must embed UnimplementedObjectstoreServiceServer for forward compatibility
type UnimplementedObjectstoreServiceServer ¶
type UnimplementedObjectstoreServiceServer struct { }
UnimplementedObjectstoreServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedObjectstoreServiceServer) Archive ¶
func (UnimplementedObjectstoreServiceServer) Archive(context.Context, *ObjectRequest) (*ObjectResponse, error)
func (UnimplementedObjectstoreServiceServer) ExistInVirtualBucket ¶
func (UnimplementedObjectstoreServiceServer) ExistInVirtualBucket(context.Context, *ObjectRequest) (*ExistInVirtualBucketResponse, error)
func (UnimplementedObjectstoreServiceServer) Ingest ¶
func (UnimplementedObjectstoreServiceServer) Ingest(context.Context, *ObjectRequest) (*ObjectResponse, error)
func (UnimplementedObjectstoreServiceServer) Recover ¶
func (UnimplementedObjectstoreServiceServer) Recover(context.Context, *ObjectRequest) (*ObjectResponse, error)
type UnsafeObjectstoreServiceServer ¶ added in v0.4.687
type UnsafeObjectstoreServiceServer interface {
// contains filtered or unexported methods
}
UnsafeObjectstoreServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ObjectstoreServiceServer will result in compilation errors.