entities

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

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

type DialOptions struct {
	ConnectTimeoutSeconds *int
	Identity              *string
}

type HostV1Config

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
	Proxy         *ProxyConfiguration
	// contains filtered or unexported fields
}

func (*HostV1Config) GetAddress added in v0.30.5

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

func (*HostV1Config) GetAllowedAddresses added in v0.30.5

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

func (*HostV1Config) GetAllowedSourceAddressRoutes added in v0.30.5

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

func (*HostV1Config) GetDialTimeout added in v0.30.5

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

func (*HostV1Config) GetHttpChecks added in v0.30.5

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

func (*HostV1Config) GetPort added in v0.30.5

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

func (*HostV1Config) GetPortChecks added in v0.30.5

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

func (*HostV1Config) GetProtocol added in v0.30.5

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

func (*HostV1Config) ToHostV2Config

func (self *HostV1Config) ToHostV2Config() *HostV2Config

type HostV1ListenOptions

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

type HostV2Config

type HostV2Config struct {
	Terminators []*HostV1Config
}

type HostV2ListenOptions

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

type InterceptV1Config

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

type PortRange

type PortRange struct {
	Low  uint16
	High uint16
}

type ProxyConfiguration added in v0.30.5

type ProxyConfiguration struct {
	Address string
	Type    string
}

type Service

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

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

func (*Service) AddCleanupAction

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

func (*Service) GetConfigOfType

func (self *Service) GetConfigOfType(configType string, target interface{}) (bool, error)

func (*Service) GetDialIdentity

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

func (*Service) GetDialIdentityTemplate

func (self *Service) GetDialIdentityTemplate() string

func (*Service) GetDialTimeout

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

func (*Service) GetFabricProvider

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

func (*Service) GetId added in v1.1.0

func (self *Service) GetId() string

func (*Service) GetName

func (self *Service) GetName() string

func (*Service) GetSourceAddr

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

func (*Service) GetSourceIpTemplate

func (self *Service) GetSourceIpTemplate() string

func (*Service) IsEncryptionRequired

func (self *Service) IsEncryptionRequired() bool

func (*Service) RunCleanupActions

func (self *Service) RunCleanupActions()

type ServiceConfig

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

func (*ServiceConfig) GetHttpChecks

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

func (*ServiceConfig) GetPortChecks

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

func (*ServiceConfig) String

func (s *ServiceConfig) String() string

func (*ServiceConfig) ToHostV2Config

func (self *ServiceConfig) ToHostV2Config() *HostV2Config

func (*ServiceConfig) ToInterceptV1Config

func (self *ServiceConfig) ToInterceptV1Config() *InterceptV1Config

type TemplateFunc

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