
adminctl
Package adminctl implements the `s3-orchestrator admin …` family of subcommands. Each command is a thin HTTP client over the admin API exposed by the running server, formatting JSON responses for human consumption.
Index
- func Command(cmd string, args []string, baseAddr, token string, stdout, stderr io.Writer) int
- func Run(args []string, stdout, stderr io.Writer) int
func Command
Command executes an admin CLI command, returning the exit code. Exposed so tests can drive subcommands directly without parsing process-level flags.
func Run
Run is the CLI entry point for `s3-orchestrator admin`. It parses the admin-level flags, loads config, then dispatches to a per-command handler. Returns the process exit code so the caller in cmd/ can os.Exit cleanly.
Generated by gomarkdoc