Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServiceRegistrationManager ¶
type ServiceRegistrationManager struct {
// contains filtered or unexported fields
}
ServiceRegistrationManager handles the registration of Consul-Terraform-Sync as a service to Consul.
func NewServiceRegistrationManager ¶
func NewServiceRegistrationManager(conf *ServiceRegistrationManagerConfig, client client.ConsulClientInterface) *ServiceRegistrationManager
NewServiceRegistrationManager creates a new ServiceRegistrationManager object with the given configuration and Consul client. It sets default values where relevant, including a default HTTP check.
type ServiceRegistrationManagerConfig ¶
type ServiceRegistrationManagerConfig struct { ID string Port int TLSEnabled bool Tags []string ServiceRegistration *config.ServiceRegistrationConfig }
ServiceRegistrationManagerConfig defines the configurations needed to create a new ServiceRegistrationManager.
Click to show internal directories.
Click to hide internal directories.