Help us shape the future of Go! Take the 2026 Go Developer Survey

control

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package control exposes authenticated administration for remote CLI clients. Commands run as isolated subprocesses of the same binary, never through a shell.

Index

Constants

View Source
const TokenHashSetting = "admin.control_token_hash"

Variables

This section is empty.

Functions

func Allowed

func Allowed(args []string) bool

Allowed restricts administration to explicit instance operations. Client-side file reads and registration commands are never executed on the server.

Types

type Request

type Request struct {
	Args []string `json:"args"`
}

type Result

type Result struct {
	Stdout   string `json:"stdout"`
	Stderr   string `json:"stderr"`
	ExitCode int    `json:"exit_code"`
}

type Server

type Server struct {
	Service *core.Service
	DBPath  string
	Binary  string
}

func (*Server) Register

func (s *Server) Register(mux *http.ServeMux)

Jump to

Keyboard shortcuts

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