resourceconformance

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: AGPL-3.0 Imports: 4 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

Package resourceconformance is verification-only data and finite oracles. It is internal to the SDK repository, is not registered by a product, and has no SDK transport dependency. Its types describe this corpus, not future APIs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckChanges

func CheckChanges(s Scenario, got []Change) error

CheckChanges preserves finite delivery order without interpreting revisions. The deliberate event:z9 -> event:a1 transition forbids lexical recency tests.

func CheckPages

func CheckPages(s Scenario, got []Page) error

CheckPages checks native source-page traversal, not final query pagination.

func SameAddress

func SameAddress(a, b Record) bool

SameAddress is only a test oracle, not a canonical encoder or host identity implementation. Access routes, bodies, incarnation and revisions are excluded.

Types

type Change

type Change struct {
	Record   string
	Revision string
	Body     json.RawMessage
}

type Corpus

type Corpus struct {
	Records       []Record
	Scenarios     []Scenario
	IdentityCases []IdentityCase
	Links         []Link
}

func NativeCorpus

func NativeCorpus() Corpus

NativeCorpus returns fresh, deterministic, credential-free data on each call. IDs and cursors deliberately contain delimiter, slash, percent and Unicode characters. Native numeric JSON remains unparsed; no float64 conversion.

func (c Corpus) CheckLinks(bodies map[string]json.RawMessage) error

CheckLinks resolves only the six hand-authored native hypervisor edges. It is not a graph engine or proposed relationship DTO. Bodies can come from a real transport; identical node-local numeric IDs on another node never resolve.

func (Corpus) CheckSnapshot

func (c Corpus) CheckSnapshot(s Scenario, got []Observation, coverage Coverage, freshness string) error

CheckSnapshot compares a finite scenario, not query-language semantics. A consumer supplies observations and its declared guarantees independently.

func (Corpus) Record

func (c Corpus) Record(name string) Record

func (Corpus) Validate

func (c Corpus) Validate() error

Validate prevents malformed corpus edits from turning a finite oracle into a self-fulfilling expectation. Identity/link expectations remain hand-authored.

type Coverage

type Coverage struct {
	Enumeration string
	Consistency string
	Limitations []string
}

type IdentityCase

type IdentityCase struct {
	Name        string
	Left, Right string
	Equal       bool
}
type Link struct {
	From, Relation, To string
}

type Observation

type Observation struct {
	Record Record
	Body   json.RawMessage
}

type Page

type Page struct {
	Cursor  string
	Next    string
	Records []string // finite oracle names, never wire identity
}

type Record

type Record struct {
	Name        string
	Provider    string
	Authority   string
	Type        string
	Scope       map[string]string
	ID          string // canonical decimal text for native numeric IDs
	Incarnation string // absent means unknown, never a synthesized UID
	Revision    string // opaque; never sorted
	Body        json.RawMessage
}

type Scenario

type Scenario struct {
	Name       string
	Profile    string
	Type       string
	Selection  map[string][]string // explicit finite selected native scope values
	Schema     json.RawMessage     // nil means not provided
	Pages      []Page
	Coverage   Coverage
	Freshness  string
	Updates    []Change
	Operations map[string]string // finite fixture expectations, not SDK capabilities
}

Jump to

Keyboard shortcuts

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