netbox

package
v0.0.1-pre.0...-e5f1f8c Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2020 License: Apache-2.0 Imports: 15 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 NETBOX console. It can also be supplied via the NETBOX_APP_ID
	// environment variable.
	AppID string

	// The API endpoint. This defaults to http://localhost/api, and can also be
	// supplied via the NETBOX_ENDPOINT_ADDR environment variable.
	Endpoint string
}

Config provides the configuration for the NETBOX providerr.

func (*Config) Client

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

func (*Config) ValidateConnection

func (c *Config) ValidateConnection(sc *client.NetBox) error

ValidateConnection ensures that we can connect to Netbox early, so that we do not fail in the middle of a TF run if it can be prevented.

type ProviderNetboxClient

type ProviderNetboxClient struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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