Documentation
¶
Index ¶
- Variables
- func DataSources(nameRegexp string, includeDeprecated bool) (map[string]*schema.Resource, error)
- func IsIntAndAtLeast(min int) schema.SchemaValidateDiagFunc
- func Provider() *schema.Provider
- func ProviderAuthenticate(client *govcd.VCDClient, ...) error
- func Resources(nameRegexp string, includeDeprecated bool) (map[string]*schema.Resource, error)
- type ClientContainer
- type Config
- type StringMap
- type VCDClient
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-vcfa/vcfa.BuildVersion=v1.0.0'"')
var ( // ImportSeparator is the separation string used for import operations // Can be changed using either "import_separator" property in Provider // or environment variable "VCFA_IMPORT_SEPARATOR" ImportSeparator = "." )
Functions ¶
func DataSources ¶
DataSources is a public function which allows filtering 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 IsIntAndAtLeast ¶
func IsIntAndAtLeast(min int) schema.SchemaValidateDiagFunc
IsIntAndAtLeast returns a SchemaValidateFunc which tests if the provided value string is convertable to int and is at least min (inclusive)
func ProviderAuthenticate ¶
func ProviderAuthenticate(client *govcd.VCDClient, user, password, token, org, apiToken, apiTokenFile, saTokenFile string) error
TODO Look into refactoring this into a method of *Config
Types ¶
type ClientContainer ¶
type ClientContainer struct {
// contains filtered or unexported fields
}
ClientContainer is a structure that is being passed by Terraform SDK internally into resources via meta `meta interface{}` argument. It is being initialized in providerConfigure method
type Config ¶
type Config struct {
User string
Password string
Token string // Token used instead of user and password
ApiToken string // User generated token used instead of user and password
ApiTokenFile string // File containing a user generated API token
AllowApiTokenFile bool // Setting to suppress API Token File security warnings
ServiceAccountTokenFile string // File containing the Service Account API token
AllowSATokenFile bool // Setting to suppress Service Account Token File security warnings
SysOrg string // Org used for authentication
Org string // Default Org used for API operations
Href string
InsecureFlag bool
}
Source Files
¶
- config.go
- datasource_vcfa_certificate.go
- datasource_vcfa_content_library.go
- datasource_vcfa_content_library_item.go
- datasource_vcfa_edge_cluster.go
- datasource_vcfa_edge_cluster_qos.go
- datasource_vcfa_global_role.go
- datasource_vcfa_ip_space.go
- datasource_vcfa_kubeconfig.go
- datasource_vcfa_nsx_manager.go
- datasource_vcfa_org.go
- datasource_vcfa_org_ldap.go
- datasource_vcfa_org_local_user.go
- datasource_vcfa_org_networking.go
- datasource_vcfa_org_oidc.go
- datasource_vcfa_org_region_quota.go
- datasource_vcfa_org_regional_networking.go
- datasource_vcfa_org_regional_networking_vpc_qos.go
- datasource_vcfa_org_settings.go
- datasource_vcfa_provider_gateway.go
- datasource_vcfa_provider_ldap.go
- datasource_vcfa_region.go
- datasource_vcfa_region_storage_policy.go
- datasource_vcfa_region_zone.go
- datasource_vcfa_right.go
- datasource_vcfa_rights_bundle.go
- datasource_vcfa_role.go
- datasource_vcfa_storage_class.go
- datasource_vcfa_supervisor.go
- datasource_vcfa_supervisor_namespace.go
- datasource_vcfa_supervisor_zone.go
- datasource_vcfa_tier0_gateway.go
- datasource_vcfa_vcenter.go
- datasource_vcfa_version.go
- datasource_vcfa_vm_class.go
- helpers.go
- mutexkv.go
- provider.go
- resource_generic_crud.go
- resource_vcfa_api_token.go
- resource_vcfa_certificate.go
- resource_vcfa_content_library.go
- resource_vcfa_content_library_item.go
- resource_vcfa_edge_cluster_qos.go
- resource_vcfa_global_role.go
- resource_vcfa_ip_space.go
- resource_vcfa_nsx_manager.go
- resource_vcfa_org.go
- resource_vcfa_org_ldap.go
- resource_vcfa_org_local_user.go
- resource_vcfa_org_networking.go
- resource_vcfa_org_oidc.go
- resource_vcfa_org_region_quota.go
- resource_vcfa_org_regional_networking.go
- resource_vcfa_org_regional_networking_vpc_qos.go
- resource_vcfa_org_settings.go
- resource_vcfa_provider_gateway.go
- resource_vcfa_provider_ldap.go
- resource_vcfa_region.go
- resource_vcfa_rights_bundle.go
- resource_vcfa_role.go
- resource_vcfa_supervisor_namespace.go
- resource_vcfa_vcenter.go
- structure.go
- validate_funcs.go