config

package
v0.6.3-beta01 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ControllerSaas = iota
	ControllerScript
	ControllerBlockchain
	ControllerUnknown
)
View Source
const (
	ContainerTypeDocker     = "docker"
	ContainerTypeKubernetes = "kubernetes"
	ContainerTypeHost       = "host"
)
View Source
const (
	// SYNTROPY_ROUTE_STRATEGY=speed
	RouteStrategySpeed = iota
	// SYNTROPY_ROUTE_STRATEGY=dr
	RouteStrategyDirectRoute
)

Variables

This section is empty.

Functions

func CleanupOnExit

func CleanupOnExit() bool

func Close

func Close()

func CreateIptablesRules

func CreateIptablesRules() bool

func ForceCleanupOnExit

func ForceCleanupOnExit()

func GetAgentName

func GetAgentName() string

func GetAgentProvider

func GetAgentProvider() uint

func GetAgentTags

func GetAgentTags() []string

func GetAgentToken

func GetAgentToken() string

func GetCloudURL

func GetCloudURL() string

func GetContainerType

func GetContainerType() string

func GetControllerName

func GetControllerName(ctype int) string

func GetControllerType

func GetControllerType() int

func GetDebugLevel

func GetDebugLevel() int

func GetDeviceID

func GetDeviceID() string

func GetFullVersion

func GetFullVersion() string

func GetInterfaceMTU

func GetInterfaceMTU() uint

func GetIpfsUrl

func GetIpfsUrl() string

func GetLocationLatitude

func GetLocationLatitude() float32

func GetLocationLongitude

func GetLocationLongitude() float32

func GetNamespace

func GetNamespace() []string

func GetOwnerAddress

func GetOwnerAddress() string

func GetPortsRange

func GetPortsRange() (uint16, uint16)

func GetRouteDeleteThreshold

func GetRouteDeleteThreshold() uint

func GetRouteStrategy

func GetRouteStrategy() int

func GetServicesStatus

func GetServicesStatus() bool

func GetVersion

func GetVersion() string

func Init

func Init()

func IsVPNClient

func IsVPNClient() bool

func MetricsExporterEnabled

func MetricsExporterEnabled() bool

func MetricsExporterPort

func MetricsExporterPort() uint16

func PeerCheckTime

func PeerCheckTime() time.Duration

func PeerCheckWindow

func PeerCheckWindow() uint

func RerouteThresholds

func RerouteThresholds() (float32, float32)

func SetRerouteThresholds

func SetRerouteThresholds(diff, ratio float32)

Types

type AllowedIPEntry

type AllowedIPEntry struct {
	Name   string
	Subnet string
}

func GetHostAllowedIPs

func GetHostAllowedIPs() []AllowedIPEntry

type Location

type Location struct {
	Latitude  float32
	Longitude float32
}

Jump to

Keyboard shortcuts

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