Documentation ¶
Index ¶
- Constants
- func AddValueToRequestTemplate(templateInterface map[string]interface{}, field string, value interface{}) map[string]interface{}
- func ConvertToISO8601(givenTime time.Time) string
- func GetActionNameIDMap(resourceActions []sdk.Operation) map[string]string
- func GetActionTemplateDataByComponent(actionTemplate map[string]interface{}, componentName string) map[string]interface{}
- func GetConfiguration(componentName string, resourceConfiguration []sdk.ResourceConfigurationStruct) map[string]interface{}
- func GetResourceByID(resourceConfigStructList []sdk.ResourceConfigurationStruct, resourceID string) sdk.ResourceConfigurationStruct
- func GetResourceConfigurationByComponent(resourceConfigurationList []sdk.ResourceConfigurationStruct, component string) sdk.ResourceConfigurationStruct
- func Provider() terraform.ResourceProvider
- func ReplaceValueInRequestTemplate(templateInterface map[string]interface{}, field string, value interface{}) bool
- func ResourceMapper() map[string]string
- func UpdateResourceConfigurationMap(resourceConfiguration map[string]interface{}, ...) (map[string]interface{}, bool)
- type ProviderSchema
Constants ¶
const ( ConfigInvalidError = "The resource_configuration in the config file has invalid component name(s): %v " DestroyActionTemplateError = "Error retrieving destroy action template for the deployment %v: %v " BusinessGroupIDNameNotMatchingErr = "The business group name %s and id %s does not belong to the same business group, provide either name or id" CatalogItemIDNameNotMatchingErr = "The catalog item name %s and id %s does not belong to the same catalog item, provide either name or id" )
error constants
Variables ¶
This section is empty.
Functions ¶
func AddValueToRequestTemplate ¶ added in v1.0.3
func AddValueToRequestTemplate(templateInterface map[string]interface{}, field string, value interface{}) map[string]interface{}
AddValueToRequestTemplate modeled after replaceValueInRequestTemplate for values being added to template vs updating existing ones
func ConvertToISO8601 ¶
ConvertToISO8601 converts time to the format ISO8601 (2020-04-16T00:15:44.700Z) that vRA 7.x understands
func GetActionNameIDMap ¶
GetActionNameIDMap returns a map of Action name and id
func GetActionTemplateDataByComponent ¶
func GetActionTemplateDataByComponent(actionTemplate map[string]interface{}, componentName string) map[string]interface{}
GetActionTemplateDataByComponent return the map corresponding the component name in the template data
func GetConfiguration ¶ added in v1.0.3
func GetConfiguration(componentName string, resourceConfiguration []sdk.ResourceConfigurationStruct) map[string]interface{}
GetConfiguration returns the configuration property for the componentName from the resource_configuration provided in the .tf file
func GetResourceByID ¶
func GetResourceByID(resourceConfigStructList []sdk.ResourceConfigurationStruct, resourceID string) sdk.ResourceConfigurationStruct
GetResourceByID return the resoirce config struct object filtered by ID
func GetResourceConfigurationByComponent ¶
func GetResourceConfigurationByComponent(resourceConfigurationList []sdk.ResourceConfigurationStruct, component string) sdk.ResourceConfigurationStruct
GetResourceConfigurationByComponent returns the resource_configuration corresponding the component
func Provider ¶
func Provider() terraform.ResourceProvider
Provider - This function initializes the provider schema also the config function and resource mapping
func ReplaceValueInRequestTemplate ¶ added in v1.0.3
func ReplaceValueInRequestTemplate(templateInterface map[string]interface{}, field string, value interface{}) bool
ReplaceValueInRequestTemplate replaces the value for a given key in a catalog request template.
func ResourceMapper ¶ added in v1.0.3
ResourceMapper returns the mapping of resource attributes from ResourceView APIs to Catalog Item Request Template APIs
func UpdateResourceConfigurationMap ¶ added in v1.0.3
func UpdateResourceConfigurationMap( resourceConfiguration map[string]interface{}, vmData map[string]map[string]interface{}) (map[string]interface{}, bool)
UpdateResourceConfigurationMap updates the resource configuration with the deployment resource data if there is difference between the config data and deployment data, return true
Types ¶
type ProviderSchema ¶
type ProviderSchema struct { CatalogItemName string CatalogItemID string Description string Reasons string BusinessGroupID string BusinessGroupName string WaitTimeout int RequestStatus string DeploymentConfiguration map[string]interface{} DeploymentDestroy bool Lease int DeploymentID string ResourceConfiguration []sdk.ResourceConfigurationStruct }
ProviderSchema represents the information provided in the tf file