botsetup

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2024 License: MIT Imports: 21 Imported by: 2

Documentation

Index

Constants

View Source
const BotSetupPath = "/data/pod-bot-install.sh"

path to copy to

Variables

View Source
var SSHSettingUp bool = false
View Source
var SetupSSHStatus string = "not running"
View Source
var SetupScriptPath = "../vector-cloud/pod-bot-install.sh"

this file will be copied to the bot

Functions

func CreateCertCombo

func CreateCertCombo() error

creates and exports a priv/pub key combo generated with IP address

func CreateServerConfig

func CreateServerConfig()

outputs a server config to ../certs/server_config.json

func RegisterBLEAPI added in v1.2.7

func RegisterBLEAPI()

func RegisterSSHAPI

func RegisterSSHAPI()

func SSHSetup

func SSHSetup(w http.ResponseWriter, r *http.Request)

func SetupBotViaSSH

func SetupBotViaSSH(ip string, key []byte) error

Types

type ClientServerConfig

type ClientServerConfig struct {
	Jdocs    string `json:"jdocs"`
	Token    string `json:"tms"`
	Chipper  string `json:"chipper"`
	Check    string `json:"check"`
	Logfiles string `json:"logfiles"`
	Appkey   string `json:"appkey"`
}

Jump to

Keyboard shortcuts

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