2022-05-16 12:54:25 -04:00
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
// Code generated by hack/docgen tool. DO NOT EDIT.
package config
import (
"github.com/talos-systems/talos/pkg/machinery/config/encoder"
)
var (
ConfigDoc encoder . Doc
2022-08-29 10:49:44 -04:00
UpgradeConfigDoc encoder . Doc
2022-05-17 04:52:37 -04:00
UserKeyDoc encoder . Doc
2022-05-16 12:54:25 -04:00
ProviderConfigDoc encoder . Doc
AzureConfigDoc encoder . Doc
GCPConfigDoc encoder . Doc
QEMUConfigDoc encoder . Doc
)
func init ( ) {
ConfigDoc . Type = "Config"
ConfigDoc . Comments [ encoder . LineComment ] = "Config defines configuration used by CLI."
ConfigDoc . Description = "Config defines configuration used by CLI."
2022-09-15 10:51:07 -04:00
ConfigDoc . Fields = make ( [ ] encoder . Doc , 7 )
2022-05-18 12:10:57 -04:00
ConfigDoc . Fields [ 0 ] . Name = "version"
ConfigDoc . Fields [ 0 ] . Type = "string"
2022-05-16 12:54:25 -04:00
ConfigDoc . Fields [ 0 ] . Note = ""
2022-05-18 12:10:57 -04:00
ConfigDoc . Fields [ 0 ] . Description = "Schema version of this configuration file."
ConfigDoc . Fields [ 0 ] . Comments [ encoder . LineComment ] = "Schema version of this configuration file."
2022-09-15 10:51:07 -04:00
ConfigDoc . Fields [ 1 ] . Name = "stateDiskSizeGB"
2022-05-16 12:54:25 -04:00
ConfigDoc . Fields [ 1 ] . Type = "int"
ConfigDoc . Fields [ 1 ] . Note = ""
2022-09-15 10:51:07 -04:00
ConfigDoc . Fields [ 1 ] . Description = "Size (in GB) of a node's disk to store the non-volatile state."
ConfigDoc . Fields [ 1 ] . Comments [ encoder . LineComment ] = "Size (in GB) of a node's disk to store the non-volatile state."
ConfigDoc . Fields [ 2 ] . Name = "kubernetesVersion"
ConfigDoc . Fields [ 2 ] . Type = "string"
2022-05-16 12:54:25 -04:00
ConfigDoc . Fields [ 2 ] . Note = ""
2022-09-15 10:51:07 -04:00
ConfigDoc . Fields [ 2 ] . Description = "Kubernetes version to be installed in the cluster."
ConfigDoc . Fields [ 2 ] . Comments [ encoder . LineComment ] = "Kubernetes version to be installed in the cluster."
ConfigDoc . Fields [ 3 ] . Name = "debugCluster"
ConfigDoc . Fields [ 3 ] . Type = "bool"
2022-05-16 12:54:25 -04:00
ConfigDoc . Fields [ 3 ] . Note = ""
2022-09-15 10:51:07 -04:00
ConfigDoc . Fields [ 3 ] . Description = "DON'T USE IN PRODUCTION: enable debug mode and use debug images. For usage, see: https://github.com/edgelesssys/constellation/blob/main/debugd/README.md"
ConfigDoc . Fields [ 3 ] . Comments [ encoder . LineComment ] = "DON'T USE IN PRODUCTION: enable debug mode and use debug images. For usage, see: https://github.com/edgelesssys/constellation/blob/main/debugd/README.md"
ConfigDoc . Fields [ 4 ] . Name = "provider"
ConfigDoc . Fields [ 4 ] . Type = "ProviderConfig"
2022-05-17 04:52:37 -04:00
ConfigDoc . Fields [ 4 ] . Note = ""
2022-09-15 10:51:07 -04:00
ConfigDoc . Fields [ 4 ] . Description = "Supported cloud providers and their specific configurations."
ConfigDoc . Fields [ 4 ] . Comments [ encoder . LineComment ] = "Supported cloud providers and their specific configurations."
ConfigDoc . Fields [ 5 ] . Name = "sshUsers"
ConfigDoc . Fields [ 5 ] . Type = "[]UserKey"
2022-05-17 04:52:37 -04:00
ConfigDoc . Fields [ 5 ] . Note = ""
2022-09-15 10:51:07 -04:00
ConfigDoc . Fields [ 5 ] . Description = "Create SSH users on Constellation nodes."
ConfigDoc . Fields [ 5 ] . Comments [ encoder . LineComment ] = "Create SSH users on Constellation nodes."
2022-09-11 10:09:05 -04:00
2022-09-15 10:51:07 -04:00
ConfigDoc . Fields [ 5 ] . AddExample ( "" , [ ] UserKey { { Username : "Alice" , PublicKey : "ssh-rsa AAAAB3NzaC...5QXHKW1rufgtJeSeJ8= alice@domain.com" } } )
ConfigDoc . Fields [ 6 ] . Name = "upgrade"
ConfigDoc . Fields [ 6 ] . Type = "UpgradeConfig"
ConfigDoc . Fields [ 6 ] . Note = ""
ConfigDoc . Fields [ 6 ] . Description = "Configuration to apply during constellation upgrade."
ConfigDoc . Fields [ 6 ] . Comments [ encoder . LineComment ] = "Configuration to apply during constellation upgrade."
2022-08-29 10:49:44 -04:00
2022-09-15 10:51:07 -04:00
ConfigDoc . Fields [ 6 ] . AddExample ( "" , UpgradeConfig { Image : "" , Measurements : Measurements { } } )
2022-08-29 10:49:44 -04:00
UpgradeConfigDoc . Type = "UpgradeConfig"
UpgradeConfigDoc . Comments [ encoder . LineComment ] = "UpgradeConfig defines configuration used during constellation upgrade."
UpgradeConfigDoc . Description = "UpgradeConfig defines configuration used during constellation upgrade."
UpgradeConfigDoc . AddExample ( "" , UpgradeConfig { Image : "" , Measurements : Measurements { } } )
UpgradeConfigDoc . AppearsIn = [ ] encoder . Appearance {
{
TypeName : "Config" ,
FieldName : "upgrade" ,
} ,
}
UpgradeConfigDoc . Fields = make ( [ ] encoder . Doc , 2 )
UpgradeConfigDoc . Fields [ 0 ] . Name = "image"
UpgradeConfigDoc . Fields [ 0 ] . Type = "string"
UpgradeConfigDoc . Fields [ 0 ] . Note = ""
UpgradeConfigDoc . Fields [ 0 ] . Description = "Updated machine image to install on all nodes."
UpgradeConfigDoc . Fields [ 0 ] . Comments [ encoder . LineComment ] = "Updated machine image to install on all nodes."
UpgradeConfigDoc . Fields [ 1 ] . Name = "measurements"
UpgradeConfigDoc . Fields [ 1 ] . Type = "Measurements"
UpgradeConfigDoc . Fields [ 1 ] . Note = ""
UpgradeConfigDoc . Fields [ 1 ] . Description = "Measurements of the updated image."
UpgradeConfigDoc . Fields [ 1 ] . Comments [ encoder . LineComment ] = "Measurements of the updated image."
2022-05-17 04:52:37 -04:00
UserKeyDoc . Type = "UserKey"
UserKeyDoc . Comments [ encoder . LineComment ] = "UserKey describes a user that should be created with corresponding public SSH key."
UserKeyDoc . Description = "UserKey describes a user that should be created with corresponding public SSH key."
UserKeyDoc . AddExample ( "" , [ ] UserKey { { Username : "Alice" , PublicKey : "ssh-rsa AAAAB3NzaC...5QXHKW1rufgtJeSeJ8= alice@domain.com" } } )
UserKeyDoc . AppearsIn = [ ] encoder . Appearance {
{
TypeName : "Config" ,
FieldName : "sshUsers" ,
} ,
}
UserKeyDoc . Fields = make ( [ ] encoder . Doc , 2 )
UserKeyDoc . Fields [ 0 ] . Name = "username"
UserKeyDoc . Fields [ 0 ] . Type = "string"
UserKeyDoc . Fields [ 0 ] . Note = ""
UserKeyDoc . Fields [ 0 ] . Description = "Username of new SSH user."
UserKeyDoc . Fields [ 0 ] . Comments [ encoder . LineComment ] = "Username of new SSH user."
UserKeyDoc . Fields [ 1 ] . Name = "publicKey"
UserKeyDoc . Fields [ 1 ] . Type = "string"
UserKeyDoc . Fields [ 1 ] . Note = ""
UserKeyDoc . Fields [ 1 ] . Description = "Public key of new SSH user."
UserKeyDoc . Fields [ 1 ] . Comments [ encoder . LineComment ] = "Public key of new SSH user."
2022-05-16 12:54:25 -04:00
ProviderConfigDoc . Type = "ProviderConfig"
ProviderConfigDoc . Comments [ encoder . LineComment ] = "ProviderConfig are cloud-provider specific configuration values used by the CLI."
2022-05-17 04:52:37 -04:00
ProviderConfigDoc . Description = "ProviderConfig are cloud-provider specific configuration values used by the CLI.\nFields should remain pointer-types so custom specific configs can nil them\nif not required.\n"
2022-05-16 12:54:25 -04:00
ProviderConfigDoc . AppearsIn = [ ] encoder . Appearance {
{
TypeName : "Config" ,
FieldName : "provider" ,
} ,
}
ProviderConfigDoc . Fields = make ( [ ] encoder . Doc , 3 )
2022-05-24 05:57:48 -04:00
ProviderConfigDoc . Fields [ 0 ] . Name = "azure"
2022-05-16 12:54:25 -04:00
ProviderConfigDoc . Fields [ 0 ] . Type = "AzureConfig"
ProviderConfigDoc . Fields [ 0 ] . Note = ""
ProviderConfigDoc . Fields [ 0 ] . Description = "Configuration for Azure as provider."
ProviderConfigDoc . Fields [ 0 ] . Comments [ encoder . LineComment ] = "Configuration for Azure as provider."
2022-05-24 05:57:48 -04:00
ProviderConfigDoc . Fields [ 1 ] . Name = "gcp"
2022-05-16 12:54:25 -04:00
ProviderConfigDoc . Fields [ 1 ] . Type = "GCPConfig"
ProviderConfigDoc . Fields [ 1 ] . Note = ""
ProviderConfigDoc . Fields [ 1 ] . Description = "Configuration for Google Cloud as provider."
ProviderConfigDoc . Fields [ 1 ] . Comments [ encoder . LineComment ] = "Configuration for Google Cloud as provider."
2022-05-24 05:57:48 -04:00
ProviderConfigDoc . Fields [ 2 ] . Name = "qemu"
2022-05-16 12:54:25 -04:00
ProviderConfigDoc . Fields [ 2 ] . Type = "QEMUConfig"
ProviderConfigDoc . Fields [ 2 ] . Note = ""
ProviderConfigDoc . Fields [ 2 ] . Description = "Configuration for QEMU as provider."
ProviderConfigDoc . Fields [ 2 ] . Comments [ encoder . LineComment ] = "Configuration for QEMU as provider."
AzureConfigDoc . Type = "AzureConfig"
AzureConfigDoc . Comments [ encoder . LineComment ] = "AzureConfig are Azure specific configuration values used by the CLI."
AzureConfigDoc . Description = "AzureConfig are Azure specific configuration values used by the CLI."
AzureConfigDoc . AppearsIn = [ ] encoder . Appearance {
{
TypeName : "ProviderConfig" ,
2022-05-24 05:57:48 -04:00
FieldName : "azure" ,
2022-05-16 12:54:25 -04:00
} ,
}
2022-08-31 11:35:33 -04:00
AzureConfigDoc . Fields = make ( [ ] encoder . Doc , 15 )
2022-05-16 12:54:25 -04:00
AzureConfigDoc . Fields [ 0 ] . Name = "subscription"
AzureConfigDoc . Fields [ 0 ] . Type = "string"
AzureConfigDoc . Fields [ 0 ] . Note = ""
AzureConfigDoc . Fields [ 0 ] . Description = "Subscription ID of the used Azure account. See: https://docs.microsoft.com/en-us/azure/azure-portal/get-subscription-tenant-id#find-your-azure-subscription"
AzureConfigDoc . Fields [ 0 ] . Comments [ encoder . LineComment ] = "Subscription ID of the used Azure account. See: https://docs.microsoft.com/en-us/azure/azure-portal/get-subscription-tenant-id#find-your-azure-subscription"
AzureConfigDoc . Fields [ 1 ] . Name = "tenant"
AzureConfigDoc . Fields [ 1 ] . Type = "string"
AzureConfigDoc . Fields [ 1 ] . Note = ""
AzureConfigDoc . Fields [ 1 ] . Description = "Tenant ID of the used Azure account. See: https://docs.microsoft.com/en-us/azure/azure-portal/get-subscription-tenant-id#find-your-azure-ad-tenant"
AzureConfigDoc . Fields [ 1 ] . Comments [ encoder . LineComment ] = "Tenant ID of the used Azure account. See: https://docs.microsoft.com/en-us/azure/azure-portal/get-subscription-tenant-id#find-your-azure-ad-tenant"
AzureConfigDoc . Fields [ 2 ] . Name = "location"
AzureConfigDoc . Fields [ 2 ] . Type = "string"
AzureConfigDoc . Fields [ 2 ] . Note = ""
AzureConfigDoc . Fields [ 2 ] . Description = "Azure datacenter region to be used. See: https://docs.microsoft.com/en-us/azure/availability-zones/az-overview#azure-regions-with-availability-zones"
AzureConfigDoc . Fields [ 2 ] . Comments [ encoder . LineComment ] = "Azure datacenter region to be used. See: https://docs.microsoft.com/en-us/azure/availability-zones/az-overview#azure-regions-with-availability-zones"
2022-09-11 10:09:05 -04:00
AzureConfigDoc . Fields [ 3 ] . Name = "resourceGroup"
2022-05-16 12:54:25 -04:00
AzureConfigDoc . Fields [ 3 ] . Type = "string"
AzureConfigDoc . Fields [ 3 ] . Note = ""
2022-09-11 10:09:05 -04:00
AzureConfigDoc . Fields [ 3 ] . Description = "Resource group for the cluster's resources. Must already exist."
AzureConfigDoc . Fields [ 3 ] . Comments [ encoder . LineComment ] = "Resource group for the cluster's resources. Must already exist."
AzureConfigDoc . Fields [ 4 ] . Name = "userAssignedIdentity"
2022-08-02 06:24:55 -04:00
AzureConfigDoc . Fields [ 4 ] . Type = "string"
2022-05-16 12:54:25 -04:00
AzureConfigDoc . Fields [ 4 ] . Note = ""
2022-09-11 10:09:05 -04:00
AzureConfigDoc . Fields [ 4 ] . Description = "Authorize spawned VMs to access Azure API."
AzureConfigDoc . Fields [ 4 ] . Comments [ encoder . LineComment ] = "Authorize spawned VMs to access Azure API."
AzureConfigDoc . Fields [ 5 ] . Name = "appClientID"
2022-08-29 08:18:05 -04:00
AzureConfigDoc . Fields [ 5 ] . Type = "string"
2022-05-16 12:54:25 -04:00
AzureConfigDoc . Fields [ 5 ] . Note = ""
2022-09-11 10:09:05 -04:00
AzureConfigDoc . Fields [ 5 ] . Description = "Application client ID of the Active Directory app registration."
AzureConfigDoc . Fields [ 5 ] . Comments [ encoder . LineComment ] = "Application client ID of the Active Directory app registration."
AzureConfigDoc . Fields [ 6 ] . Name = "clientSecretValue"
2022-08-29 08:18:05 -04:00
AzureConfigDoc . Fields [ 6 ] . Type = "string"
2022-08-02 06:24:55 -04:00
AzureConfigDoc . Fields [ 6 ] . Note = ""
2022-09-11 10:09:05 -04:00
AzureConfigDoc . Fields [ 6 ] . Description = "Client secret value of the Active Directory app registration credentials."
AzureConfigDoc . Fields [ 6 ] . Comments [ encoder . LineComment ] = "Client secret value of the Active Directory app registration credentials."
AzureConfigDoc . Fields [ 7 ] . Name = "image"
2022-08-12 09:59:45 -04:00
AzureConfigDoc . Fields [ 7 ] . Type = "string"
AzureConfigDoc . Fields [ 7 ] . Note = ""
2022-09-11 10:09:05 -04:00
AzureConfigDoc . Fields [ 7 ] . Description = "Machine image used to create Constellation nodes."
AzureConfigDoc . Fields [ 7 ] . Comments [ encoder . LineComment ] = "Machine image used to create Constellation nodes."
AzureConfigDoc . Fields [ 8 ] . Name = "instanceType"
2022-08-25 09:12:08 -04:00
AzureConfigDoc . Fields [ 8 ] . Type = "string"
AzureConfigDoc . Fields [ 8 ] . Note = ""
2022-09-11 10:09:05 -04:00
AzureConfigDoc . Fields [ 8 ] . Description = "VM instance type to use for Constellation nodes."
AzureConfigDoc . Fields [ 8 ] . Comments [ encoder . LineComment ] = "VM instance type to use for Constellation nodes."
AzureConfigDoc . Fields [ 9 ] . Name = "stateDiskType"
2022-08-31 11:35:33 -04:00
AzureConfigDoc . Fields [ 9 ] . Type = "string"
2022-08-29 08:18:05 -04:00
AzureConfigDoc . Fields [ 9 ] . Note = ""
2022-09-11 10:09:05 -04:00
AzureConfigDoc . Fields [ 9 ] . Description = "Type of a node's state disk. The type influences boot time and I/O performance. See: https://docs.microsoft.com/en-us/azure/virtual-machines/disks-types#disk-type-comparison"
AzureConfigDoc . Fields [ 9 ] . Comments [ encoder . LineComment ] = "Type of a node's state disk. The type influences boot time and I/O performance. See: https://docs.microsoft.com/en-us/azure/virtual-machines/disks-types#disk-type-comparison"
2022-08-31 11:35:33 -04:00
AzureConfigDoc . Fields [ 10 ] . Name = "measurements"
AzureConfigDoc . Fields [ 10 ] . Type = "Measurements"
2022-08-29 08:18:05 -04:00
AzureConfigDoc . Fields [ 10 ] . Note = ""
2022-08-31 11:35:33 -04:00
AzureConfigDoc . Fields [ 10 ] . Description = "Expected confidential VM measurements."
AzureConfigDoc . Fields [ 10 ] . Comments [ encoder . LineComment ] = "Expected confidential VM measurements."
AzureConfigDoc . Fields [ 11 ] . Name = "enforcedMeasurements"
AzureConfigDoc . Fields [ 11 ] . Type = "[]uint32"
2022-08-29 08:18:05 -04:00
AzureConfigDoc . Fields [ 11 ] . Note = ""
2022-08-31 11:35:33 -04:00
AzureConfigDoc . Fields [ 11 ] . Description = "List of values that should be enforced to be equal to the ones from the measurement list. Any non-equal values not in this list will only result in a warning."
AzureConfigDoc . Fields [ 11 ] . Comments [ encoder . LineComment ] = "List of values that should be enforced to be equal to the ones from the measurement list. Any non-equal values not in this list will only result in a warning."
AzureConfigDoc . Fields [ 12 ] . Name = "idKeyDigest"
AzureConfigDoc . Fields [ 12 ] . Type = "string"
2022-08-29 10:41:09 -04:00
AzureConfigDoc . Fields [ 12 ] . Note = ""
2022-08-31 11:35:33 -04:00
AzureConfigDoc . Fields [ 12 ] . Description = "Expected value for the field 'idkeydigest' in the AMD SEV-SNP attestation report. Only usable with ConfidentialVMs. See 4.6 and 7.3 in: https://www.amd.com/system/files/TechDocs/56860.pdf"
AzureConfigDoc . Fields [ 12 ] . Comments [ encoder . LineComment ] = "Expected value for the field 'idkeydigest' in the AMD SEV-SNP attestation report. Only usable with ConfidentialVMs. See 4.6 and 7.3 in: https://www.amd.com/system/files/TechDocs/56860.pdf"
AzureConfigDoc . Fields [ 13 ] . Name = "enforceIdKeyDigest"
2022-08-29 10:41:09 -04:00
AzureConfigDoc . Fields [ 13 ] . Type = "bool"
AzureConfigDoc . Fields [ 13 ] . Note = ""
2022-08-31 11:35:33 -04:00
AzureConfigDoc . Fields [ 13 ] . Description = "Enforce the specified idKeyDigest value during remote attestation."
AzureConfigDoc . Fields [ 13 ] . Comments [ encoder . LineComment ] = "Enforce the specified idKeyDigest value during remote attestation."
AzureConfigDoc . Fields [ 14 ] . Name = "confidentialVM"
AzureConfigDoc . Fields [ 14 ] . Type = "bool"
AzureConfigDoc . Fields [ 14 ] . Note = ""
2022-09-11 10:09:05 -04:00
AzureConfigDoc . Fields [ 14 ] . Description = "Use Confidential VMs. If set to false, Trusted Launch VMs are used instead. See: https://docs.microsoft.com/en-us/azure/confidential-computing/confidential-vm-overview"
AzureConfigDoc . Fields [ 14 ] . Comments [ encoder . LineComment ] = "Use Confidential VMs. If set to false, Trusted Launch VMs are used instead. See: https://docs.microsoft.com/en-us/azure/confidential-computing/confidential-vm-overview"
2022-05-16 12:54:25 -04:00
GCPConfigDoc . Type = "GCPConfig"
GCPConfigDoc . Comments [ encoder . LineComment ] = "GCPConfig are GCP specific configuration values used by the CLI."
GCPConfigDoc . Description = "GCPConfig are GCP specific configuration values used by the CLI."
GCPConfigDoc . AppearsIn = [ ] encoder . Appearance {
{
TypeName : "ProviderConfig" ,
2022-05-24 05:57:48 -04:00
FieldName : "gcp" ,
2022-05-16 12:54:25 -04:00
} ,
}
2022-08-31 11:35:33 -04:00
GCPConfigDoc . Fields = make ( [ ] encoder . Doc , 9 )
2022-05-16 12:54:25 -04:00
GCPConfigDoc . Fields [ 0 ] . Name = "project"
GCPConfigDoc . Fields [ 0 ] . Type = "string"
GCPConfigDoc . Fields [ 0 ] . Note = ""
GCPConfigDoc . Fields [ 0 ] . Description = "GCP project. See: https://support.google.com/googleapi/answer/7014113?hl=en"
GCPConfigDoc . Fields [ 0 ] . Comments [ encoder . LineComment ] = "GCP project. See: https://support.google.com/googleapi/answer/7014113?hl=en"
GCPConfigDoc . Fields [ 1 ] . Name = "region"
GCPConfigDoc . Fields [ 1 ] . Type = "string"
GCPConfigDoc . Fields [ 1 ] . Note = ""
GCPConfigDoc . Fields [ 1 ] . Description = "GCP datacenter region. See: https://cloud.google.com/compute/docs/regions-zones#available"
GCPConfigDoc . Fields [ 1 ] . Comments [ encoder . LineComment ] = "GCP datacenter region. See: https://cloud.google.com/compute/docs/regions-zones#available"
GCPConfigDoc . Fields [ 2 ] . Name = "zone"
GCPConfigDoc . Fields [ 2 ] . Type = "string"
GCPConfigDoc . Fields [ 2 ] . Note = ""
GCPConfigDoc . Fields [ 2 ] . Description = "GCP datacenter zone. See: https://cloud.google.com/compute/docs/regions-zones#available"
GCPConfigDoc . Fields [ 2 ] . Comments [ encoder . LineComment ] = "GCP datacenter zone. See: https://cloud.google.com/compute/docs/regions-zones#available"
2022-09-11 10:09:05 -04:00
GCPConfigDoc . Fields [ 3 ] . Name = "serviceAccountKeyPath"
2022-05-16 12:54:25 -04:00
GCPConfigDoc . Fields [ 3 ] . Type = "string"
GCPConfigDoc . Fields [ 3 ] . Note = ""
2022-09-11 10:09:05 -04:00
GCPConfigDoc . Fields [ 3 ] . Description = "Path of service account key file. For required service account roles, see https://docs.edgeless.systems/constellation/getting-started/install#authorization"
GCPConfigDoc . Fields [ 3 ] . Comments [ encoder . LineComment ] = "Path of service account key file. For required service account roles, see https://docs.edgeless.systems/constellation/getting-started/install#authorization"
GCPConfigDoc . Fields [ 4 ] . Name = "image"
2022-08-02 06:24:55 -04:00
GCPConfigDoc . Fields [ 4 ] . Type = "string"
2022-05-16 12:54:25 -04:00
GCPConfigDoc . Fields [ 4 ] . Note = ""
2022-09-11 10:09:05 -04:00
GCPConfigDoc . Fields [ 4 ] . Description = "Machine image used to create Constellation nodes."
GCPConfigDoc . Fields [ 4 ] . Comments [ encoder . LineComment ] = "Machine image used to create Constellation nodes."
GCPConfigDoc . Fields [ 5 ] . Name = "instanceType"
2022-08-23 11:49:55 -04:00
GCPConfigDoc . Fields [ 5 ] . Type = "string"
2022-05-16 12:54:25 -04:00
GCPConfigDoc . Fields [ 5 ] . Note = ""
2022-09-11 10:09:05 -04:00
GCPConfigDoc . Fields [ 5 ] . Description = "VM instance type to use for Constellation nodes."
GCPConfigDoc . Fields [ 5 ] . Comments [ encoder . LineComment ] = "VM instance type to use for Constellation nodes."
GCPConfigDoc . Fields [ 6 ] . Name = "stateDiskType"
2022-08-31 11:35:33 -04:00
GCPConfigDoc . Fields [ 6 ] . Type = "string"
2022-08-02 06:24:55 -04:00
GCPConfigDoc . Fields [ 6 ] . Note = ""
2022-09-11 10:09:05 -04:00
GCPConfigDoc . Fields [ 6 ] . Description = "Type of a node's state disk. The type influences boot time and I/O performance. See: https://cloud.google.com/compute/docs/disks#disk-types"
GCPConfigDoc . Fields [ 6 ] . Comments [ encoder . LineComment ] = "Type of a node's state disk. The type influences boot time and I/O performance. See: https://cloud.google.com/compute/docs/disks#disk-types"
2022-08-31 11:35:33 -04:00
GCPConfigDoc . Fields [ 7 ] . Name = "measurements"
GCPConfigDoc . Fields [ 7 ] . Type = "Measurements"
2022-08-12 09:59:45 -04:00
GCPConfigDoc . Fields [ 7 ] . Note = ""
2022-08-31 11:35:33 -04:00
GCPConfigDoc . Fields [ 7 ] . Description = "Expected confidential VM measurements."
GCPConfigDoc . Fields [ 7 ] . Comments [ encoder . LineComment ] = "Expected confidential VM measurements."
GCPConfigDoc . Fields [ 8 ] . Name = "enforcedMeasurements"
GCPConfigDoc . Fields [ 8 ] . Type = "[]uint32"
GCPConfigDoc . Fields [ 8 ] . Note = ""
GCPConfigDoc . Fields [ 8 ] . Description = "List of values that should be enforced to be equal to the ones from the measurement list. Any non-equal values not in this list will only result in a warning."
GCPConfigDoc . Fields [ 8 ] . Comments [ encoder . LineComment ] = "List of values that should be enforced to be equal to the ones from the measurement list. Any non-equal values not in this list will only result in a warning."
2022-05-16 12:54:25 -04:00
QEMUConfigDoc . Type = "QEMUConfig"
QEMUConfigDoc . Comments [ encoder . LineComment ] = ""
QEMUConfigDoc . Description = ""
QEMUConfigDoc . AppearsIn = [ ] encoder . Appearance {
{
TypeName : "ProviderConfig" ,
2022-05-24 05:57:48 -04:00
FieldName : "qemu" ,
2022-05-16 12:54:25 -04:00
} ,
}
2022-08-12 09:59:45 -04:00
QEMUConfigDoc . Fields = make ( [ ] encoder . Doc , 2 )
2022-05-16 12:54:25 -04:00
QEMUConfigDoc . Fields [ 0 ] . Name = "measurements"
QEMUConfigDoc . Fields [ 0 ] . Type = "Measurements"
QEMUConfigDoc . Fields [ 0 ] . Note = ""
QEMUConfigDoc . Fields [ 0 ] . Description = "Measurement used to enable measured boot."
QEMUConfigDoc . Fields [ 0 ] . Comments [ encoder . LineComment ] = "Measurement used to enable measured boot."
2022-08-12 09:59:45 -04:00
QEMUConfigDoc . Fields [ 1 ] . Name = "enforcedMeasurements"
QEMUConfigDoc . Fields [ 1 ] . Type = "[]uint32"
QEMUConfigDoc . Fields [ 1 ] . Note = ""
QEMUConfigDoc . Fields [ 1 ] . Description = "List of values that should be enforced to be equal to the ones from the measurement list. Any non-equal values not in this list will only result in a warning."
QEMUConfigDoc . Fields [ 1 ] . Comments [ encoder . LineComment ] = "List of values that should be enforced to be equal to the ones from the measurement list. Any non-equal values not in this list will only result in a warning."
2022-05-16 12:54:25 -04:00
}
func ( _ Config ) Doc ( ) * encoder . Doc {
return & ConfigDoc
}
2022-08-29 10:49:44 -04:00
func ( _ UpgradeConfig ) Doc ( ) * encoder . Doc {
return & UpgradeConfigDoc
}
2022-05-17 04:52:37 -04:00
func ( _ UserKey ) Doc ( ) * encoder . Doc {
return & UserKeyDoc
}
2022-05-16 12:54:25 -04:00
func ( _ ProviderConfig ) Doc ( ) * encoder . Doc {
return & ProviderConfigDoc
}
func ( _ AzureConfig ) Doc ( ) * encoder . Doc {
return & AzureConfigDoc
}
func ( _ GCPConfig ) Doc ( ) * encoder . Doc {
return & GCPConfigDoc
}
func ( _ QEMUConfig ) Doc ( ) * encoder . Doc {
return & QEMUConfigDoc
}
// GetConfigurationDoc returns documentation for the file ./config_doc.go.
func GetConfigurationDoc ( ) * encoder . FileDoc {
return & encoder . FileDoc {
Name : "Configuration" ,
2022-05-17 04:52:37 -04:00
Description : "This binary can be build from siderolabs/talos projects. Located at:\nhttps://github.com/siderolabs/talos/tree/master/hack/docgen\n" ,
2022-05-16 12:54:25 -04:00
Structs : [ ] * encoder . Doc {
& ConfigDoc ,
2022-08-29 10:49:44 -04:00
& UpgradeConfigDoc ,
2022-05-17 04:52:37 -04:00
& UserKeyDoc ,
2022-05-16 12:54:25 -04:00
& ProviderConfigDoc ,
& AzureConfigDoc ,
& GCPConfigDoc ,
& QEMUConfigDoc ,
} ,
}
}