Documentation ¶
Index ¶
- Constants
- Variables
- func AddIntercept(addWaitGroup *TunnelerActionWaitGroup)
- func AuthMFA(id *ZIdentity, code string) error
- func DnsInit(ip string, maskBits int)
- func EnableMFA(id *ZIdentity)
- func EndpointStateChanged(id *ZIdentity, woken bool, unlocked bool)
- func GenerateMfaCodes(id *ZIdentity, code string) ([]string, error)
- func HookupTun(dev tun.Device) error
- func InitTunnelerDns(ipBase uint32, mask int)
- func LoadZiti(zid *ZIdentity, cfg string, refreshInterval int, apiPageSize int)
- func RemoveIntercept(removeWaitGroup *TunnelerActionWaitGroup)
- func RemoveMFA(id *ZIdentity, code string)
- func ReturnMfaCodes(id *ZIdentity, code string) ([]string, error)
- func RunDNSserver(dnsBind []net.IP, ready chan bool)
- func SetInterfaceMetric(interfaceName string, metric int)
- func SetLogLevel(level int)
- func Start(a api.DesktopEdgeIface, ip string, maskBits int, loglevel int)
- func VerifyMFA(id *ZIdentity, code string) error
- func ZitiDump(zid *ZIdentity, path string)
- func ZitiDumpOnShutdown(zid *ZIdentity)
- type BulkServiceChange
- type DnsManager
- type NotificationMessage
- type RefreshRequiredCheck
- type ServiceChange
- type Tunnel
- type TunnelNotificationEvent
- type TunnelerActionWaitGroup
- type ZIdentity
- func (zid *ZIdentity) AsKey() string
- func (zid *ZIdentity) Controller() string
- func (zid *ZIdentity) GetMFAState(interval int32) int
- func (zid *ZIdentity) GetMetrics() (int64, int64, bool)
- func (zid *ZIdentity) GetRemainingTime(timeout int32, timeoutRemaining int32) int32
- func (zid *ZIdentity) MfaRefreshNeeded() bool
- func (zid *ZIdentity) Shutdown()
- func (zid *ZIdentity) Status() (int, error)
- func (zid *ZIdentity) UnsafePointer() unsafe.Pointer
- func (zid *ZIdentity) UpdateMFATime()
- func (zid *ZIdentity) UpdateMFATimeRem()
- type ZService
Constants ¶
View Source
const ( MaxDnsRequests = 64 DnsMsgBufferSize = 1024 )
Variables ¶
View Source
var BulkServiceChanges = make(chan BulkServiceChange, 32)
View Source
var Version dto.ServiceVersion
Functions ¶
func AddIntercept ¶
func AddIntercept(addWaitGroup *TunnelerActionWaitGroup)
func AuthMFA ¶
used when an identity is partially authenticated and waiting on 2fa, i.e. for authentication and for timeouts
func EndpointStateChanged ¶
func InitTunnelerDns ¶
func RemoveIntercept ¶
func RemoveIntercept(removeWaitGroup *TunnelerActionWaitGroup)
func RunDNSserver ¶
func SetInterfaceMetric ¶
func SetLogLevel ¶
func SetLogLevel(level int)
func VerifyMFA ¶
requires that the identity already be fully authenticated and used specifically for enrollment
func ZitiDumpOnShutdown ¶
func ZitiDumpOnShutdown(zid *ZIdentity)
Types ¶
type BulkServiceChange ¶
type BulkServiceChange struct { Fingerprint string HostnamesToAdd map[string]bool HostnamesToRemove map[string]bool ServicesToRemove []*dto.Service ServicesToAdd []*dto.Service MfaMinTimeout int32 MfaMaxTimeout int32 MfaMinTimeoutRem int32 MfaMaxTimeoutRem int32 MfaLastUpdatedTime time.Time ServiceUpdatedTime time.Time }
type DnsManager ¶
type DnsManager interface { Resolve(dnsName string) net.IP ApplyDNS(dnsNameToReg string, ip string) }
var DNSMgr DnsManager = dnsMgrPrivate
type NotificationMessage ¶
type RefreshRequiredCheck ¶
type ServiceChange ¶
type TunnelNotificationEvent ¶
type TunnelNotificationEvent struct { Op string Notification []NotificationMessage }
type TunnelerActionWaitGroup ¶
type ZIdentity ¶
type ZIdentity struct { Options *C.ziti_options Loaded bool Name string Version string Services sync.Map Fingerprint string Active bool StatusChanges func(int) MfaNeeded bool MfaEnabled bool MfaMinTimeout int32 MfaMaxTimeout int32 MfaMinTimeoutRem int32 MfaMaxTimeoutRem int32 MfaLastUpdatedTime time.Time ServiceUpdatedTime time.Time // contains filtered or unexported fields }
func (*ZIdentity) Controller ¶
func (*ZIdentity) GetMFAState ¶
func (*ZIdentity) GetRemainingTime ¶
func (*ZIdentity) MfaRefreshNeeded ¶
func (*ZIdentity) UnsafePointer ¶
func (*ZIdentity) UpdateMFATime ¶
func (zid *ZIdentity) UpdateMFATime()
func (*ZIdentity) UpdateMFATimeRem ¶
func (zid *ZIdentity) UpdateMFATimeRem()
type ZService ¶
type ZService struct { Name string Id string Service *dto.Service Czsvc *C.ziti_service Czctx C.ziti_context }
Click to show internal directories.
Click to hide internal directories.