bootstrap

package
v1.11.2 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DeviceIPv4     string `json:"deviceIP"`
	DeviceIPv6     string `json:"deviceIPv6"`
	PublicKey      string `json:"publicKey"`
	TunnelEndpoint string `json:"tunnelEndpoint"`
	APIServerIP    string `json:"apiServerIP"`
}

Config is the information the device needs to bootstrap its connection to the APIServer

func (*Config) APIServerPeer

func (cfg *Config) APIServerPeer() *pb.Gateway

type DeviceInfo

type DeviceInfo struct {
	Serial    string `json:"serial"`
	PublicKey string `json:"publicKey"`
	Platform  string `json:"platform"`
	Owner     string `json:"owner"`
}

DeviceInfo is the information sent by the device during enrollment

type GatewayInfo

type GatewayInfo struct {
	Name      string `json:"name"`
	PublicIP  string `json:"endpoint"`
	PublicKey string `json:"publicKey"`
}

GatewayInfo is the info provided by the gateway-agent in order to bootstrap a gateway

Jump to

Keyboard shortcuts

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