Documentation
¶
Overview ¶
Package identity holds identity rules shared by SDK state and wire admission.
Index ¶
Constants ¶
const MaxConnectionIDBytes = 4096
MaxConnectionIDBytes is the native metadata byte limit for a plugin-defined connection ID. Credential attachments must address the same connection unchanged.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ComponentClass ¶
type ComponentClass uint8
ComponentClass distinguishes state validation failures without carrying the input.
const ( ComponentValid ComponentClass = iota ComponentInvalid ComponentTrailingDot ComponentReserved )
Only ComponentValid admits the name. The other classes preserve the local state's distinct malformed-name, trailing-dot, and reserved-device errors.
func ClassifyComponent ¶
func ClassifyComponent(name string) ComponentClass
ClassifyComponent checks installed plugin IDs and capability filenames. State has no grammar-level byte limit; a wire protocol can bound length separately.