vra7

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 21, 2020 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

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

func ConvertToISO8601(givenTime time.Time) string

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

func GetActionNameIDMap(resourceActions []sdk.Operation) map[string]string

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL