Documentation
¶
Overview ¶
Package contracts provides the offline registry of shipped public JSON Schemas.
Index ¶
- Constants
- Variables
- func ReadMachineControlGoldenFixtures() ([]byte, error)
- func ReadSchema(id string) ([]byte, error)
- func ReadTargetAccessGoldenFixtures() ([]byte, error)
- func SchemaPath(id string) (string, error)
- func SchemaRegistry() (map[string]string, error)
- func ValidateMachineControlRecord(record string, data []byte) error
- func ValidateTargetAccessRecord(record string, data []byte) error
Constants ¶
const Namespace = "https://github.com/mcpdev80/baseharbor/blob/HEAD/contracts/"
const TargetAccessMaxFrameBytes = 4 << 20
const TargetAccessMaxStreamDataBytes = 16 << 10
Variables ¶
var ErrTargetAccessWire = errors.New("invalid or unsupported Target Access wire record")
Functions ¶
func ReadSchema ¶
ReadSchema resolves a canonical identifier using only the packaged registry.
func ReadTargetAccessGoldenFixtures ¶
ReadTargetAccessGoldenFixtures returns packaged, synthetic protocol examples. Fixtures are structural examples, not certificates or runtime evidence.
func SchemaPath ¶
SchemaPath is useful for clients that bind an ID to an immutable source ref.
func SchemaRegistry ¶
SchemaRegistry returns canonical schema identifiers and their packaged paths. It verifies identifiers and references without making network requests.
func ValidateMachineControlRecord ¶
ValidateMachineControlRecord validates the packaged public semantic envelope. Operation-specific input and result schemas, operator authorization and policy remain the semantic executor's responsibility.
func ValidateTargetAccessRecord ¶
ValidateTargetAccessRecord resolves the canonical packaged schema offline. It rejects ambiguous JSON, unknown properties and unbounded transport records. Session authentication, request deadlines and ownership remain Core decisions.
Types ¶
This section is empty.