Documentation
¶
Overview ¶
AttestationConfig API ¶
The AttestationConfig API provides values for the attestation key in the Constellation config.
This package defines API types that represents objects of the AttestationConfig API. The types provide helper methods for validation and commonly used operations on the information contained in the objects. Especially the paths used for the API are defined in these helper methods.
Regarding the decision to implement new types over using the existing types from internal/config: AttesationCfg objects for AttestationCfg API need to hold some version information (for sorting, recognizing latest). Thus, existing config types (AWSNitroTPM, AzureSEVSNP, ...) can not be extended to implement apiObject interface. Instead, we need a separate type that wraps _all_ attestation types. In the codebase this is done using the AttestationCfg interface. The new type AttestationCfgGet needs to be located inside internal/config in order to implement UnmarshalJSON.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AzureSEVSNPVersion ¶
type AzureSEVSNPVersion struct {
// Bootloader is the latest version of the Azure SEVSNP bootloader.
Bootloader uint8 `json:"bootloader"`
// TEE is the latest version of the Azure SEVSNP TEE.
TEE uint8 `json:"tee"`
// SNP is the latest version of the Azure SEVSNP SNP.
SNP uint8 `json:"snp"`
// Microcode is the latest version of the Azure SEVSNP microcode.
Microcode uint8 `json:"microcode"`
}
AzureSEVSNPVersion tracks the latest version of each component of the Azure SEVSNP.
type AzureSEVSNPVersionGet ¶
type AzureSEVSNPVersionGet struct {
Version string `json:"-"`
AzureSEVSNPVersion
}
AzureSEVSNPVersionGet is the request to get the version information of the specific version in the config api.
func (AzureSEVSNPVersionGet) JSONPath ¶
func (i AzureSEVSNPVersionGet) JSONPath() string
JSONPath returns the path to the JSON file for the request to the config api.
func (AzureSEVSNPVersionGet) URL ¶
func (i AzureSEVSNPVersionGet) URL() (string, error)
URL returns the URL for the request to the config api.
func (AzureSEVSNPVersionGet) Validate ¶
func (i AzureSEVSNPVersionGet) Validate() error
Validate is a No-Op at the moment.
func (AzureSEVSNPVersionGet) ValidateRequest ¶
func (i AzureSEVSNPVersionGet) ValidateRequest() error
ValidateRequest validates the request.
type AzureSEVSNPVersionList ¶
type AzureSEVSNPVersionList []string
AzureSEVSNPVersionList is the request to list all versions in the config api.
func (AzureSEVSNPVersionList) JSONPath ¶
func (i AzureSEVSNPVersionList) JSONPath() string
JSONPath returns the path to the JSON file for the request to the config api.
func (AzureSEVSNPVersionList) URL ¶
func (i AzureSEVSNPVersionList) URL() (string, error)
URL returns the URL for the request to the config api.
func (AzureSEVSNPVersionList) Validate ¶
func (i AzureSEVSNPVersionList) Validate() error
Validate validates the response.
func (AzureSEVSNPVersionList) ValidateRequest ¶
func (i AzureSEVSNPVersionList) ValidateRequest() error
ValidateRequest is a NoOp as there is no input.
type AzureSEVSNPVersionType ¶
type AzureSEVSNPVersionType string
AzureSEVSNPVersionType is the type of the version to be requested.