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

rogueclient

package
v0.62.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package rogueclient implements the rogue-client binary that runs in the rogue pod.

rogue-client idle
rogue-client request [-X method] [-H 'Name: value']... [--data body]
    [--cert file --key file] [--cacert file] [-k] [--max-time 30s] URL

request writes the response body to stdout followed by StatusMarker and the HTTP status code, or StatusMarker and 0 when no HTTP response was received.

Index

Constants

View Source
const (
	// StatusMarker precedes the HTTP status code on stdout.
	StatusMarker = "\nradius-rogue-status:"

	// ExitOK means an HTTP response was received, whatever its status.
	ExitOK = 0
	// ExitTransport means no HTTP response was received, for example a refused
	// connection or a failed TLS handshake.
	ExitTransport = 1
	// ExitUsage means the arguments were invalid.
	ExitUsage = 2
)

Variables

This section is empty.

Functions

func Run

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

Run executes the command in args and returns the process exit code.

Types

This section is empty.

Jump to

Keyboard shortcuts

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