dnsStorage

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DnsStorage

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

func NewDnsStorage

func NewDnsStorage() (dnsStorage *DnsStorage)

func (*DnsStorage) AddHost

func (d *DnsStorage) AddHost(host Host)

func (*DnsStorage) FindHostAddresses

func (d *DnsStorage) FindHostAddresses(name string) (addrs []net.IP)

func (*DnsStorage) FindReverseHost

func (d *DnsStorage) FindReverseHost(address string) (hosts []string)

func (*DnsStorage) GetHosts

func (d *DnsStorage) GetHosts() (hosts Hosts)

func (*DnsStorage) MainRoutine

func (d *DnsStorage) MainRoutine()

func (*DnsStorage) RemoveHost

func (d *DnsStorage) RemoveHost(id string)

func (*DnsStorage) Subscribe

func (d *DnsStorage) Subscribe() (s *Subscription)

func (*DnsStorage) Unsubscribe

func (d *DnsStorage) Unsubscribe(s *Subscription)

type Host

type Host struct {
	Id        string
	Address   net.IP
	Name      string
	Aliases   []string
	Container *docker.Container
}

type Hosts

type Hosts map[string]Host

type Subscription

type Subscription struct {
	OnAdd    chan Host
	OnRemove chan string
}

Jump to

Keyboard shortcuts

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