dnslib

package
v0.0.0-...-b33a62e Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2015 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddHostnameDNS

func AddHostnameDNS(client *etcdlib.EtcdClient, dockeruri string, id int64, name string, hostname string, domain string, port int, protocol string, region string, priority int, iface string) error

func CleanDNS

func CleanDNS(client *etcdlib.EtcdClient) error

func DeleteHostnameDNS

func DeleteHostnameDNS(client *etcdlib.EtcdClient, id int64, name string, hostname string, domain string, port int, region string) error

func FindHostnameByIP

func FindHostnameByIP(client *etcdlib.EtcdClient, address string) string

func GetLocalIp

func GetLocalIp(server string) (string, error)

func GetLocalIpByInterface

func GetLocalIpByInterface(interf string) (string, error)

Types

type DnsEntry

type DnsEntry struct {
	Port     int
	Priority int
	Host     string
}

type DnsHost

type DnsHost struct {
	EtcdKey  string
	Hostname string
	Entry    []DnsEntry
}

func GetHostnamesDNS

func GetHostnamesDNS(client *etcdlib.EtcdClient, path string) ([]DnsHost, error)

type Error

type Error string

func (Error) Error

func (e Error) Error() string

Jump to

Keyboard shortcuts

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