Versions in this module Expand all Collapse all v0 v0.1.4 Oct 10, 2024 v0.1.3 Oct 10, 2024 v0.1.2 Oct 7, 2024 v0.1.0 Oct 4, 2024 Changes in this version + const Version4 + var AWSConfigDoc encoder.Doc + var AWSNitroTPMDoc encoder.Doc + var AWSSEVSNPDoc encoder.Doc + var AttestationConfigDoc encoder.Doc + var AzureConfigDoc encoder.Doc + var AzureSEVSNPDoc encoder.Doc + var AzureTDXDoc encoder.Doc + var AzureTrustedLaunchDoc encoder.Doc + var ConfigDoc encoder.Doc + var GCPConfigDoc encoder.Doc + var GCPSEVESDoc encoder.Doc + var GCPSEVSNPDoc encoder.Doc + var NodeGroupDoc encoder.Doc + var OpenStackConfigDoc encoder.Doc + var ProviderConfigDoc encoder.Doc + var QEMUConfigDoc encoder.Doc + var QEMUTDXDoc encoder.Doc + var QEMUVTPMDoc encoder.Doc + var SNPFirmwareSignerConfigDoc encoder.Doc + var UnsupportedAppRegistrationErrorDoc encoder.Doc + func GetConfigurationDoc() *encoder.FileDoc + func ValidateAWSRegion(region string) bool + func ValidateAWSZone(zone string) bool + func ValidateAzureZone(zone string) bool + func ValidateGCPZone(zone string) bool + func ValidateMicroserviceVersion(binaryVersion, version consemver.Semver) error + func ValidateOpenStackRegion(region string) bool + type AWSConfig struct + DeployCSIDriver *bool + IAMProfileControlPlane string + IAMProfileWorkerNodes string + Region string + UseMarketplaceImage *bool + Zone string + func (_ AWSConfig) Doc() *encoder.Doc + type AWSNitroTPM struct + Measurements measurements.M + func (AWSNitroTPM) GetVariant() variant.Variant + func (_ AWSNitroTPM) Doc() *encoder.Doc + func (c *AWSNitroTPM) SetMeasurements(m measurements.M) + func (c AWSNitroTPM) EqualTo(other AttestationCfg) (bool, error) + func (c AWSNitroTPM) GetMeasurements() measurements.M + type AWSSEVSNP struct + AMDRootKey Certificate + AMDSigningKey Certificate + BootloaderVersion AttestationVersion[uint8] + Measurements measurements.M + MicrocodeVersion AttestationVersion[uint8] + SNPVersion AttestationVersion[uint8] + TEEVersion AttestationVersion[uint8] + func DefaultForAWSSEVSNP() *AWSSEVSNP + func (AWSSEVSNP) GetVariant() variant.Variant + func (_ AWSSEVSNP) Doc() *encoder.Doc + func (c *AWSSEVSNP) FetchAndSetLatestVersionNumbers(ctx context.Context, fetcher attestationconfigapi.Fetcher) error + func (c *AWSSEVSNP) SetMeasurements(m measurements.M) + func (c AWSSEVSNP) EqualTo(other AttestationCfg) (bool, error) + func (c AWSSEVSNP) GetMeasurements() measurements.M + type AttestationCfg interface + EqualTo func(AttestationCfg) (bool, error) + GetMeasurements func() measurements.M + GetVariant func() variant.Variant + SetMeasurements func(m measurements.M) + func UnmarshalAttestationConfig(data []byte, attestVariant variant.Variant) (AttestationCfg, error) + type AttestationConfig struct + AWSNitroTPM *AWSNitroTPM + AWSSEVSNP *AWSSEVSNP + AzureSEVSNP *AzureSEVSNP + AzureTDX *AzureTDX + AzureTrustedLaunch *AzureTrustedLaunch + GCPSEVES *GCPSEVES + GCPSEVSNP *GCPSEVSNP + QEMUTDX *QEMUTDX + QEMUVTPM *QEMUVTPM + func (_ AttestationConfig) Doc() *encoder.Doc + type AttestationVersion struct + Value T + WantLatest bool + func NewLatestPlaceholderVersion[T versionValue]() AttestationVersion[T] + func (v *AttestationVersion[T]) UnmarshalJSON(data []byte) (err error) + func (v *AttestationVersion[T]) UnmarshalYAML(unmarshal func(any) error) error + func (v AttestationVersion[T]) MarshalJSON() ([]byte, error) + func (v AttestationVersion[T]) MarshalYAML() (any, error) + type AzureConfig struct + DeployCSIDriver *bool + Location string + ResourceGroup string + SecureBoot *bool + SubscriptionID string + TenantID string + UseMarketplaceImage *bool + UserAssignedIdentity string + func (_ AzureConfig) Doc() *encoder.Doc + type AzureSEVSNP struct + AMDRootKey Certificate + AMDSigningKey Certificate + BootloaderVersion AttestationVersion[uint8] + FirmwareSignerConfig SNPFirmwareSignerConfig + Measurements measurements.M + MicrocodeVersion AttestationVersion[uint8] + SNPVersion AttestationVersion[uint8] + TEEVersion AttestationVersion[uint8] + func DefaultForAzureSEVSNP() *AzureSEVSNP + func (AzureSEVSNP) GetVariant() variant.Variant + func (_ AzureSEVSNP) Doc() *encoder.Doc + func (c *AzureSEVSNP) FetchAndSetLatestVersionNumbers(ctx context.Context, fetcher attestationconfigapi.Fetcher) error + func (c *AzureSEVSNP) SetMeasurements(m measurements.M) + func (c AzureSEVSNP) EqualTo(old AttestationCfg) (bool, error) + func (c AzureSEVSNP) GetMeasurements() measurements.M + type AzureTDX struct + IntelRootKey Certificate + MRSeam encoding.HexBytes + Measurements measurements.M + PCESVN AttestationVersion[uint16] + QESVN AttestationVersion[uint16] + QEVendorID AttestationVersion[encoding.HexBytes] + TEETCBSVN AttestationVersion[encoding.HexBytes] + XFAM AttestationVersion[encoding.HexBytes] + func DefaultForAzureTDX() *AzureTDX + func (AzureTDX) GetVariant() variant.Variant + func (_ AzureTDX) Doc() *encoder.Doc + func (c *AzureTDX) FetchAndSetLatestVersionNumbers(ctx context.Context, fetcher attestationconfigapi.Fetcher) error + func (c *AzureTDX) SetMeasurements(m measurements.M) + func (c AzureTDX) EqualTo(other AttestationCfg) (bool, error) + func (c AzureTDX) GetMeasurements() measurements.M + type AzureTrustedLaunch struct + Measurements measurements.M + func (AzureTrustedLaunch) GetVariant() variant.Variant + func (_ AzureTrustedLaunch) Doc() *encoder.Doc + func (c *AzureTrustedLaunch) SetMeasurements(m measurements.M) + func (c AzureTrustedLaunch) EqualTo(other AttestationCfg) (bool, error) + func (c AzureTrustedLaunch) GetMeasurements() measurements.M + type Certificate x509.Certificate + func (c *Certificate) UnmarshalJSON(data []byte) error + func (c *Certificate) UnmarshalYAML(unmarshal func(any) error) error + func (c Certificate) Equal(other Certificate) bool + func (c Certificate) MarshalJSON() ([]byte, error) + func (c Certificate) MarshalYAML() (any, error) + type Config struct + Attestation AttestationConfig + CustomEndpoint string + DebugCluster *bool + Image string + InternalLoadBalancer bool + KubernetesVersion versions.ValidK8sVersion + MicroserviceVersion semver.Semver + Name string + NodeGroups map[string]NodeGroup + Provider ProviderConfig + ServiceCIDR string + Tags cloudprovider.Tags + Version string + func Default() *Config + func MiniDefault() (*Config, error) + func New(fileHandler file.Handler, name string, fetcher attestationconfigapi.Fetcher, ...) (*Config, error) + func (_ Config) Doc() *encoder.Doc + func (c *Config) DeployCSIDriver() bool + func (c *Config) DeployYawolLoadBalancer() bool + func (c *Config) GetAttestationConfig() AttestationCfg + func (c *Config) GetProvider() cloudprovider.Provider + func (c *Config) GetRegion() string + func (c *Config) GetZone() string + func (c *Config) HasProvider(provider cloudprovider.Provider) bool + func (c *Config) IsDebugCluster() bool + func (c *Config) IsNamedLikeDebugImage() bool + func (c *Config) IsReleaseImage() bool + func (c *Config) RemoveProviderAndAttestationExcept(provider cloudprovider.Provider) + func (c *Config) RemoveProviderExcept(provider cloudprovider.Provider) + func (c *Config) SetAttestation(attestation variant.Variant) + func (c *Config) SetCSPNodeGroupDefaults(csp cloudprovider.Provider) + func (c *Config) UpdateMAAURL(maaURL string) + func (c *Config) UpdateMeasurements(newMeasurements measurements.M) + func (c *Config) UseMarketplaceImage() bool + func (c *Config) Validate(force bool) error + func (c *Config) WithOpenStackProviderDefaults(csp cloudprovider.Provider, openStackProvider string) *Config + type DummyCfg struct + Measurements measurements.M + func (DummyCfg) GetVariant() variant.Variant + func (c *DummyCfg) SetMeasurements(m measurements.M) + func (c DummyCfg) EqualTo(other AttestationCfg) (bool, error) + func (c DummyCfg) GetMeasurements() measurements.M + type GCPConfig struct + DeployCSIDriver *bool + Project string + Region string + ServiceAccountKeyPath string + UseMarketplaceImage *bool + Zone string + func (_ GCPConfig) Doc() *encoder.Doc + type GCPSEVES struct + Measurements measurements.M + func (GCPSEVES) GetVariant() variant.Variant + func (_ GCPSEVES) Doc() *encoder.Doc + func (c *GCPSEVES) SetMeasurements(m measurements.M) + func (c GCPSEVES) EqualTo(other AttestationCfg) (bool, error) + func (c GCPSEVES) GetMeasurements() measurements.M + type GCPSEVSNP struct + AMDRootKey Certificate + AMDSigningKey Certificate + BootloaderVersion AttestationVersion[uint8] + Measurements measurements.M + MicrocodeVersion AttestationVersion[uint8] + SNPVersion AttestationVersion[uint8] + TEEVersion AttestationVersion[uint8] + func DefaultForGCPSEVSNP() *GCPSEVSNP + func (GCPSEVSNP) GetVariant() variant.Variant + func (_ GCPSEVSNP) Doc() *encoder.Doc + func (c *GCPSEVSNP) FetchAndSetLatestVersionNumbers(ctx context.Context, fetcher attestationconfigapi.Fetcher) error + func (c *GCPSEVSNP) SetMeasurements(m measurements.M) + func (c GCPSEVSNP) EqualTo(other AttestationCfg) (bool, error) + func (c GCPSEVSNP) GetMeasurements() measurements.M + type NodeGroup struct + InitialCount int + InstanceType string + Role string + StateDiskSizeGB int + StateDiskType string + Zone string + func (_ NodeGroup) Doc() *encoder.Doc + type OpenStackConfig struct + AvailabilityZone string + Cloud string + CloudsYAMLPath string + DeployCSIDriver *bool + DeployYawolLoadBalancer *bool + FloatingIPPoolID string + RegionName string + STACKITProjectID string + YawolFlavorID string + YawolImageID string + func (_ OpenStackConfig) Doc() *encoder.Doc + type ProviderConfig struct + AWS *AWSConfig + Azure *AzureConfig + GCP *GCPConfig + OpenStack *OpenStackConfig + QEMU *QEMUConfig + func (_ ProviderConfig) Doc() *encoder.Doc + type QEMUConfig struct + Firmware string + ImageFormat string + LibvirtContainerImage string + LibvirtURI string + Memory int + MetadataAPIImage string + NVRAM string + VCPUs int + func (_ QEMUConfig) Doc() *encoder.Doc + type QEMUTDX struct + Measurements measurements.M + func (QEMUTDX) GetVariant() variant.Variant + func (_ QEMUTDX) Doc() *encoder.Doc + func (c *QEMUTDX) SetMeasurements(m measurements.M) + func (c QEMUTDX) EqualTo(other AttestationCfg) (bool, error) + func (c QEMUTDX) GetMeasurements() measurements.M + type QEMUVTPM struct + Measurements measurements.M + func (QEMUVTPM) GetVariant() variant.Variant + func (_ QEMUVTPM) Doc() *encoder.Doc + func (c *QEMUVTPM) SetMeasurements(m measurements.M) + func (c QEMUVTPM) EqualTo(other AttestationCfg) (bool, error) + func (c QEMUVTPM) GetMeasurements() measurements.M + type SNPFirmwareSignerConfig struct + AcceptedKeyDigests idkeydigest.List + EnforcementPolicy idkeydigest.Enforcement + MAAURL string + func (_ SNPFirmwareSignerConfig) Doc() *encoder.Doc + func (c SNPFirmwareSignerConfig) EqualTo(other SNPFirmwareSignerConfig) bool + type UnsupportedAppRegistrationError struct + func (_ UnsupportedAppRegistrationError) Doc() *encoder.Doc + func (e *UnsupportedAppRegistrationError) Error() string + type ValidationError struct + func (e *ValidationError) Error() string + func (e *ValidationError) LongMessage() string