storeresolver

package
v0.2.13 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2026 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package storeresolver resolves compute refs against the chassis content-addressed artifact.Store (the same store snapshots use). A compute artifact lives at ref "computes/<alg>/<digest>": the data blob is the wasm module, the manifest blob is small JSON naming the engine. This keeps compute bytes out of the ops/stack_files tables and reuses the store that is already wired into the chassis.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manifest

type Manifest struct {
	Engine string `json:"engine"`
	Alg    string `json:"alg,omitempty"`
	Digest string `json:"digest,omitempty"`
}

Manifest is the small JSON blob stored alongside the wasm; it records which engine runs the artifact.

type Resolver

type Resolver struct {
	// contains filtered or unexported fields
}

Resolver implements compute.Resolver over an artifact.Store.

func New

func New(store artifact.Store) *Resolver

New builds a Resolver over the given store.

func (*Resolver) Resolve

func (r *Resolver) Resolve(ctx context.Context, ref compute.Ref) (compute.Artifact, error)

Resolve fetches the wasm + engine for a ref. ErrNotFound maps to compute.ErrNotFound so callers can distinguish "absent" from "broken".

Jump to

Keyboard shortcuts

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