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`.
Click to show internal directories.
Click to hide internal directories.