config

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2022 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsulOpts

type ConsulOpts struct {
	// DC is the Consul datacenter used for API calls. This field is required.
	DC string

	// Address is the <address>:<port> that your Consul servers expect to
	// recieve API calls on. This field is required.
	Address string

	// ACLToken is not required but if present will be passed as the token for
	// API calls.
	ACLToken string

	// TLSCACertFile is the path to a PEM formatted CA Certificate. Required
	// when `EnableTLS` is true.
	TLSCACertFile string

	// TLSCertFile is the path to a PEM formatted Certificate. Required when
	// `EnableTLS` is true.
	TLSCertFile string

	// TLSKeyFile is the path to a PEM formatted Private Key. Required when
	// `EnableTLS` is true.
	TLSKeyFile string
}

ConsulOpts contains the configuration for interacting with the Consul cluster that Attaché uses for leader lock and to retrieve the scaling options in the Consul KV store.

func (*ConsulOpts) MakeConsulConfig

func (c *ConsulOpts) MakeConsulConfig() (*consul.Config, error)

MakeConsulConfig constructs a `*consul.Config`.

Jump to

Keyboard shortcuts

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