mirror of
https://github.com/ultravioletrs/cocos.git
synced 2026-06-23 04:10:25 +00:00
f77ec5644a
CI / checkproto (push) Has been cancelled
CI / lint (push) Has been cancelled
Rust CI Pipeline / rust-check (push) Has been cancelled
CI / test (agent) (push) Has been cancelled
CI / test (cli) (push) Has been cancelled
CI / test (cmd) (push) Has been cancelled
CI / test (internal) (push) Has been cancelled
CI / test (manager, true) (push) Has been cancelled
CI / test (pkg) (push) Has been cancelled
CI / upload-coverage (push) Has been cancelled
* feat: Add Confidential Containers attestation agent as an alternative attestation backend with new proto definitions and build system integration. Signed-off-by: Sammy Oina <sammyoina@gmail.com> * fix: Update protoc-gen-go and protoc-gen-go-grpc versions in CI workflow Signed-off-by: Sammy Oina <sammyoina@gmail.com> * feat: Add mock implementation for AttestationAgentServiceClient and corresponding tests Signed-off-by: Sammy Oina <sammyoina@gmail.com> * fix: Add missing periods to test function comments in provider_test.go Signed-off-by: Sammy Oina <sammyoina@gmail.com> --------- Signed-off-by: Sammy Oina <sammyoina@gmail.com>
553 lines
17 KiB
Go
553 lines
17 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.11
|
|
// protoc v6.33.1
|
|
// source: manager/manager.proto
|
|
|
|
package manager
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
emptypb "google.golang.org/protobuf/types/known/emptypb"
|
|
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 CreateReq struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
AgentLogLevel string `protobuf:"bytes,1,opt,name=agent_log_level,json=agentLogLevel,proto3" json:"agent_log_level,omitempty"`
|
|
AgentCvmServerCaCert []byte `protobuf:"bytes,2,opt,name=agent_cvm_server_ca_cert,json=agentCvmServerCaCert,proto3" json:"agent_cvm_server_ca_cert,omitempty"`
|
|
AgentCvmClientKey []byte `protobuf:"bytes,3,opt,name=agent_cvm_client_key,json=agentCvmClientKey,proto3" json:"agent_cvm_client_key,omitempty"`
|
|
AgentCvmClientCert []byte `protobuf:"bytes,4,opt,name=agent_cvm_client_cert,json=agentCvmClientCert,proto3" json:"agent_cvm_client_cert,omitempty"`
|
|
AgentCvmServerUrl string `protobuf:"bytes,5,opt,name=agent_cvm_server_url,json=agentCvmServerUrl,proto3" json:"agent_cvm_server_url,omitempty"`
|
|
AgentCvmCaUrl string `protobuf:"bytes,6,opt,name=agent_cvm_ca_url,json=agentCvmCaUrl,proto3" json:"agent_cvm_ca_url,omitempty"`
|
|
Ttl string `protobuf:"bytes,7,opt,name=ttl,proto3" json:"ttl,omitempty"`
|
|
AgentCertsToken string `protobuf:"bytes,8,opt,name=agent_certs_token,json=agentCertsToken,proto3" json:"agent_certs_token,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreateReq) Reset() {
|
|
*x = CreateReq{}
|
|
mi := &file_manager_manager_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreateReq) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateReq) ProtoMessage() {}
|
|
|
|
func (x *CreateReq) ProtoReflect() protoreflect.Message {
|
|
mi := &file_manager_manager_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 CreateReq.ProtoReflect.Descriptor instead.
|
|
func (*CreateReq) Descriptor() ([]byte, []int) {
|
|
return file_manager_manager_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *CreateReq) GetAgentLogLevel() string {
|
|
if x != nil {
|
|
return x.AgentLogLevel
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateReq) GetAgentCvmServerCaCert() []byte {
|
|
if x != nil {
|
|
return x.AgentCvmServerCaCert
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *CreateReq) GetAgentCvmClientKey() []byte {
|
|
if x != nil {
|
|
return x.AgentCvmClientKey
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *CreateReq) GetAgentCvmClientCert() []byte {
|
|
if x != nil {
|
|
return x.AgentCvmClientCert
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *CreateReq) GetAgentCvmServerUrl() string {
|
|
if x != nil {
|
|
return x.AgentCvmServerUrl
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateReq) GetAgentCvmCaUrl() string {
|
|
if x != nil {
|
|
return x.AgentCvmCaUrl
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateReq) GetTtl() string {
|
|
if x != nil {
|
|
return x.Ttl
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateReq) GetAgentCertsToken() string {
|
|
if x != nil {
|
|
return x.AgentCertsToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type CreateRes struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
ForwardedPort string `protobuf:"bytes,1,opt,name=forwarded_port,json=forwardedPort,proto3" json:"forwarded_port,omitempty"`
|
|
CvmId string `protobuf:"bytes,2,opt,name=cvm_id,json=cvmId,proto3" json:"cvm_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreateRes) Reset() {
|
|
*x = CreateRes{}
|
|
mi := &file_manager_manager_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreateRes) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateRes) ProtoMessage() {}
|
|
|
|
func (x *CreateRes) ProtoReflect() protoreflect.Message {
|
|
mi := &file_manager_manager_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 CreateRes.ProtoReflect.Descriptor instead.
|
|
func (*CreateRes) Descriptor() ([]byte, []int) {
|
|
return file_manager_manager_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *CreateRes) GetForwardedPort() string {
|
|
if x != nil {
|
|
return x.ForwardedPort
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateRes) GetCvmId() string {
|
|
if x != nil {
|
|
return x.CvmId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type RemoveReq struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
CvmId string `protobuf:"bytes,1,opt,name=cvm_id,json=cvmId,proto3" json:"cvm_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RemoveReq) Reset() {
|
|
*x = RemoveReq{}
|
|
mi := &file_manager_manager_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RemoveReq) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RemoveReq) ProtoMessage() {}
|
|
|
|
func (x *RemoveReq) ProtoReflect() protoreflect.Message {
|
|
mi := &file_manager_manager_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 RemoveReq.ProtoReflect.Descriptor instead.
|
|
func (*RemoveReq) Descriptor() ([]byte, []int) {
|
|
return file_manager_manager_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *RemoveReq) GetCvmId() string {
|
|
if x != nil {
|
|
return x.CvmId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type AttestationPolicyRes struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Info []byte `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"`
|
|
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *AttestationPolicyRes) Reset() {
|
|
*x = AttestationPolicyRes{}
|
|
mi := &file_manager_manager_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *AttestationPolicyRes) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*AttestationPolicyRes) ProtoMessage() {}
|
|
|
|
func (x *AttestationPolicyRes) ProtoReflect() protoreflect.Message {
|
|
mi := &file_manager_manager_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 AttestationPolicyRes.ProtoReflect.Descriptor instead.
|
|
func (*AttestationPolicyRes) Descriptor() ([]byte, []int) {
|
|
return file_manager_manager_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *AttestationPolicyRes) GetInfo() []byte {
|
|
if x != nil {
|
|
return x.Info
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *AttestationPolicyRes) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type CVMInfoRes struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
OvmfVersion string `protobuf:"bytes,2,opt,name=ovmf_version,json=ovmfVersion,proto3" json:"ovmf_version,omitempty"`
|
|
CpuNum int32 `protobuf:"varint,3,opt,name=cpu_num,json=cpuNum,proto3" json:"cpu_num,omitempty"`
|
|
CpuType string `protobuf:"bytes,4,opt,name=cpu_type,json=cpuType,proto3" json:"cpu_type,omitempty"`
|
|
KernelCmd string `protobuf:"bytes,5,opt,name=kernel_cmd,json=kernelCmd,proto3" json:"kernel_cmd,omitempty"`
|
|
EosVersion string `protobuf:"bytes,6,opt,name=eos_version,json=eosVersion,proto3" json:"eos_version,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CVMInfoRes) Reset() {
|
|
*x = CVMInfoRes{}
|
|
mi := &file_manager_manager_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CVMInfoRes) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CVMInfoRes) ProtoMessage() {}
|
|
|
|
func (x *CVMInfoRes) ProtoReflect() protoreflect.Message {
|
|
mi := &file_manager_manager_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 CVMInfoRes.ProtoReflect.Descriptor instead.
|
|
func (*CVMInfoRes) Descriptor() ([]byte, []int) {
|
|
return file_manager_manager_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *CVMInfoRes) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CVMInfoRes) GetOvmfVersion() string {
|
|
if x != nil {
|
|
return x.OvmfVersion
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CVMInfoRes) GetCpuNum() int32 {
|
|
if x != nil {
|
|
return x.CpuNum
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *CVMInfoRes) GetCpuType() string {
|
|
if x != nil {
|
|
return x.CpuType
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CVMInfoRes) GetKernelCmd() string {
|
|
if x != nil {
|
|
return x.KernelCmd
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CVMInfoRes) GetEosVersion() string {
|
|
if x != nil {
|
|
return x.EosVersion
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type AttestationPolicyReq struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *AttestationPolicyReq) Reset() {
|
|
*x = AttestationPolicyReq{}
|
|
mi := &file_manager_manager_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *AttestationPolicyReq) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*AttestationPolicyReq) ProtoMessage() {}
|
|
|
|
func (x *AttestationPolicyReq) ProtoReflect() protoreflect.Message {
|
|
mi := &file_manager_manager_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 AttestationPolicyReq.ProtoReflect.Descriptor instead.
|
|
func (*AttestationPolicyReq) Descriptor() ([]byte, []int) {
|
|
return file_manager_manager_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *AttestationPolicyReq) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type CVMInfoReq struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CVMInfoReq) Reset() {
|
|
*x = CVMInfoReq{}
|
|
mi := &file_manager_manager_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CVMInfoReq) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CVMInfoReq) ProtoMessage() {}
|
|
|
|
func (x *CVMInfoReq) ProtoReflect() protoreflect.Message {
|
|
mi := &file_manager_manager_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 CVMInfoReq.ProtoReflect.Descriptor instead.
|
|
func (*CVMInfoReq) Descriptor() ([]byte, []int) {
|
|
return file_manager_manager_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *CVMInfoReq) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
var File_manager_manager_proto protoreflect.FileDescriptor
|
|
|
|
const file_manager_manager_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x15manager/manager.proto\x12\amanager\x1a\x1bgoogle/protobuf/empty.proto\"\xe7\x02\n" +
|
|
"\tCreateReq\x12&\n" +
|
|
"\x0fagent_log_level\x18\x01 \x01(\tR\ragentLogLevel\x126\n" +
|
|
"\x18agent_cvm_server_ca_cert\x18\x02 \x01(\fR\x14agentCvmServerCaCert\x12/\n" +
|
|
"\x14agent_cvm_client_key\x18\x03 \x01(\fR\x11agentCvmClientKey\x121\n" +
|
|
"\x15agent_cvm_client_cert\x18\x04 \x01(\fR\x12agentCvmClientCert\x12/\n" +
|
|
"\x14agent_cvm_server_url\x18\x05 \x01(\tR\x11agentCvmServerUrl\x12'\n" +
|
|
"\x10agent_cvm_ca_url\x18\x06 \x01(\tR\ragentCvmCaUrl\x12\x10\n" +
|
|
"\x03ttl\x18\a \x01(\tR\x03ttl\x12*\n" +
|
|
"\x11agent_certs_token\x18\b \x01(\tR\x0fagentCertsToken\"I\n" +
|
|
"\tCreateRes\x12%\n" +
|
|
"\x0eforwarded_port\x18\x01 \x01(\tR\rforwardedPort\x12\x15\n" +
|
|
"\x06cvm_id\x18\x02 \x01(\tR\x05cvmId\"\"\n" +
|
|
"\tRemoveReq\x12\x15\n" +
|
|
"\x06cvm_id\x18\x01 \x01(\tR\x05cvmId\":\n" +
|
|
"\x14AttestationPolicyRes\x12\x12\n" +
|
|
"\x04info\x18\x01 \x01(\fR\x04info\x12\x0e\n" +
|
|
"\x02id\x18\x02 \x01(\tR\x02id\"\xb3\x01\n" +
|
|
"\n" +
|
|
"CVMInfoRes\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\tR\x02id\x12!\n" +
|
|
"\fovmf_version\x18\x02 \x01(\tR\vovmfVersion\x12\x17\n" +
|
|
"\acpu_num\x18\x03 \x01(\x05R\x06cpuNum\x12\x19\n" +
|
|
"\bcpu_type\x18\x04 \x01(\tR\acpuType\x12\x1d\n" +
|
|
"\n" +
|
|
"kernel_cmd\x18\x05 \x01(\tR\tkernelCmd\x12\x1f\n" +
|
|
"\veos_version\x18\x06 \x01(\tR\n" +
|
|
"eosVersion\"&\n" +
|
|
"\x14AttestationPolicyReq\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\tR\x02id\"\x1c\n" +
|
|
"\n" +
|
|
"CVMInfoReq\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\tR\x02id2\x8c\x02\n" +
|
|
"\x0eManagerService\x124\n" +
|
|
"\bCreateVm\x12\x12.manager.CreateReq\x1a\x12.manager.CreateRes\"\x00\x128\n" +
|
|
"\bRemoveVm\x12\x12.manager.RemoveReq\x1a\x16.google.protobuf.Empty\"\x00\x125\n" +
|
|
"\aCVMInfo\x12\x13.manager.CVMInfoReq\x1a\x13.manager.CVMInfoRes\"\x00\x12S\n" +
|
|
"\x11AttestationPolicy\x12\x1d.manager.AttestationPolicyReq\x1a\x1d.manager.AttestationPolicyRes\"\x00B\vZ\t./managerb\x06proto3"
|
|
|
|
var (
|
|
file_manager_manager_proto_rawDescOnce sync.Once
|
|
file_manager_manager_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_manager_manager_proto_rawDescGZIP() []byte {
|
|
file_manager_manager_proto_rawDescOnce.Do(func() {
|
|
file_manager_manager_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_manager_manager_proto_rawDesc), len(file_manager_manager_proto_rawDesc)))
|
|
})
|
|
return file_manager_manager_proto_rawDescData
|
|
}
|
|
|
|
var file_manager_manager_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
|
|
var file_manager_manager_proto_goTypes = []any{
|
|
(*CreateReq)(nil), // 0: manager.CreateReq
|
|
(*CreateRes)(nil), // 1: manager.CreateRes
|
|
(*RemoveReq)(nil), // 2: manager.RemoveReq
|
|
(*AttestationPolicyRes)(nil), // 3: manager.AttestationPolicyRes
|
|
(*CVMInfoRes)(nil), // 4: manager.CVMInfoRes
|
|
(*AttestationPolicyReq)(nil), // 5: manager.AttestationPolicyReq
|
|
(*CVMInfoReq)(nil), // 6: manager.CVMInfoReq
|
|
(*emptypb.Empty)(nil), // 7: google.protobuf.Empty
|
|
}
|
|
var file_manager_manager_proto_depIdxs = []int32{
|
|
0, // 0: manager.ManagerService.CreateVm:input_type -> manager.CreateReq
|
|
2, // 1: manager.ManagerService.RemoveVm:input_type -> manager.RemoveReq
|
|
6, // 2: manager.ManagerService.CVMInfo:input_type -> manager.CVMInfoReq
|
|
5, // 3: manager.ManagerService.AttestationPolicy:input_type -> manager.AttestationPolicyReq
|
|
1, // 4: manager.ManagerService.CreateVm:output_type -> manager.CreateRes
|
|
7, // 5: manager.ManagerService.RemoveVm:output_type -> google.protobuf.Empty
|
|
4, // 6: manager.ManagerService.CVMInfo:output_type -> manager.CVMInfoRes
|
|
3, // 7: manager.ManagerService.AttestationPolicy:output_type -> manager.AttestationPolicyRes
|
|
4, // [4:8] is the sub-list for method output_type
|
|
0, // [0:4] 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_manager_manager_proto_init() }
|
|
func file_manager_manager_proto_init() {
|
|
if File_manager_manager_proto != nil {
|
|
return
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_manager_manager_proto_rawDesc), len(file_manager_manager_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 7,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_manager_manager_proto_goTypes,
|
|
DependencyIndexes: file_manager_manager_proto_depIdxs,
|
|
MessageInfos: file_manager_manager_proto_msgTypes,
|
|
}.Build()
|
|
File_manager_manager_proto = out.File
|
|
file_manager_manager_proto_goTypes = nil
|
|
file_manager_manager_proto_depIdxs = nil
|
|
}
|