xrayconfig

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2026 License: MPL-2.0 Imports: 3 Imported by: 0

README

Native configuration validation

Validate and Render run the same preparation used by the agent and its pinned Xray core. They do not start listeners, execute utility jobs or fetch assets. Referenced certificate/geodata files need to exist in the validation environment; masters must distinguish unavailable node-local assets from structural errors. Rendered JSON contains managed credentials and is an internal secret artifact.

Documentation

Overview

Package xrayconfig exposes the agent's native renderer without starting listeners.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Render

func Render(config protocol.Config) (json.RawMessage, error)

Render returns validated native JSON, including generated managed accounts. The returned document contains credentials and must not enter logs or public responses.

func Validate

func Validate(config protocol.Config) error

Validate checks managed accounts and the pinned native core configuration. Node-local certificate and geodata files must be available when referenced.

Types

This section is empty.

Jump to

Keyboard shortcuts

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