Documentation ¶
Index ¶
- Constants
- Variables
- func GetInspectionListConfig(inspectionsEnvVars map[ClusterClassEnvVar]string) string
- func GetInspectionResultsConfig(inspectionsEnvVars map[ClusterClassEnvVar]string) string
- func ReadClusterEnvironmentVariables() (envVars map[ClusterClassEnvVar]string, errs []error)
- type ClusterClassEnvVar
Constants ¶
View Source
const ( InspectionListDataSourceName = "inspection_list_Test" InspectionResultsDataSourceName = "inspection_result_Test" )
Variables ¶
View Source
var ( InspectionListDataSourceFullName = fmt.Sprintf("data.%s.%s", inspectionsres.ResourceNameInspections, InspectionListDataSourceName) InspectionResultsDataSourceFullName = fmt.Sprintf("data.%s.%s", inspectionsres.ResourceNameInspectionResults, InspectionResultsDataSourceName) )
View Source
var ClusterEnvironmentVariables = map[ClusterClassEnvVar]bool{ ManagementClusterNameEnv: true, ProvisionerNameEnv: true, ClusterNameEnv: true, InspectionNameEnv: true, }
Functions ¶
func GetInspectionListConfig ¶
func GetInspectionListConfig(inspectionsEnvVars map[ClusterClassEnvVar]string) string
func GetInspectionResultsConfig ¶
func GetInspectionResultsConfig(inspectionsEnvVars map[ClusterClassEnvVar]string) string
func ReadClusterEnvironmentVariables ¶
func ReadClusterEnvironmentVariables() (envVars map[ClusterClassEnvVar]string, errs []error)
Types ¶
type ClusterClassEnvVar ¶
type ClusterClassEnvVar string
const ( // TKGM Env Vars. ManagementClusterNameEnv ClusterClassEnvVar = "MANAGEMENT_CLUSTER_NAME" ProvisionerNameEnv ClusterClassEnvVar = "PROVISIONER_NAME" ClusterNameEnv ClusterClassEnvVar = "CLUSTER_NAME" InspectionNameEnv ClusterClassEnvVar = "INSPECTION_NAME" )
Click to show internal directories.
Click to hide internal directories.