botsetup

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2023 License: MIT, MIT Imports: 21 Imported by: 2

Documentation

Index

Constants

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

path to copy to

View Source
const SetupScriptPath = "../vector-cloud/pod-bot-install.sh"

this file will be copied to the bot

Variables

View Source
var SSHSettingUp bool = false
View Source
var SetupSSHStatus string = "not running"

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