constellation

package
v0.12.0-unstable16 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DNSBlacklist = map[string]bool{}
View Source
var NebulaDefaultConfig utils.NebulaConfig

Functions

func API_ConnectToExisting

func API_ConnectToExisting(w http.ResponseWriter, req *http.Request)

func API_GetConfig

func API_GetConfig(w http.ResponseWriter, req *http.Request)

func API_GetLogs

func API_GetLogs(w http.ResponseWriter, req *http.Request)

func API_Reset

func API_Reset(w http.ResponseWriter, req *http.Request)

func API_Restart

func API_Restart(w http.ResponseWriter, req *http.Request)

func ConstellationAPIDevices

func ConstellationAPIDevices(w http.ResponseWriter, req *http.Request)

func DeviceBlock

func DeviceBlock(w http.ResponseWriter, req *http.Request)

func DeviceCreate

func DeviceCreate(w http.ResponseWriter, req *http.Request)

func DeviceList

func DeviceList(w http.ResponseWriter, req *http.Request)

func ExportConfigToYAML

func ExportConfigToYAML(overwriteConfig utils.ConstellationConfig, outputPath string) error

func GetAllLightHouses

func GetAllLightHouses() ([]utils.ConstellationDevice, error)

func GetBlockedDevices

func GetBlockedDevices() ([]utils.ConstellationDevice, error)

func GetCertFingerprint

func GetCertFingerprint(certPath string) (string, error)

func Init

func Init()

func InitConfig

func InitConfig()

func InitDNS

func InitDNS()

func ResetNebula

func ResetNebula() error

func RestartNebula

func RestartNebula()

Types

type DeviceBlockRequestJSON

type DeviceBlockRequestJSON struct {
	Nickname   string `json:"nickname",validate:"required,min=3,max=32,alphanum"`
	DeviceName string `json:"deviceName",validate:"required,min=3,max=32,alphanum"`
	Block      bool   `json:"block",omitempty`
}

type DeviceCreateRequestJSON

type DeviceCreateRequestJSON struct {
	DeviceName string `json:"deviceName",validate:"required,min=3,max=32,alphanum"`
	IP         string `json:"ip",validate:"required,ipv4"`
	PublicKey  string `json:"publicKey",omitempty`

	// for devices only
	Nickname string `json:"nickname",validate:"max=32,alphanum",omitempty`

	// for lighthouse only
	IsLighthouse   bool   `json:"isLighthouse",omitempty`
	IsRelay        bool   `json:"isRelay",omitempty`
	PublicHostname string `json:"PublicHostname",omitempty`
	Port           string `json:"port",omitempty`
}

Jump to

Keyboard shortcuts

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