consul

package
v2.2.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2018 License: MPL-2.0 Imports: 15 Imported by: 2

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 {
	Datacenter    string `mapstructure:"datacenter"`
	Address       string `mapstructure:"address"`
	Scheme        string `mapstructure:"scheme"`
	HttpAuth      string `mapstructure:"http_auth"`
	Token         string `mapstructure:"token"`
	CAFile        string `mapstructure:"ca_file"`
	CertFile      string `mapstructure:"cert_file"`
	KeyFile       string `mapstructure:"key_file"`
	InsecureHttps bool   `mapstructure:"insecure_https"`
}

Config is configuration defined in the provider block

func (*Config) Client

func (c *Config) Client() (*consulapi.Client, error)

Client returns a new client for accessing consul.

Jump to

Keyboard shortcuts

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