v1

package
v0.5.352 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_github_com_metaprov_modelaapi_services_objectstored_v1_objectstored_proto protoreflect.FileDescriptor
View Source
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 (*ExistInVirtualBucketResponse) Reset

func (x *ExistInVirtualBucketResponse) Reset()

func (*ExistInVirtualBucketResponse) 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.

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

func (UnimplementedObjectstoreServiceServer) Ingest

func (UnimplementedObjectstoreServiceServer) Recover

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.

Jump to

Keyboard shortcuts

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