botsetup

package
v1.0.0 Latest Latest
Warning

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

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

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 GetOutboundIP

func GetOutboundIP() net.IP

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