Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CompatWriter ¶ added in v0.0.3
type CompatWriter interface {
CreateStructure(ctx context.Context, namespace string, arcs arcset.ArcSet) (cid.Cid, error)
UpdateArc(ctx context.Context, namespace string, root cid.Cid, path string, newTarget cid.Cid) (*writer.UpdateResult, error)
BatchUpdateArcs(ctx context.Context, namespace string, root cid.Cid, updates map[string]cid.Cid) (*writer.BatchUpdateResult, error)
GetArc(ctx context.Context, namespace string, root cid.Cid, path string) (cid.Cid, error)
GetSnapshot(ctx context.Context, namespace string, root cid.Cid) (arcset.ArcSet, error)
}
CompatWriter exposes reference-runtime helper methods used by the local server, CLI, and tests. These helpers are not the gateway product API.
type MutationWriter ¶ added in v0.0.3
type MutationWriter interface {
Apply(ctx context.Context, namespace string, mut writer.SemanticMutation) (writer.WriteReceipt, error)
}
MutationWriter is the stable graph mutation port. Callers supply an explicit base root through writer.SemanticMutation and receive a result root in the write receipt; this interface does not publish heads or arbitrate freshness.
type Resolver ¶
type Resolver interface {
// ResolveKey traverses explicit authenticated relations without assuming a
// payload coordinate. It is the generic graph-data authentication port.
ResolveKey(ctx context.Context, root cid.Cid, path string) (*resolver.ResolveResult, error)
// Resolve retains the reference materialization behavior that follows a
// terminal @payload binding on map roots.
Resolve(ctx context.Context, root cid.Cid, path string) (*resolver.ResolveResult, error)
VerifyTranscript(ctx context.Context, root cid.Cid, transcript *resolver.Transcript) (bool, error)
}
Resolver is the graph read/proof port.
type Writer ¶
type Writer interface {
MutationWriter
CompatWriter
}
Writer is the reference-runtime write surface. New core integrations should prefer MutationWriter unless they intentionally need compatibility helpers.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package querypath implements locked path canonicalization for stat and content APIs.
|
Package querypath implements locked path canonicalization for stat and content APIs. |
|
Package resolver implements the MALT explicit-arc resolution loop with prefix consumption.
|
Package resolver implements the MALT explicit-arc resolution loop with prefix consumption. |
|
step
Package step defines the Step interface for single-step resolution.
|
Package step defines the Step interface for single-step resolution. |
|
step/explicit
Package explicit implements the Step interface for MALT explicit arcs.
|
Package explicit implements the Step interface for MALT explicit arcs. |
|
Package verifier preserves the graph-runtime verifier constructor while delegating proof checks to the portable authentication kernel.
|
Package verifier preserves the graph-runtime verifier constructor while delegating proof checks to the portable authentication kernel. |
|
Package writer implements graph semantic mutations.
|
Package writer implements graph semantic mutations. |
Click to show internal directories.
Click to hide internal directories.