fakekds

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package fakekds defines the message types for representing a local cache of KDS certificates for a small set of test machines. This is useful for creating a reliable testing environment that does not depend on unbroken service from the AMD KDS.

Index

Constants

This section is empty.

Variables

View Source
var File_fakekds_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Certificates

type Certificates struct {
	ChipCerts []*Certificates_ChipTCBCerts `protobuf:"bytes,1,rep,name=chip_certs,json=chipCerts,proto3" json:"chip_certs,omitempty"`
	// contains filtered or unexported fields
}

Certificates represents all known certificates for machines at particular TCB values. This is useful to represent a test machine cluster's VCEK certificates that haven't been provisioned with the /dev/sev device.

func (*Certificates) Descriptor deprecated

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

Deprecated: Use Certificates.ProtoReflect.Descriptor instead.

func (*Certificates) GetChipCerts

func (x *Certificates) GetChipCerts() []*Certificates_ChipTCBCerts

func (*Certificates) ProtoMessage

func (*Certificates) ProtoMessage()

func (*Certificates) ProtoReflect

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

func (*Certificates) Reset

func (x *Certificates) Reset()

func (*Certificates) String

func (x *Certificates) String() string

type Certificates_ChipTCBCerts

type Certificates_ChipTCBCerts struct {
	ChipId   []byte            `protobuf:"bytes,1,opt,name=chip_id,json=chipId,proto3" json:"chip_id,omitempty"` // Should be 64 bytes
	TcbCerts map[uint64][]byte ``                                                                                /* 174-byte string literal not displayed */
	Hostname string            `protobuf:"bytes,3,opt,name=hostname,proto3" json:"hostname,omitempty"`
	// contains filtered or unexported fields
}

func (*Certificates_ChipTCBCerts) Descriptor deprecated

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

Deprecated: Use Certificates_ChipTCBCerts.ProtoReflect.Descriptor instead.

func (*Certificates_ChipTCBCerts) GetChipId

func (x *Certificates_ChipTCBCerts) GetChipId() []byte

func (*Certificates_ChipTCBCerts) GetHostname

func (x *Certificates_ChipTCBCerts) GetHostname() string

func (*Certificates_ChipTCBCerts) GetTcbCerts

func (x *Certificates_ChipTCBCerts) GetTcbCerts() map[uint64][]byte

func (*Certificates_ChipTCBCerts) ProtoMessage

func (*Certificates_ChipTCBCerts) ProtoMessage()

func (*Certificates_ChipTCBCerts) ProtoReflect

func (*Certificates_ChipTCBCerts) Reset

func (x *Certificates_ChipTCBCerts) Reset()

func (*Certificates_ChipTCBCerts) String

func (x *Certificates_ChipTCBCerts) String() string

Jump to

Keyboard shortcuts

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