Versions in this module Expand all Collapse all v0 v0.78.1 Sep 4, 2026 v0.78.0 Sep 3, 2026 Changes in this version + const GroupAllName + const NetworkTypeDomain + const NetworkTypeIPv4 + const NetworkTypeIPv6 + const NetworkTypeInvalid + const PeerCapabilityComponentNetworkMap + const PeerCapabilityIPv6Overlay + const PeerCapabilitySourcePrefixes + func PassesChecks(checks []Check, peer *Peer) bool + func PolicyRuleImpliesLegacySSH(rule *PolicyRule) bool + func PostureVerdictChanged(checks []*PostureChecks, oldPeer, newPeer *Peer) bool + type AccountSettingsInfo struct + AutoUpdateAlways bool + AutoUpdateVersion string + DNSDomain string + IPv6EnabledGroups []string + LazyConnectionEnabled bool + MetricsPushEnabled bool + PeerInactivityExpiration time.Duration + PeerInactivityExpirationEnabled bool + PeerLoginExpiration time.Duration + PeerLoginExpirationEnabled bool + RoutingPeerDNSResolutionEnabled bool + type Check interface + type ChecksDefinition struct + GeoLocationCheck *GeoLocationCheck + NBVersionCheck *NBVersionCheck + OSVersionCheck *OSVersionCheck + PeerNetworkRangeCheck *PeerNetworkRangeCheck + ProcessCheck *ProcessCheck + type CustomZone struct + Domain string + NonAuthoritative bool + Records []SimpleRecord + SearchDomainDisabled bool + type DNSSettings struct + DisabledManagementGroups []string + type File struct + Path string + ProcessIsRunning bool + type Flags struct + DisableIPv6 bool + ServerSSHAllowed bool + type GeoLocation struct + CityName string + CountryCode string + type GeoLocationCheck struct + Action string + Locations []GeoLocation + type Group struct + ID string + Name string + Peers []string + PublicID string + Resources []Resource + func (g *Group) Copy() *Group + func (g *Group) IsGroupAll() bool + type MinKernelVersionCheck struct + MinKernelVersion string + type MinVersionCheck struct + MinVersion string + type NBVersionCheck struct + MinVersion string + type NameServer struct + IP netip.Addr + NSType int + Port int + type NameServerGroup struct + Description string + Domains []string + Enabled bool + Groups []string + ID string + Name string + NameServers []NameServer + Primary bool + PublicID string + SearchDomainsEnabled bool + type Network struct + Dns string + Identifier string + Net net.IPNet + NetV6 net.IPNet + Serial int64 + func (n *Network) CurrentSerial() uint64 + type NetworkAddress struct + NetIP netip.Prefix + type NetworkResource struct + AccountID string + Address string + Description string + Domain string + Enabled bool + ID string + Name string + NetworkID string + Prefix netip.Prefix + PublicID string + Type string + type NetworkRouter struct + Enabled bool + Masquerade bool + Metric int + PeerGroups []string + PublicID string + type OSVersionCheck struct + Android *MinVersionCheck + Darwin *MinVersionCheck + Ios *MinVersionCheck + Linux *MinKernelVersionCheck + Windows *MinKernelVersionCheck + type Peer struct + Connected bool + DNSLabel string + ExtraDNSLabels []string + ID string + IP netip.Addr + IPv6 netip.Addr + Key string + LastLogin *time.Time + Location PeerLocation + LoginExpirationEnabled bool + Meta PeerSystemMeta + ProxyMeta ProxyMeta + RequiresApproval bool + SSHEnabled bool + SSHKey string + UserID string + func (p *Peer) AddedWithSSOLogin() bool + func (p *Peer) FQDN(dnsDomain string) string + func (p *Peer) GetLastLogin() time.Time + func (p *Peer) HasCapability(capability int32) bool + func (p *Peer) LoginExpired(expiresIn time.Duration) (bool, time.Duration) + func (p *Peer) SessionExpiresAt(accountExpirationEnabled bool, expiresIn time.Duration) time.Time + func (p *Peer) SupportsIPv6() bool + func (p *Peer) SupportsSourcePrefixes() bool + type PeerLocation struct + CityName string + ConnectionIP net.IP + CountryCode string + type PeerNetworkRangeCheck struct + Action string + Ranges []netip.Prefix + type PeerSystemMeta struct + Capabilities []int32 + Files []File + Flags Flags + GoOS string + KernelVersion string + NetworkAddresses []NetworkAddress + OSVersion string + SyncMessageVersion int + WtVersion string + type Policy struct + Enabled bool + ID string + PublicID string + Rules []*PolicyRule + SourcePostureChecks []string + func (p *Policy) SourceGroups() []string + type PolicyRule struct + Action string + AuthorizedGroups map[string][]string + AuthorizedUser string + Bidirectional bool + DestinationResource Resource + Destinations []string + Enabled bool + ID string + PolicyID string + PortRanges []RulePortRange + Ports []string + Protocol string + SourceResource Resource + Sources []string + type PostureChecks struct + Checks ChecksDefinition + ID string + func (pc *PostureChecks) GetChecks() []Check + func (pc *PostureChecks) Passes(peer *Peer) bool + type Process struct + LinuxPath string + MacPath string + WindowsPath string + type ProcessCheck struct + Processes []Process + type ProxyDomain struct + Domain string + TargetCluster string + type ProxyMeta struct + Cluster string + Embedded bool + type Resource struct + ID string + Type string + type Route struct + AccessControlGroups []string + AccountID string + Description string + Domains domain.List + Enabled bool + Groups []string + ID string + KeepRoute bool + Masquerade bool + Metric int + NetID string + Network netip.Prefix + NetworkType int + Peer string + PeerGroups []string + PeerID string + PublicID string + SkipAutoApply bool + func (r *Route) Copy() *Route + func (r *Route) Equal(other *Route) bool + func (r *Route) GetHAUniqueID() string + func (r *Route) GetResourceID() string + func (r *Route) IsDynamic() bool + func (r *Route) NetString() string + type RulePortRange struct + End uint16 + Start uint16 + type Service struct + AccessGroups []string + Domain string + Enabled bool + ID string + Mode string + Private bool + ProxyCluster string + Targets []*ServiceTarget + type ServiceTarget struct + Enabled bool + Path string + Port uint16 + Protocol string + TargetID string + TargetType string + type SimpleRecord struct + Class string + Name string + RData string + TTL int + Type int