Documentation ¶
Index ¶
- func Provider() terraform.ResourceProvider
- type Config
- 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) (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 ¶
This section is empty.
Functions ¶
func Provider ¶
func Provider() terraform.ResourceProvider
Provider returns a terraform.ResourceProvider.
Types ¶
type Config ¶
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) (eg govcd.EdgeGateway, err error)
Same as GetEdgeGateway, but using data from the resource, if available
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
- provider.go
- resource_vcd_catalog.go
- resource_vcd_catalog_item.go
- resource_vcd_catalog_media.go
- resource_vcd_dnat.go
- resource_vcd_edgegateway_vpn.go
- resource_vcd_firewall_rules.go
- resource_vcd_inserted_media.go
- resource_vcd_network.go
- resource_vcd_network_direct.go
- resource_vcd_network_isolated.go
- resource_vcd_network_routed.go
- resource_vcd_org.go
- resource_vcd_snat.go
- resource_vcd_vapp.go
- resource_vcd_vapp_vm.go
- structure.go
Click to show internal directories.
Click to hide internal directories.