Documentation ¶
Index ¶
- Constants
- func GetInterceptAddresses(service *entities.Service, protocols []string, resolver dns.Resolver, ...) error
- func SetDnsInterceptIpRange(cidr string) error
- type AddressTracker
- type DnsAnswer
- type DnsMessage
- type DnsQuestion
- type InterceptAddrCB
- type InterceptAddress
- func (addr *InterceptAddress) Contains(ip net.IP, port uint16) bool
- func (addr *InterceptAddress) HighPort() uint16
- func (addr *InterceptAddress) IpNet() *net.IPNet
- func (addr *InterceptAddress) LowPort() uint16
- func (addr *InterceptAddress) Proto() string
- func (addr *InterceptAddress) String() string
- type Interceptor
- type Protocol
- type ServiceListener
- type ServiceListenerGroup
Constants ¶
View Source
const ( A = 1 MX = 15 TXT = 16 SRV = 33 )
record type
View Source
const ( NOERROR = 0 FORMERR = 1 SERVFAIL = 2 NXDOMAIN = 3 NOTIMP = 4 REFUSED = 5 )
response code
Variables ¶
This section is empty.
Functions ¶
func GetInterceptAddresses ¶ added in v0.19.63
func SetDnsInterceptIpRange ¶ added in v0.16.45
Types ¶
type AddressTracker ¶ added in v0.19.63
type DnsMessage ¶ added in v0.21.102
type DnsMessage struct { Id int `json:"id"` Status int `json:"status"` Question []*DnsQuestion `json:"question"` Answer []*DnsAnswer `json:"answer"` Comment string `json:"comment,omitempty"` }
type DnsQuestion ¶ added in v0.21.102
type InterceptAddrCB ¶ added in v0.20.72
type InterceptAddrCB interface {
Apply(*InterceptAddress)
}
type InterceptAddress ¶ added in v0.19.63
type InterceptAddress struct { TproxySpec []string AcceptSpec []string // contains filtered or unexported fields }
func (*InterceptAddress) Contains ¶ added in v0.19.63
func (addr *InterceptAddress) Contains(ip net.IP, port uint16) bool
func (*InterceptAddress) HighPort ¶ added in v0.19.63
func (addr *InterceptAddress) HighPort() uint16
func (*InterceptAddress) IpNet ¶ added in v0.19.63
func (addr *InterceptAddress) IpNet() *net.IPNet
func (*InterceptAddress) LowPort ¶ added in v0.19.63
func (addr *InterceptAddress) LowPort() uint16
func (*InterceptAddress) Proto ¶ added in v0.19.63
func (addr *InterceptAddress) Proto() string
func (*InterceptAddress) String ¶ added in v0.19.163
func (addr *InterceptAddress) String() string
type Interceptor ¶
type Interceptor interface { Stop() Intercept(service *entities.Service, resolver dns.Resolver, tracker AddressTracker) error StopIntercepting(serviceName string, tracker AddressTracker) error }
type ServiceListener ¶ added in v0.17.54
func NewServiceListener ¶ added in v0.17.54
func NewServiceListener(interceptor Interceptor, resolver dns.Resolver) *ServiceListener
func (*ServiceListener) HandleProviderReady ¶ added in v0.19.10
func (self *ServiceListener) HandleProviderReady(provider tunnel.FabricProvider)
func (*ServiceListener) HandleServicesChange ¶ added in v0.17.54
func (self *ServiceListener) HandleServicesChange(eventType ziti.ServiceEventType, service *edge.Service)
func (*ServiceListener) NotifyOfReconnect ¶ added in v0.21.200
func (self *ServiceListener) NotifyOfReconnect()
func (*ServiceListener) WaitForShutdown ¶ added in v0.17.54
func (self *ServiceListener) WaitForShutdown()
type ServiceListenerGroup ¶ added in v0.21.238
func NewServiceListenerGroup ¶ added in v0.21.238
func NewServiceListenerGroup(interceptor Interceptor, resolver dns.Resolver) *ServiceListenerGroup
func (*ServiceListenerGroup) NewServiceListener ¶ added in v0.21.238
func (self *ServiceListenerGroup) NewServiceListener() *ServiceListener
func (*ServiceListenerGroup) WaitForShutdown ¶ added in v0.21.238
func (self *ServiceListenerGroup) WaitForShutdown()
Source Files ¶
Click to show internal directories.
Click to hide internal directories.