Documentation ¶
Index ¶
- Constants
- 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 GetResourceByID(resourceConfigStructList []sdk.ResourceConfigurationStruct, resourceID string) sdk.ResourceConfigurationStruct
- func GetResourceConfigurationByComponent(resourceConfigurationList []sdk.ResourceConfigurationStruct, component string) sdk.ResourceConfigurationStruct
- func Provider() terraform.ResourceProvider
- type ProviderSchema
Constants ¶
View Source
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 ConvertToISO8601 ¶ added in v1.0.0
ConvertToISO8601 converts time to the format ISO8601 (2020-04-16T00:15:44.700Z) that vRA 7.x understands
func GetActionNameIDMap ¶ added in v1.0.0
GetActionNameIDMap returns a map of Action name and id
func GetActionTemplateDataByComponent ¶ added in v1.0.0
func GetActionTemplateDataByComponent(actionTemplate map[string]interface{}, componentName string) map[string]interface{}
GetActionTemplateDataByComponent return the map corresponding the component name in the template data
func GetResourceByID ¶ added in v1.0.0
func GetResourceByID(resourceConfigStructList []sdk.ResourceConfigurationStruct, resourceID string) sdk.ResourceConfigurationStruct
GetResourceByID return the resoirce config struct object filtered by ID
func GetResourceConfigurationByComponent ¶ added in v1.0.0
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
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
Click to show internal directories.
Click to hide internal directories.