protobuf

package
v0.0.0-...-3739264 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AttestationContainer_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "attestation_container.AttestationContainer",
	HandlerType: (*AttestationContainerServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "FetchAttestation",
			Handler:    _AttestationContainer_FetchAttestation_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "protobuf/attestation-container.proto",
}

AttestationContainer_ServiceDesc is the grpc.ServiceDesc for AttestationContainer service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_protobuf_attestation_container_proto protoreflect.FileDescriptor

Functions

func RegisterAttestationContainerServer

func RegisterAttestationContainerServer(s grpc.ServiceRegistrar, srv AttestationContainerServer)

Types

type AttestationContainerClient

type AttestationContainerClient interface {
	// Fetches and returns attestation report, platform certificates, and UVM endorsements (UVM reference info).
	// In future it returns Certificate Revocation List (CRL) as well.
	FetchAttestation(ctx context.Context, in *FetchAttestationRequest, opts ...grpc.CallOption) (*FetchAttestationReply, error)
}

AttestationContainerClient is the client API for AttestationContainer 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 AttestationContainerServer

type AttestationContainerServer interface {
	// Fetches and returns attestation report, platform certificates, and UVM endorsements (UVM reference info).
	// In future it returns Certificate Revocation List (CRL) as well.
	FetchAttestation(context.Context, *FetchAttestationRequest) (*FetchAttestationReply, error)
	// contains filtered or unexported methods
}

AttestationContainerServer is the server API for AttestationContainer service. All implementations must embed UnimplementedAttestationContainerServer for forward compatibility

type FetchAttestationReply

type FetchAttestationReply struct {

	// ATTESTATION_REPORT Structure defined in Table 21 of SEV-SNP firmware ABI specification
	Attestation []byte `protobuf:"bytes,1,opt,name=attestation,proto3" json:"attestation,omitempty"`
	// Concatenation of VCEK, ASK, and ARK certificates (PEM format, in that order).
	// https://www.amd.com/en/support/tech-docs/versioned-chip-endorsement-key-vcek-certificate-and-kds-interface-specification
	PlatformCertificates []byte `protobuf:"bytes,2,opt,name=platform_certificates,json=platformCertificates,proto3" json:"platform_certificates,omitempty"`
	UvmEndorsements      []byte `protobuf:"bytes,3,opt,name=uvm_endorsements,json=uvmEndorsements,proto3" json:"uvm_endorsements,omitempty"`
	// contains filtered or unexported fields
}

func (*FetchAttestationReply) Descriptor deprecated

func (*FetchAttestationReply) Descriptor() ([]byte, []int)

Deprecated: Use FetchAttestationReply.ProtoReflect.Descriptor instead.

func (*FetchAttestationReply) GetAttestation

func (x *FetchAttestationReply) GetAttestation() []byte

func (*FetchAttestationReply) GetPlatformCertificates

func (x *FetchAttestationReply) GetPlatformCertificates() []byte

func (*FetchAttestationReply) GetUvmEndorsements

func (x *FetchAttestationReply) GetUvmEndorsements() []byte

func (*FetchAttestationReply) ProtoMessage

func (*FetchAttestationReply) ProtoMessage()

func (*FetchAttestationReply) ProtoReflect

func (x *FetchAttestationReply) ProtoReflect() protoreflect.Message

func (*FetchAttestationReply) Reset

func (x *FetchAttestationReply) Reset()

func (*FetchAttestationReply) String

func (x *FetchAttestationReply) String() string

type FetchAttestationRequest

type FetchAttestationRequest struct {

	// Defined in Table 21 of SEV-SNP firmware ABI specification
	// https://www.amd.com/en/support/tech-docs/sev-secure-nested-paging-firmware-abi-specification
	ReportData []byte `protobuf:"bytes,1,opt,name=report_data,json=reportData,proto3" json:"report_data,omitempty"`
	// contains filtered or unexported fields
}

func (*FetchAttestationRequest) Descriptor deprecated

func (*FetchAttestationRequest) Descriptor() ([]byte, []int)

Deprecated: Use FetchAttestationRequest.ProtoReflect.Descriptor instead.

func (*FetchAttestationRequest) GetReportData

func (x *FetchAttestationRequest) GetReportData() []byte

func (*FetchAttestationRequest) ProtoMessage

func (*FetchAttestationRequest) ProtoMessage()

func (*FetchAttestationRequest) ProtoReflect

func (x *FetchAttestationRequest) ProtoReflect() protoreflect.Message

func (*FetchAttestationRequest) Reset

func (x *FetchAttestationRequest) Reset()

func (*FetchAttestationRequest) String

func (x *FetchAttestationRequest) String() string

type UnimplementedAttestationContainerServer

type UnimplementedAttestationContainerServer struct {
}

UnimplementedAttestationContainerServer must be embedded to have forward compatible implementations.

func (UnimplementedAttestationContainerServer) FetchAttestation

type UnsafeAttestationContainerServer

type UnsafeAttestationContainerServer interface {
	// contains filtered or unexported methods
}

UnsafeAttestationContainerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AttestationContainerServer will result in compilation errors.

Jump to

Keyboard shortcuts

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