s3-orchestrator

adminctl

import "github.com/afreidah/s3-orchestrator/internal/cli/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

func Command(cmd string, args []string, baseAddr, token string, stdout, stderr io.Writer) int

Command executes an admin CLI command, returning the exit code. Exposed so tests can drive subcommands directly without parsing process-level flags.

func Run

func Run(args []string, stdout, stderr io.Writer) int

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