constellation

package
v0.10.0-unstable1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NebulaDefaultConfig utils.NebulaConfig

Functions

func ConstellationAPIDevices

func ConstellationAPIDevices(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 Init

func Init()

func InitConfig

func InitConfig()

Types

type DeviceCreateRequestJSON

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

Jump to

Keyboard shortcuts

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