Documentation ¶
Index ¶
- func NewService() (s *utils.Service)
- func StartServer(rawParams []string)
- type DNSServer
- func (s *DNSServer) AddService(service utils.Service)
- func (s *DNSServer) DNSExchange(nameservers string, r *dns.Msg) (*dns.Msg, []dns.RR, error)
- func (s *DNSServer) GetAllServices() []utils.Service
- func (s *DNSServer) GetService(service utils.Service) ([]utils.Service, error)
- func (s *DNSServer) MakePrivateRR(query string, qtype uint16, m *dns.Msg)
- func (s *DNSServer) RemoveService(service utils.Service) error
- func (s *DNSServer) Start() error
- func (s *DNSServer) Stop()
- type HTTPServer
- type ServiceListProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StartServer ¶
func StartServer(rawParams []string)
Types ¶
type DNSServer ¶
type DNSServer struct {
// contains filtered or unexported fields
}
DNSServer represents a DNS server
func NewDNSServer ¶
NewDNSServer create a new DNSServer
func (*DNSServer) AddService ¶
AddService adds a new container and thus new DNS records
func (*DNSServer) DNSExchange ¶
func (*DNSServer) GetAllServices ¶
func (*DNSServer) GetService ¶
GetService reads a service from the repository
func (*DNSServer) MakePrivateRR ¶
func (*DNSServer) RemoveService ¶
RemoveService removes a new container and thus DNS records
type HTTPServer ¶
type HTTPServer struct {
// contains filtered or unexported fields
}
HTTPServer represents the http endpoint
func NewHTTPServer ¶
func NewHTTPServer(c *utils.Config, list ServiceListProvider) *HTTPServer
NewHTTPServer create a new http endpoint
type ServiceListProvider ¶
type ServiceListProvider interface { AddService(utils.Service) RemoveService(utils.Service) error //SetService(utils.Service, utils.Service) error GetService(utils.Service) ([]utils.Service, error) GetAllServices() []utils.Service }
ServiceListProvider represents the entrypoint to get containers
Click to show internal directories.
Click to hide internal directories.