intercept

package
v0.19.90 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2021 License: Apache-2.0 Imports: 21 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetDnsInterceptIpRange added in v0.16.45

func SetDnsInterceptIpRange(cidr string) error

Types

type AddressTracker added in v0.19.63

type AddressTracker interface {
	AddAddress(addr string)
	RemoveAddress(addr string) bool
}

type InterceptAddress added in v0.19.63

type InterceptAddress struct {
	TproxySpec []string
	AcceptSpec []string
	// contains filtered or unexported fields
}

func GetInterceptAddresses added in v0.19.63

func GetInterceptAddresses(service *entities.Service, protocol string, resolver dns.Resolver) ([]*InterceptAddress, error)

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

type Interceptor

type Interceptor interface {
	Start(provider tunnel.FabricProvider)
	Stop()
	Intercept(service *entities.Service, resolver dns.Resolver, tracker AddressTracker) error
	StopIntercepting(serviceName string, tracker AddressTracker) error
}

type Protocol

type Protocol int
const (
	TCP Protocol = 2
	UDP Protocol = 17
)

type ServiceListener added in v0.17.54

type ServiceListener struct {
	sync.Mutex
	// contains filtered or unexported fields
}

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) WaitForShutdown added in v0.17.54

func (self *ServiceListener) WaitForShutdown()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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