port

package
v1.1.68-test Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2026 License: MIT Imports: 3 Imported by: 1 module, 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

Index

Constants

This section is empty.

Variables

View Source
var ReservedPorts = []int{8012, 8022, 9090, 9091, 15000, 15001, 15006, 15020, 15021, 15090, 41000}

ReservedPorts are the ports the platform binds for itself — the Istio sidecar (15000/15001/15006/15020/15021/15090), the envoy admin/metrics pair, and the agent tunnel. A workload bound to one of these is an operational hazard, which is why port.ts rejects them rather than letting the actuator discover the clash. Order matters: it is rendered into the error message as-is.

Functions

func RejectReserved

func RejectReserved(reason string, reserved []int) validate.CustomFn

RejectReserved ports the `.custom()` at port.ts:6-12, and serves the sandbox runtime's own reserved list too (sandbox.ts SandboxPort) — same check, same message, a different owner. The list renders with JS's Array.toString (comma-joined).

Types

type Port

type Port float64

Port ports `Joi.number().integer().max(65535).min(80).custom(reserved)`. The rule lives in validate.go.

func (Port) ValidationRule

func (Port) ValidationRule() *validate.Rule

ValidationRule ports `Joi.number().integer().max(65535).min(80).custom(...)` (nodelibs/schema/src/port.ts), in Joi's declared order so the first failing constraint is the one reported.

Jump to

Keyboard shortcuts

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