nodeinit

command
v0.5.9 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: Apache-2.0 Imports: 16 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command nodeinit is the only helper in an AT-005 node image. The image is FROM scratch: no shell, no sleep, no curl. `serve` keeps the container up until SIGTERM; the others are the file and network operations the harness needs inside a node (each acts on exactly what it is given, nothing is matched by pattern).

nodeinit serve
nodeinit mkdir DIR           make DIR (and parents), mode 0700
nodeinit chmod OCTAL PATH
nodeinit rm PATH             remove one file or one empty directory
nodeinit stat PATH           exit 0 if it exists
nodeinit dial HOST:PORT      exit 0 if a TCP connection is accepted
nodeinit get URL             print the body of an HTTP GET
nodeinit run --pidfile PATH -- CMD ARGS...
                             run CMD as a child (same env and stdio), write the child's pid to PATH (0600),
                             forward SIGTERM and SIGINT to it, exit with its status, remove PATH
nodeinit forge --url tls://ADDR:PORT --ca FILE --creds FILE --seconds N
                             as a second owner (the given creds): answer each discovery request of owner alice
                             with a forged and a replay-shaped payload, count the servers' refusals, print
                             {"seen_requests":N,"violations":M} (counts only)
nodeinit stop --pidfile PATH [--grace 5s]
                             SIGTERM the pid in PATH, wait up to the grace, then SIGKILL that pid only; exit 0
                             once it is gone (also when PATH is absent)

Jump to

Keyboard shortcuts

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