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

admin

package
v1.4.13 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const Slug = "admin"

Variables

This section is empty.

Functions

func Command

func Command(d Deps) *cobra.Command

Command builds a fresh admin subtree for a runtime or generator mount.

Types

type AdminConnection

type AdminConnection struct {
	Name       string `json:"name"`
	Host       string `json:"host"`
	User       string `json:"user"`
	Port       int    `json:"port"`
	LocalPort  int    `json:"local_port"`
	RemotePort int    `json:"remote_port"`
}

AdminConnection represents a saved remote admin connection.

type AdminProject

type AdminProject struct {
	ID      string `json:"id"`
	Name    string `json:"name"`
	Path    string `json:"path"`
	Host    string `json:"host"`
	SSHUser string `json:"ssh_user"`
	URL     string `json:"url"`
}

AdminProject represents a project in the multi-project config.

type Deps

type Deps struct {
	LoadHealthConfig  func() (*config.Config, string, error)
	OpenBrowserCmd    func(context.Context, string) *exec.Cmd
	ResolveEnvFile    func(string) (string, error)
	SetEnvKeyInFile   func(string, string, string) error
	ShouldOpenBrowser func() bool
}

Deps carries the command package helpers used by the admin family.

Jump to

Keyboard shortcuts

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