entities

package
v0.21.253 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2022 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ClientConfigV1 = "ziti-tunneler-client.v1"
	ServerConfigV1 = "ziti-tunneler-server.v1"
	HostConfigV1   = "host.v1"
	HostConfigV2   = "host.v2"
	InterceptV1    = "intercept.v1"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DialOptions added in v0.19.63

type DialOptions struct {
	ConnectTimeoutSeconds *int
	Identity              *string
}

type HostV1Config added in v0.19.54

type HostV1Config struct {
	Protocol               string
	ForwardProtocol        bool
	AllowedProtocols       []string
	Address                string
	ForwardAddress         bool
	AllowedAddresses       []string
	Port                   int
	ForwardPort            bool
	AllowedPortRanges      []*PortRange
	AllowedSourceAddresses []string

	PortChecks []*health.PortCheckDefinition
	HttpChecks []*health.HttpCheckDefinition

	ListenOptions *HostV1ListenOptions
}

func (*HostV1Config) ToHostV2Config added in v0.19.54

func (self *HostV1Config) ToHostV2Config() *HostV2Config

type HostV1ListenOptions added in v0.19.54

type HostV1ListenOptions struct {
	BindUsingEdgeIdentity bool
	ConnectTimeoutSeconds *int
	Cost                  *uint16
	Identity              string
	MaxConnections        int
	Precedence            *string
}

type HostV2Config added in v0.19.54

type HostV2Config struct {
	Terminators []*HostV2Terminator
}

type HostV2ListenOptions added in v0.19.54

type HostV2ListenOptions struct {
	BindUsingEdgeIdentity bool
	ConnectTimeout        *time.Duration
	Cost                  *uint16
	Identity              string
	MaxConnections        int
	Precedence            *string
}

type HostV2Terminator added in v0.19.54

type HostV2Terminator struct {
	Protocol               string
	ForwardProtocol        bool
	AllowedProtocols       []string
	Address                string
	ForwardAddress         bool
	AllowedAddresses       []string
	Port                   int
	ForwardPort            bool
	AllowedPortRanges      []*PortRange
	AllowedSourceAddresses []string

	PortChecks []*health.PortCheckDefinition
	HttpChecks []*health.HttpCheckDefinition

	ListenOptions *HostV2ListenOptions
	// contains filtered or unexported fields
}

func (*HostV2Terminator) GetAddress added in v0.19.54

func (self *HostV2Terminator) GetAddress(options map[string]interface{}) (string, error)

func (*HostV2Terminator) GetAllowedAddresses added in v0.20.73

func (self *HostV2Terminator) GetAllowedAddresses() []allowedAddress

func (*HostV2Terminator) GetAllowedSourceAddressRoutes added in v0.19.77

func (self *HostV2Terminator) GetAllowedSourceAddressRoutes() ([]*net.IPNet, error)

func (*HostV2Terminator) GetDialTimeout added in v0.19.54

func (self *HostV2Terminator) GetDialTimeout(defaultTimeout time.Duration) time.Duration

func (*HostV2Terminator) GetHttpChecks added in v0.19.54

func (self *HostV2Terminator) GetHttpChecks() []*health.HttpCheckDefinition

func (*HostV2Terminator) GetPort added in v0.19.54

func (self *HostV2Terminator) GetPort(options map[string]interface{}) (string, error)

func (*HostV2Terminator) GetPortChecks added in v0.19.54

func (self *HostV2Terminator) GetPortChecks() []*health.PortCheckDefinition

func (*HostV2Terminator) GetProtocol added in v0.19.54

func (self *HostV2Terminator) GetProtocol(options map[string]interface{}) (string, error)

type InterceptV1Config added in v0.19.63

type InterceptV1Config struct {
	Addresses   []string
	PortRanges  []*PortRange
	Protocols   []string
	SourceIp    *string
	DialOptions *DialOptions
}

type PortRange added in v0.19.63

type PortRange struct {
	Low  uint16
	High uint16
}

type Service

type Service struct {
	FabricProvider tunnel.FabricProvider
	edge.Service
	InterceptV1Config *InterceptV1Config
	DialTimeout       time.Duration

	HostV2Config         *HostV2Config
	DialIdentityProvider TemplateFunc
	SourceAddrProvider   TemplateFunc
	// contains filtered or unexported fields
}

func (*Service) AddCleanupAction added in v0.19.167

func (self *Service) AddCleanupAction(f func())

func (*Service) GetDialIdentity added in v0.19.104

func (self *Service) GetDialIdentity(sourceAddr net.Addr, destAddr net.Addr) string

func (*Service) GetDialIdentityTemplate added in v0.19.104

func (self *Service) GetDialIdentityTemplate() string

func (*Service) GetDialTimeout added in v0.19.63

func (self *Service) GetDialTimeout() time.Duration

func (*Service) GetFabricProvider added in v0.21.238

func (self *Service) GetFabricProvider() tunnel.FabricProvider

func (*Service) GetName added in v0.19.63

func (self *Service) GetName() string

func (*Service) GetSourceAddr added in v0.19.63

func (self *Service) GetSourceAddr(sourceAddr net.Addr, destAddr net.Addr) string

func (*Service) GetSourceIpTemplate added in v0.19.104

func (self *Service) GetSourceIpTemplate() string

func (*Service) RunCleanupActions added in v0.19.167

func (self *Service) RunCleanupActions()

func (*Service) RunReconnectAction added in v0.21.200

func (self *Service) RunReconnectAction()

func (*Service) SetReconnectAction added in v0.21.200

func (self *Service) SetReconnectAction(f func())

type ServiceConfig

type ServiceConfig struct {
	Protocol   string
	Hostname   string
	Port       int
	PortChecks []*health.PortCheckDefinition
	HttpChecks []*health.HttpCheckDefinition
}

func (*ServiceConfig) GetHttpChecks added in v0.19.54

func (self *ServiceConfig) GetHttpChecks() []*health.HttpCheckDefinition

func (*ServiceConfig) GetPortChecks added in v0.19.54

func (self *ServiceConfig) GetPortChecks() []*health.PortCheckDefinition

func (*ServiceConfig) String

func (s *ServiceConfig) String() string

func (*ServiceConfig) ToHostV2Config added in v0.19.63

func (self *ServiceConfig) ToHostV2Config() *HostV2Config

func (*ServiceConfig) ToInterceptV1Config added in v0.19.63

func (self *ServiceConfig) ToInterceptV1Config() *InterceptV1Config

type TemplateFunc added in v0.19.104

type TemplateFunc func(sourceAddr net.Addr, destAddr net.Addr) string

Jump to

Keyboard shortcuts

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