disco

package
v0.41.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsulDiscoverer

type ConsulDiscoverer struct {
	// contains filtered or unexported fields
}

func NewConsulDiscoverer

func NewConsulDiscoverer(consulClient *consul.Client, basicAuth *config.BasicAuth, dcName, hcAddr string) *ConsulDiscoverer

func (*ConsulDiscoverer) RemoveKvEntry

func (cd *ConsulDiscoverer) RemoveKvEntry(entry *entries.SignedEntry)

func (*ConsulDiscoverer) SetKVEntry

func (cd *ConsulDiscoverer) SetKVEntry(entry *entries.SignedEntry)

type GslocConsul added in v0.9.0

type GslocConsul struct {
	// contains filtered or unexported fields
}

func NewGslocConsul added in v0.9.0

func NewGslocConsul(consulClient *consul.Client) *GslocConsul

func (*GslocConsul) ConvertPairToSignedEntry added in v0.9.0

func (c *GslocConsul) ConvertPairToSignedEntry(pair *consul.KVPair) (*entries.SignedEntry, error)

func (*GslocConsul) GetEntryStatus added in v0.9.0

func (c *GslocConsul) GetEntryStatus(fqdn string) (*gslbsvc.GetEntryStatusResponse, error)

func (*GslocConsul) ListEntries added in v0.9.0

func (c *GslocConsul) ListEntries(prefix string, tags []string) ([]*entries.SignedEntry, error)

func (*GslocConsul) ListEntriesStatus added in v0.9.0

func (c *GslocConsul) ListEntriesStatus(prefix string, tags []string) ([]*gslbsvc.GetEntryStatusResponse, error)

func (*GslocConsul) RetrieveSignedEntry added in v0.9.0

func (c *GslocConsul) RetrieveSignedEntry(fqdn string) (*entries.SignedEntry, error)

Jump to

Keyboard shortcuts

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