mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-13 09:54:29 -05:00
4284f892ce
* rename to attestationconfigapi + put client and fetcher inside pkg * rename api/version to versionsapi and put fetcher + client inside pkg * rename AttestationConfigAPIFetcher to Fetcher
24 lines
1.1 KiB
Go
24 lines
1.1 KiB
Go
/*
|
|
Copyright (c) Edgeless Systems GmbH
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
|
|
/*
|
|
# 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.
|
|
*/
|
|
package attestationconfigapi
|