Documentation ¶
Index ¶
- Variables
- func DataSources(nameRegexp string, includeDeprecated bool) (map[string]*schema.Resource, error)
- func GetVcenterHref(vcdClient *govcd.VCDClient, name string) (string, error)
- func IsFloatAndBetween(min, max float64) schema.SchemaValidateFunc
- func IsIntAndAtLeast(min int) schema.SchemaValidateFunc
- func Provider() *schema.Provider
- func ProviderAuthenticate(client *govcd.VCDClient, user, password, token, org string) error
- func Resources(nameRegexp string, includeDeprecated bool) (map[string]*schema.Resource, error)
- type Config
- type StringMap
- type VCDClient
- func (cli *VCDClient) GetAdminOrg(orgName string) (org *govcd.AdminOrg, err error)
- func (cli *VCDClient) GetAdminOrgFromResource(d *schema.ResourceData) (org *govcd.AdminOrg, err error)
- func (cli *VCDClient) GetEdgeGateway(orgName, vdcName, edgeGwName string) (eg *govcd.EdgeGateway, err error)
- func (cli *VCDClient) GetEdgeGatewayFromResource(d *schema.ResourceData, edgeGatewayFieldName string) (eg *govcd.EdgeGateway, err error)
- func (cli *VCDClient) GetOrgAndVdc(orgName, vdcName string) (org *govcd.Org, vdc *govcd.Vdc, err error)
- func (cli *VCDClient) GetOrgAndVdcFromResource(d *schema.ResourceData) (org *govcd.Org, vdc *govcd.Vdc, err error)
Constants ¶
This section is empty.
Variables ¶
var BuildVersion = "unset"
BuildVersion holds version which is meant to be injected at build time using ldflags (e.g. 'go build -ldflags="-X 'github.com/vmware/terraform-provider-vcd/v3/vcd.BuildVersion=v1.0.0'"')
var ( // Separation string used for import operations // Can be changed usin either "import_separator" property in Provider // or environment variable "VCD_IMPORT_SEPARATOR" ImportSeparator = "." )
Functions ¶
func DataSources ¶
DataSources is a public function which allows to filter and access all defined data sources When 'nameRegexp' is not empty - it will return only those matching the regexp When 'includeDeprecated' is false - it will skip out the resources which have a DeprecationMessage set
func IsFloatAndBetween ¶
func IsFloatAndBetween(min, max float64) schema.SchemaValidateFunc
IsFloatAndBetween returns a SchemaValidateFunc which tests if the provided value convertable to float64 and is between min and max (inclusive).
func IsIntAndAtLeast ¶
func IsIntAndAtLeast(min int) schema.SchemaValidateFunc
IsIntAndAtLeast returns a SchemaValidateFunc which tests if the provided value string is convertable to int and is at least min (inclusive)
func ProviderAuthenticate ¶
Types ¶
type Config ¶
type Config struct { User string Password string Token string // Token used instead of user and password SysOrg string // Org used for authentication Org string // Default Org used for API operations Vdc string // Default (optional) VDC for API operations Href string MaxRetryTimeout int InsecureFlag bool // UseSamlAdfs specifies if SAML auth is used for authenticating vCD instead of local login. // The following conditions must be met so that authentication SAML authentication works: // * SAML IdP (Identity Provider) is Active Directory Federation Service (ADFS) // * Authentication endpoint "/adfs/services/trust/13/usernamemixed" must be enabled on ADFS // server UseSamlAdfs bool // CustomAdfsRptId allows to set custom Relaying Party Trust identifier. By default vCD Entity // ID is used as Relaying Party Trust identifier. CustomAdfsRptId string }
type StringMap ¶
type StringMap map[string]interface{}
Type used to simplify reading resource definitions
type VCDClient ¶
type VCDClient struct { *govcd.VCDClient SysOrg string Org string // name of default Org Vdc string // name of default VDC MaxRetryTimeout int InsecureFlag bool }
func (*VCDClient) GetAdminOrg ¶
GetAdminOrg finds org using the names provided in the args. If the name is empty, it will use the default org name from the provider.
func (*VCDClient) GetAdminOrgFromResource ¶
func (cli *VCDClient) GetAdminOrgFromResource(d *schema.ResourceData) (org *govcd.AdminOrg, err error)
Same as GetOrgAndVdc, but using data from the resource, if available.
func (*VCDClient) GetEdgeGateway ¶
func (cli *VCDClient) GetEdgeGateway(orgName, vdcName, edgeGwName string) (eg *govcd.EdgeGateway, err error)
Gets an edge gateway when you don't need org or vdc for other purposes
func (*VCDClient) GetEdgeGatewayFromResource ¶
func (cli *VCDClient) GetEdgeGatewayFromResource(d *schema.ResourceData, edgeGatewayFieldName string) (eg *govcd.EdgeGateway, err error)
Same as GetEdgeGateway, but using data from the resource, if available edgeGatewayFieldName is the name used in the resource. It is usually "edge_gateway" for all resources that *use* an edge gateway, and when the resource is vcd_edgegateway, it is "name"
func (*VCDClient) GetOrgAndVdc ¶
func (cli *VCDClient) GetOrgAndVdc(orgName, vdcName string) (org *govcd.Org, vdc *govcd.Vdc, err error)
GetOrgAndVdc finds a pair of org and vdc using the names provided in the args. If the names are empty, it will use the default org and vdc names from the provider.
func (*VCDClient) GetOrgAndVdcFromResource ¶
func (cli *VCDClient) GetOrgAndVdcFromResource(d *schema.ResourceData) (org *govcd.Org, vdc *govcd.Vdc, err error)
Same as GetOrgAndVdc, but using data from the resource, if available.
Source Files ¶
- catalogitem.go
- config.go
- datasource_nsxt_tier0_router.go
- datasource_vcd_catalog.go
- datasource_vcd_catalog_item.go
- datasource_vcd_catalog_media.go
- datasource_vcd_edgegateway.go
- datasource_vcd_external_network.go
- datasource_vcd_external_network_v2.go
- datasource_vcd_independent_disk.go
- datasource_vcd_ipset.go
- datasource_vcd_lb_app_profile.go
- datasource_vcd_lb_app_rule.go
- datasource_vcd_lb_server_pool.go
- datasource_vcd_lb_service_monitor.go
- datasource_vcd_lb_virtual_server.go
- datasource_vcd_network_direct.go
- datasource_vcd_network_isolated.go
- datasource_vcd_network_isolated_v2.go
- datasource_vcd_network_routed.go
- datasource_vcd_network_routed_v2.go
- datasource_vcd_nsxt_edge_cluster.go
- datasource_vcd_nsxt_edgegateway.go
- datasource_vcd_nsxt_manager.go
- datasource_vcd_nsxt_network_dhcp.go
- datasource_vcd_nsxt_network_imported.go
- datasource_vcd_nsxv_dhcp_relay.go
- datasource_vcd_nsxv_dnat.go
- datasource_vcd_nsxv_firewall.go
- datasource_vcd_nsxv_snat.go
- datasource_vcd_org.go
- datasource_vcd_org_user.go
- datasource_vcd_org_vdc.go
- datasource_vcd_portgroup.go
- datasource_vcd_resource_list.go
- datasource_vcd_resource_schema.go
- datasource_vcd_storage_profile.go
- datasource_vcd_vapp.go
- datasource_vcd_vapp_network.go
- datasource_vcd_vapp_org_network.go
- datasource_vcd_vapp_vm.go
- datasource_vcd_vm.go
- datasource_vcd_vm_affinity_rule.go
- datasource_vcd_vm_sizing_policy.go
- datasource_vcenter.go
- filter.go
- filter_get.go
- hashcode.go
- helpers.go
- mutexkv.go
- nsxv_nat.go
- provider.go
- resource_vcd_catalog.go
- resource_vcd_catalog_item.go
- resource_vcd_catalog_media.go
- resource_vcd_edgegateway.go
- resource_vcd_edgegateway_settings.go
- resource_vcd_edgegateway_vpn.go
- resource_vcd_external_network.go
- resource_vcd_external_network_v2.go
- resource_vcd_independent_disk.go
- resource_vcd_inserted_media.go
- resource_vcd_ipset.go
- resource_vcd_lb_app_profile.go
- resource_vcd_lb_app_rule.go
- resource_vcd_lb_server_pool.go
- resource_vcd_lb_service_monitor.go
- resource_vcd_lb_virtual_server.go
- resource_vcd_network_direct.go
- resource_vcd_network_isolated.go
- resource_vcd_network_isolated_v2.go
- resource_vcd_network_routed.go
- resource_vcd_network_routed_v2.go
- resource_vcd_nsxt_edgegateway.go
- resource_vcd_nsxt_network_dhcp.go
- resource_vcd_nsxt_network_imported.go
- resource_vcd_nsxv_dhcp_relay.go
- resource_vcd_nsxv_dnat.go
- resource_vcd_nsxv_firewall_rule.go
- resource_vcd_nsxv_snat.go
- resource_vcd_org.go
- resource_vcd_org_group.go
- resource_vcd_org_user.go
- resource_vcd_org_vdc.go
- resource_vcd_vapp.go
- resource_vcd_vapp_access_control.go
- resource_vcd_vapp_firewall_rules.go
- resource_vcd_vapp_nat_rules.go
- resource_vcd_vapp_network.go
- resource_vcd_vapp_org_network.go
- resource_vcd_vapp_static_routing.go
- resource_vcd_vapp_vm.go
- resource_vcd_vm.go
- resource_vcd_vm_affinity_rule.go
- resource_vcd_vm_internal_disk.go
- resource_vcd_vm_sizing_policy.go
- structure.go
- suppress_funcs.go
- validate_funcs.go