registration

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: MPL-2.0 Imports: 9 Imported by: 0

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

NewServiceRegistrationManager creates a new ServiceRegistrationManager object with the given configuration and Consul client. It sets default values where relevant, including a default HTTP check.

func (*ServiceRegistrationManager) Start

Start starts the service registration manager, which will register CTS as a service with Consul and deregister it if CTS is stopped.

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.

Jump to

Keyboard shortcuts

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