Documentation
¶
Index ¶
- Variables
- func RegisterCompatibilityServiceServer(s grpc.ServiceRegistrar, srv CompatibilityServiceServer)
- type CompatRequest
- func (*CompatRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CompatRequest) GetPayload() string
- func (x *CompatRequest) GetUri() string
- func (*CompatRequest) ProtoMessage()
- func (x *CompatRequest) ProtoReflect() protoreflect.Message
- func (x *CompatRequest) Reset()
- func (x *CompatRequest) String() string
- type CompatibilityServiceClient
- type CompatibilityServiceServer
- type Response
- func (*Response) Descriptor() ([]byte, []int)deprecated
- func (x *Response) GetCompatible() bool
- func (x *Response) GetPayload() string
- func (x *Response) GetStatus() Response_ResultType
- func (*Response) ProtoMessage()
- func (x *Response) ProtoReflect() protoreflect.Message
- func (x *Response) Reset()
- func (x *Response) String() string
- type Response_ResultType
- func (Response_ResultType) Descriptor() protoreflect.EnumDescriptor
- func (x Response_ResultType) Enum() *Response_ResultType
- func (Response_ResultType) EnumDescriptor() ([]byte, []int)deprecated
- func (x Response_ResultType) Number() protoreflect.EnumNumber
- func (x Response_ResultType) String() string
- func (Response_ResultType) Type() protoreflect.EnumType
- type UnimplementedCompatibilityServiceServer
- type UnsafeCompatibilityServiceServer
Constants ¶
This section is empty.
Variables ¶
var ( Response_ResultType_name = map[int32]string{ 0: "UNSPECIFIED", 1: "SUCCESS", 2: "ERROR", 3: "DENIED", } Response_ResultType_value = map[string]int32{ "UNSPECIFIED": 0, "SUCCESS": 1, "ERROR": 2, "DENIED": 3, } )
Enum value maps for Response_ResultType.
var CompatibilityService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "convergedcomputing.org.grpc.v1.CompatibilityService", HandlerType: (*CompatibilityServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CheckCompatibility", Handler: _CompatibilityService_CheckCompatibility_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "protos/compatibility.proto", }
CompatibilityService_ServiceDesc is the grpc.ServiceDesc for CompatibilityService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_protos_compatibility_proto protoreflect.FileDescriptor
Functions ¶
func RegisterCompatibilityServiceServer ¶
func RegisterCompatibilityServiceServer(s grpc.ServiceRegistrar, srv CompatibilityServiceServer)
Types ¶
type CompatRequest ¶
type CompatRequest struct { Payload string `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` Uri string `protobuf:"bytes,2,opt,name=uri,proto3" json:"uri,omitempty"` // contains filtered or unexported fields }
A CompatRequest compares a requesting application compatibility metadata with a host node The request can provide the entire artifact as a payload, or a URI to retrieve from a registry
func (*CompatRequest) Descriptor
deprecated
func (*CompatRequest) Descriptor() ([]byte, []int)
Deprecated: Use CompatRequest.ProtoReflect.Descriptor instead.
func (*CompatRequest) GetPayload ¶
func (x *CompatRequest) GetPayload() string
func (*CompatRequest) GetUri ¶
func (x *CompatRequest) GetUri() string
func (*CompatRequest) ProtoMessage ¶
func (*CompatRequest) ProtoMessage()
func (*CompatRequest) ProtoReflect ¶
func (x *CompatRequest) ProtoReflect() protoreflect.Message
func (*CompatRequest) Reset ¶
func (x *CompatRequest) Reset()
func (*CompatRequest) String ¶
func (x *CompatRequest) String() string
type CompatibilityServiceClient ¶
type CompatibilityServiceClient interface {
CheckCompatibility(ctx context.Context, in *CompatRequest, opts ...grpc.CallOption) (*Response, error)
}
CompatibilityServiceClient is the client API for CompatibilityService 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 NewCompatibilityServiceClient ¶
func NewCompatibilityServiceClient(cc grpc.ClientConnInterface) CompatibilityServiceClient
type CompatibilityServiceServer ¶
type CompatibilityServiceServer interface { CheckCompatibility(context.Context, *CompatRequest) (*Response, error) // contains filtered or unexported methods }
CompatibilityServiceServer is the server API for CompatibilityService service. All implementations must embed UnimplementedCompatibilityServiceServer for forward compatibility
type Response ¶
type Response struct { Payload string `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` Compatible bool `protobuf:"varint,2,opt,name=compatible,proto3" json:"compatible,omitempty"` Status Response_ResultType `protobuf:"varint,3,opt,name=status,proto3,enum=convergedcomputing.org.grpc.v1.Response_ResultType" json:"status,omitempty"` // contains filtered or unexported fields }
func (*Response) Descriptor
deprecated
func (*Response) GetCompatible ¶
func (*Response) GetPayload ¶
func (*Response) GetStatus ¶
func (x *Response) GetStatus() Response_ResultType
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
type Response_ResultType ¶
type Response_ResultType int32
Registration statuses
const ( Response_UNSPECIFIED Response_ResultType = 0 Response_SUCCESS Response_ResultType = 1 Response_ERROR Response_ResultType = 2 Response_DENIED Response_ResultType = 3 )
func (Response_ResultType) Descriptor ¶
func (Response_ResultType) Descriptor() protoreflect.EnumDescriptor
func (Response_ResultType) Enum ¶
func (x Response_ResultType) Enum() *Response_ResultType
func (Response_ResultType) EnumDescriptor
deprecated
func (Response_ResultType) EnumDescriptor() ([]byte, []int)
Deprecated: Use Response_ResultType.Descriptor instead.
func (Response_ResultType) Number ¶
func (x Response_ResultType) Number() protoreflect.EnumNumber
func (Response_ResultType) String ¶
func (x Response_ResultType) String() string
func (Response_ResultType) Type ¶
func (Response_ResultType) Type() protoreflect.EnumType
type UnimplementedCompatibilityServiceServer ¶
type UnimplementedCompatibilityServiceServer struct { }
UnimplementedCompatibilityServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedCompatibilityServiceServer) CheckCompatibility ¶
func (UnimplementedCompatibilityServiceServer) CheckCompatibility(context.Context, *CompatRequest) (*Response, error)
type UnsafeCompatibilityServiceServer ¶
type UnsafeCompatibilityServiceServer interface {
// contains filtered or unexported methods
}
UnsafeCompatibilityServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CompatibilityServiceServer will result in compilation errors.