consul

package
v1.1.4-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package consul implements a syncer from consul to k8s.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Source

type Source struct {
	ConsulClient *api.Client     // Consul API client
	Domain       string          // Consul DNS domain
	Sink         *connector.Sink // Sink is the sink to update with services
	Prefix       string          // Prefix is a prefix to prepend to services
	FilterTag    string          // The tag value for services registered
	PrefixTag    string
	SuffixTag    string
	PassingOnly  bool
}

Source is the source for the sync that watches Consul services and updates a Sink whenever the set of services to register changes.

func (*Source) Aggregate

Aggregate micro services

func (*Source) Run

func (s *Source) Run(ctx context.Context)

Run is the long-running loop for watching Consul services and updating the Sink.

Jump to

Keyboard shortcuts

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