Documentation ¶
Index ¶
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 Config struct { // The application ID required for API requests. This needs to be created // in the PHPIPAM console. It can also be supplied via the PHPIPAM_APP_ID // environment variable. AppID string // The API endpoint. This defaults to http://localhost/api, and can also be // supplied via the PHPIPAM_ENDPOINT_ADDR environment variable. Endpoint string // The password for the PHPIPAM account. This can also be supplied via the // PHPIPAM_PASSWORD environment variable. Password string // The user name for the PHPIPAM account. This can also be supplied via the // PHPIPAM_USER_NAME environment variable. Username string }
Config provides the configuration for the PHPIPAM provider.
func (*Config) ValidateConnection ¶
func (c *Config) ValidateConnection(sc *sections.Controller) error
ValidateConnection ensures that we can connect to PHPIPAM early, so that we do not fail in the middle of a TF run if it can be prevented.
type ProviderPHPIPAMClient ¶
type ProviderPHPIPAMClient struct {
// contains filtered or unexported fields
}
ProviderPHPIPAMClient is a structure that contains the client connections necessary to interface with the PHPIPAM API controllers. Example: subnets.Controller, or addresses.Controller.
Source Files ¶
- address_structure.go
- config.go
- custom_field_structure.go
- data_source_phpipam_address.go
- data_source_phpipam_first_free_address.go
- data_source_phpipam_section.go
- data_source_phpipam_subnet.go
- data_source_phpipam_vlan.go
- helper.go
- provider.go
- resource_phpipam_address.go
- resource_phpipam_section.go
- resource_phpipam_subnet.go
- resource_phpipam_vlan.go
- section_structure.go
- subnet_structure.go
- vlan_structure.go
Click to show internal directories.
Click to hide internal directories.