phpipam

package
v0.1.0-compat-v0.8.8 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2017 License: Apache-2.0 Imports: 13 Imported by: 0

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) Client

func (c *Config) Client() (interface{}, error)

Client configures and returns a fully initialized PingdomClient.

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.

Jump to

Keyboard shortcuts

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