mirror of
https://github.com/ultravioletrs/cocos.git
synced 2026-06-23 04:10:25 +00:00
5377dd4d7f
* Refactor mock interfaces to use 'any' instead of 'interface{}' for improved type safety and readability across multiple files in the manager and pkg directories.
Signed-off-by: Sammy Oina <sammyoina@gmail.com>
* Update Go version to 1.25.x in CI workflows and remove obsolete Go package files
Signed-off-by: Sammy Oina <sammyoina@gmail.com>
* Add mock implementations for various components in the attestation and SDK packages
- Created mock for MeasurementProvider in pkg/attestation/cmdconfig/mocks/mocks_test.go
- Created mock for Provider in pkg/attestation/mocks/mocks_test.go
- Created mock for Client in pkg/clients/grpc/mocks/mocks_test.go
- Created mock for SDK in pkg/sdk/mocks/mocks_test.go
These mocks are generated using mockery and are intended for unit testing purposes.
Signed-off-by: Sammy Oina <sammyoina@gmail.com>
* Remove autogenerated mock files and update mock usage in tests
- Deleted mocks for gRPC clients in pkg/clients/grpc/mocks/mocks_test.go and pkg/sdk/mocks/mocks_test.go.
- Updated test files in pkg/progressbar/progress_test.go to use the new mock structure without type parameters for gRPC client interfaces.
- Refactored mock generation in pkg/sdk/mocks/sdk.go to streamline the mock creation process and ensure consistency across mock methods.
Signed-off-by: Sammy Oina <sammyoina@gmail.com>
* Update protobuf generated files for events and manager
- Bump protoc-gen-go version from v1.36.5 to v1.36.8 in events.pb.go and manager.pb.go.
- Refactor raw descriptor definitions in events.pb.go and manager.pb.go to use string concatenation for better readability and maintainability.
- Ensure compatibility with the latest protobuf specifications and improve code generation consistency.
Signed-off-by: Sammy Oina <sammyoina@gmail.com>
* Update test commands to use GOTOOLCHAIN for consistent Go version handling
Signed-off-by: Sammy Oina <sammyoina@gmail.com>
* Fix GOTOOLCHAIN usage in test command for consistency
Signed-off-by: Sammy Oina <sammyoina@gmail.com>
---------
Signed-off-by: Sammy Oina <sammyoina@gmail.com>
682 lines
20 KiB
Go
682 lines
20 KiB
Go
// Copyright (c) Ultraviolet
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.8
|
|
// protoc v5.29.0
|
|
// source: agent/agent.proto
|
|
|
|
package agent
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
)
|
|
|
|
const (
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
)
|
|
|
|
type AlgoRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Algorithm []byte `protobuf:"bytes,1,opt,name=algorithm,proto3" json:"algorithm,omitempty"`
|
|
Requirements []byte `protobuf:"bytes,2,opt,name=requirements,proto3" json:"requirements,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *AlgoRequest) Reset() {
|
|
*x = AlgoRequest{}
|
|
mi := &file_agent_agent_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *AlgoRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*AlgoRequest) ProtoMessage() {}
|
|
|
|
func (x *AlgoRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_agent_agent_proto_msgTypes[0]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use AlgoRequest.ProtoReflect.Descriptor instead.
|
|
func (*AlgoRequest) Descriptor() ([]byte, []int) {
|
|
return file_agent_agent_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *AlgoRequest) GetAlgorithm() []byte {
|
|
if x != nil {
|
|
return x.Algorithm
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *AlgoRequest) GetRequirements() []byte {
|
|
if x != nil {
|
|
return x.Requirements
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type AlgoResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *AlgoResponse) Reset() {
|
|
*x = AlgoResponse{}
|
|
mi := &file_agent_agent_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *AlgoResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*AlgoResponse) ProtoMessage() {}
|
|
|
|
func (x *AlgoResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_agent_agent_proto_msgTypes[1]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use AlgoResponse.ProtoReflect.Descriptor instead.
|
|
func (*AlgoResponse) Descriptor() ([]byte, []int) {
|
|
return file_agent_agent_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
type DataRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Dataset []byte `protobuf:"bytes,1,opt,name=dataset,proto3" json:"dataset,omitempty"`
|
|
Filename string `protobuf:"bytes,2,opt,name=filename,proto3" json:"filename,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DataRequest) Reset() {
|
|
*x = DataRequest{}
|
|
mi := &file_agent_agent_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DataRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DataRequest) ProtoMessage() {}
|
|
|
|
func (x *DataRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_agent_agent_proto_msgTypes[2]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use DataRequest.ProtoReflect.Descriptor instead.
|
|
func (*DataRequest) Descriptor() ([]byte, []int) {
|
|
return file_agent_agent_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *DataRequest) GetDataset() []byte {
|
|
if x != nil {
|
|
return x.Dataset
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *DataRequest) GetFilename() string {
|
|
if x != nil {
|
|
return x.Filename
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type DataResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DataResponse) Reset() {
|
|
*x = DataResponse{}
|
|
mi := &file_agent_agent_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DataResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DataResponse) ProtoMessage() {}
|
|
|
|
func (x *DataResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_agent_agent_proto_msgTypes[3]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use DataResponse.ProtoReflect.Descriptor instead.
|
|
func (*DataResponse) Descriptor() ([]byte, []int) {
|
|
return file_agent_agent_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
type ResultRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ResultRequest) Reset() {
|
|
*x = ResultRequest{}
|
|
mi := &file_agent_agent_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ResultRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ResultRequest) ProtoMessage() {}
|
|
|
|
func (x *ResultRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_agent_agent_proto_msgTypes[4]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ResultRequest.ProtoReflect.Descriptor instead.
|
|
func (*ResultRequest) Descriptor() ([]byte, []int) {
|
|
return file_agent_agent_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
type ResultResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
File []byte `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ResultResponse) Reset() {
|
|
*x = ResultResponse{}
|
|
mi := &file_agent_agent_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ResultResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ResultResponse) ProtoMessage() {}
|
|
|
|
func (x *ResultResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_agent_agent_proto_msgTypes[5]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ResultResponse.ProtoReflect.Descriptor instead.
|
|
func (*ResultResponse) Descriptor() ([]byte, []int) {
|
|
return file_agent_agent_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *ResultResponse) GetFile() []byte {
|
|
if x != nil {
|
|
return x.File
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type AttestationRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
TeeNonce []byte `protobuf:"bytes,1,opt,name=teeNonce,proto3" json:"teeNonce,omitempty"` // Should be less or equal 64 bytes.
|
|
VtpmNonce []byte `protobuf:"bytes,2,opt,name=vtpmNonce,proto3" json:"vtpmNonce,omitempty"` // Should be less or equal 32 bytes.
|
|
Type int32 `protobuf:"varint,3,opt,name=type,proto3" json:"type,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *AttestationRequest) Reset() {
|
|
*x = AttestationRequest{}
|
|
mi := &file_agent_agent_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *AttestationRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*AttestationRequest) ProtoMessage() {}
|
|
|
|
func (x *AttestationRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_agent_agent_proto_msgTypes[6]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use AttestationRequest.ProtoReflect.Descriptor instead.
|
|
func (*AttestationRequest) Descriptor() ([]byte, []int) {
|
|
return file_agent_agent_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *AttestationRequest) GetTeeNonce() []byte {
|
|
if x != nil {
|
|
return x.TeeNonce
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *AttestationRequest) GetVtpmNonce() []byte {
|
|
if x != nil {
|
|
return x.VtpmNonce
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *AttestationRequest) GetType() int32 {
|
|
if x != nil {
|
|
return x.Type
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type AttestationResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
File []byte `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *AttestationResponse) Reset() {
|
|
*x = AttestationResponse{}
|
|
mi := &file_agent_agent_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *AttestationResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*AttestationResponse) ProtoMessage() {}
|
|
|
|
func (x *AttestationResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_agent_agent_proto_msgTypes[7]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use AttestationResponse.ProtoReflect.Descriptor instead.
|
|
func (*AttestationResponse) Descriptor() ([]byte, []int) {
|
|
return file_agent_agent_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
func (x *AttestationResponse) GetFile() []byte {
|
|
if x != nil {
|
|
return x.File
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type IMAMeasurementsRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *IMAMeasurementsRequest) Reset() {
|
|
*x = IMAMeasurementsRequest{}
|
|
mi := &file_agent_agent_proto_msgTypes[8]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *IMAMeasurementsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*IMAMeasurementsRequest) ProtoMessage() {}
|
|
|
|
func (x *IMAMeasurementsRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_agent_agent_proto_msgTypes[8]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use IMAMeasurementsRequest.ProtoReflect.Descriptor instead.
|
|
func (*IMAMeasurementsRequest) Descriptor() ([]byte, []int) {
|
|
return file_agent_agent_proto_rawDescGZIP(), []int{8}
|
|
}
|
|
|
|
type IMAMeasurementsResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
File []byte `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"`
|
|
Pcr10 []byte `protobuf:"bytes,2,opt,name=pcr10,proto3" json:"pcr10,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *IMAMeasurementsResponse) Reset() {
|
|
*x = IMAMeasurementsResponse{}
|
|
mi := &file_agent_agent_proto_msgTypes[9]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *IMAMeasurementsResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*IMAMeasurementsResponse) ProtoMessage() {}
|
|
|
|
func (x *IMAMeasurementsResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_agent_agent_proto_msgTypes[9]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use IMAMeasurementsResponse.ProtoReflect.Descriptor instead.
|
|
func (*IMAMeasurementsResponse) Descriptor() ([]byte, []int) {
|
|
return file_agent_agent_proto_rawDescGZIP(), []int{9}
|
|
}
|
|
|
|
func (x *IMAMeasurementsResponse) GetFile() []byte {
|
|
if x != nil {
|
|
return x.File
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *IMAMeasurementsResponse) GetPcr10() []byte {
|
|
if x != nil {
|
|
return x.Pcr10
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type AttestationTokenRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
TokenNonce []byte `protobuf:"bytes,1,opt,name=tokenNonce,proto3" json:"tokenNonce,omitempty"` // Should be less or equal 32 bytes
|
|
Type int32 `protobuf:"varint,3,opt,name=type,proto3" json:"type,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *AttestationTokenRequest) Reset() {
|
|
*x = AttestationTokenRequest{}
|
|
mi := &file_agent_agent_proto_msgTypes[10]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *AttestationTokenRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*AttestationTokenRequest) ProtoMessage() {}
|
|
|
|
func (x *AttestationTokenRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_agent_agent_proto_msgTypes[10]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use AttestationTokenRequest.ProtoReflect.Descriptor instead.
|
|
func (*AttestationTokenRequest) Descriptor() ([]byte, []int) {
|
|
return file_agent_agent_proto_rawDescGZIP(), []int{10}
|
|
}
|
|
|
|
func (x *AttestationTokenRequest) GetTokenNonce() []byte {
|
|
if x != nil {
|
|
return x.TokenNonce
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *AttestationTokenRequest) GetType() int32 {
|
|
if x != nil {
|
|
return x.Type
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type AttestationTokenResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
File []byte `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *AttestationTokenResponse) Reset() {
|
|
*x = AttestationTokenResponse{}
|
|
mi := &file_agent_agent_proto_msgTypes[11]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *AttestationTokenResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*AttestationTokenResponse) ProtoMessage() {}
|
|
|
|
func (x *AttestationTokenResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_agent_agent_proto_msgTypes[11]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use AttestationTokenResponse.ProtoReflect.Descriptor instead.
|
|
func (*AttestationTokenResponse) Descriptor() ([]byte, []int) {
|
|
return file_agent_agent_proto_rawDescGZIP(), []int{11}
|
|
}
|
|
|
|
func (x *AttestationTokenResponse) GetFile() []byte {
|
|
if x != nil {
|
|
return x.File
|
|
}
|
|
return nil
|
|
}
|
|
|
|
var File_agent_agent_proto protoreflect.FileDescriptor
|
|
|
|
const file_agent_agent_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x11agent/agent.proto\x12\x05agent\"O\n" +
|
|
"\vAlgoRequest\x12\x1c\n" +
|
|
"\talgorithm\x18\x01 \x01(\fR\talgorithm\x12\"\n" +
|
|
"\frequirements\x18\x02 \x01(\fR\frequirements\"\x0e\n" +
|
|
"\fAlgoResponse\"C\n" +
|
|
"\vDataRequest\x12\x18\n" +
|
|
"\adataset\x18\x01 \x01(\fR\adataset\x12\x1a\n" +
|
|
"\bfilename\x18\x02 \x01(\tR\bfilename\"\x0e\n" +
|
|
"\fDataResponse\"\x0f\n" +
|
|
"\rResultRequest\"$\n" +
|
|
"\x0eResultResponse\x12\x12\n" +
|
|
"\x04file\x18\x01 \x01(\fR\x04file\"b\n" +
|
|
"\x12AttestationRequest\x12\x1a\n" +
|
|
"\bteeNonce\x18\x01 \x01(\fR\bteeNonce\x12\x1c\n" +
|
|
"\tvtpmNonce\x18\x02 \x01(\fR\tvtpmNonce\x12\x12\n" +
|
|
"\x04type\x18\x03 \x01(\x05R\x04type\")\n" +
|
|
"\x13AttestationResponse\x12\x12\n" +
|
|
"\x04file\x18\x01 \x01(\fR\x04file\"\x18\n" +
|
|
"\x16IMAMeasurementsRequest\"C\n" +
|
|
"\x17IMAMeasurementsResponse\x12\x12\n" +
|
|
"\x04file\x18\x01 \x01(\fR\x04file\x12\x14\n" +
|
|
"\x05pcr10\x18\x02 \x01(\fR\x05pcr10\"M\n" +
|
|
"\x17AttestationTokenRequest\x12\x1e\n" +
|
|
"\n" +
|
|
"tokenNonce\x18\x01 \x01(\fR\n" +
|
|
"tokenNonce\x12\x12\n" +
|
|
"\x04type\x18\x03 \x01(\x05R\x04type\".\n" +
|
|
"\x18AttestationTokenResponse\x12\x12\n" +
|
|
"\x04file\x18\x01 \x01(\fR\x04file2\xaf\x03\n" +
|
|
"\fAgentService\x123\n" +
|
|
"\x04Algo\x12\x12.agent.AlgoRequest\x1a\x13.agent.AlgoResponse\"\x00(\x01\x123\n" +
|
|
"\x04Data\x12\x12.agent.DataRequest\x1a\x13.agent.DataResponse\"\x00(\x01\x129\n" +
|
|
"\x06Result\x12\x14.agent.ResultRequest\x1a\x15.agent.ResultResponse\"\x000\x01\x12H\n" +
|
|
"\vAttestation\x12\x19.agent.AttestationRequest\x1a\x1a.agent.AttestationResponse\"\x000\x01\x12T\n" +
|
|
"\x0fIMAMeasurements\x12\x1d.agent.IMAMeasurementsRequest\x1a\x1e.agent.IMAMeasurementsResponse\"\x000\x01\x12Z\n" +
|
|
"\x15AzureAttestationToken\x12\x1e.agent.AttestationTokenRequest\x1a\x1f.agent.AttestationTokenResponse\"\x00B\tZ\a./agentb\x06proto3"
|
|
|
|
var (
|
|
file_agent_agent_proto_rawDescOnce sync.Once
|
|
file_agent_agent_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_agent_agent_proto_rawDescGZIP() []byte {
|
|
file_agent_agent_proto_rawDescOnce.Do(func() {
|
|
file_agent_agent_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_agent_agent_proto_rawDesc), len(file_agent_agent_proto_rawDesc)))
|
|
})
|
|
return file_agent_agent_proto_rawDescData
|
|
}
|
|
|
|
var file_agent_agent_proto_msgTypes = make([]protoimpl.MessageInfo, 12)
|
|
var file_agent_agent_proto_goTypes = []any{
|
|
(*AlgoRequest)(nil), // 0: agent.AlgoRequest
|
|
(*AlgoResponse)(nil), // 1: agent.AlgoResponse
|
|
(*DataRequest)(nil), // 2: agent.DataRequest
|
|
(*DataResponse)(nil), // 3: agent.DataResponse
|
|
(*ResultRequest)(nil), // 4: agent.ResultRequest
|
|
(*ResultResponse)(nil), // 5: agent.ResultResponse
|
|
(*AttestationRequest)(nil), // 6: agent.AttestationRequest
|
|
(*AttestationResponse)(nil), // 7: agent.AttestationResponse
|
|
(*IMAMeasurementsRequest)(nil), // 8: agent.IMAMeasurementsRequest
|
|
(*IMAMeasurementsResponse)(nil), // 9: agent.IMAMeasurementsResponse
|
|
(*AttestationTokenRequest)(nil), // 10: agent.AttestationTokenRequest
|
|
(*AttestationTokenResponse)(nil), // 11: agent.AttestationTokenResponse
|
|
}
|
|
var file_agent_agent_proto_depIdxs = []int32{
|
|
0, // 0: agent.AgentService.Algo:input_type -> agent.AlgoRequest
|
|
2, // 1: agent.AgentService.Data:input_type -> agent.DataRequest
|
|
4, // 2: agent.AgentService.Result:input_type -> agent.ResultRequest
|
|
6, // 3: agent.AgentService.Attestation:input_type -> agent.AttestationRequest
|
|
8, // 4: agent.AgentService.IMAMeasurements:input_type -> agent.IMAMeasurementsRequest
|
|
10, // 5: agent.AgentService.AzureAttestationToken:input_type -> agent.AttestationTokenRequest
|
|
1, // 6: agent.AgentService.Algo:output_type -> agent.AlgoResponse
|
|
3, // 7: agent.AgentService.Data:output_type -> agent.DataResponse
|
|
5, // 8: agent.AgentService.Result:output_type -> agent.ResultResponse
|
|
7, // 9: agent.AgentService.Attestation:output_type -> agent.AttestationResponse
|
|
9, // 10: agent.AgentService.IMAMeasurements:output_type -> agent.IMAMeasurementsResponse
|
|
11, // 11: agent.AgentService.AzureAttestationToken:output_type -> agent.AttestationTokenResponse
|
|
6, // [6:12] is the sub-list for method output_type
|
|
0, // [0:6] is the sub-list for method input_type
|
|
0, // [0:0] is the sub-list for extension type_name
|
|
0, // [0:0] is the sub-list for extension extendee
|
|
0, // [0:0] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_agent_agent_proto_init() }
|
|
func file_agent_agent_proto_init() {
|
|
if File_agent_agent_proto != nil {
|
|
return
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_agent_agent_proto_rawDesc), len(file_agent_agent_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 12,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_agent_agent_proto_goTypes,
|
|
DependencyIndexes: file_agent_agent_proto_depIdxs,
|
|
MessageInfos: file_agent_agent_proto_msgTypes,
|
|
}.Build()
|
|
File_agent_agent_proto = out.File
|
|
file_agent_agent_proto_goTypes = nil
|
|
file_agent_agent_proto_depIdxs = nil
|
|
}
|