pluginverify

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2026 License: GPL-3.0 Imports: 18 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 pluginverify exercises the built-in package contract without certifying an independent protocol implementation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Check

type Check struct {
	Name   string `json:"name"`
	Passed bool   `json:"passed"`
}

type Fixture

type Fixture struct {
	Version    int                         `json:"version"`
	Instances  []protocol.Instance         `json:"instances"`
	Sessions   []SessionCase               `json:"sessions,omitempty"`
	Operations []protocol.OperationRequest `json:"operations,omitempty"`
}

type HostCalls

type HostCalls struct {
	Observations       int `json:"observations"`
	Withdrawals        int `json:"withdrawals"`
	Checkpoints        int `json:"checkpoints"`
	SessionCompletions int `json:"session_completions"`
	Logs               int `json:"logs"`
	Metrics            int `json:"metrics"`
}

type Options

type Options struct {
	ManifestPath   string
	FixturePath    string
	ExecutablePath string
	CoreVersion    string
}

type Report

type Report struct {
	PluginID       string    `json:"plugin_id,omitempty"`
	PluginVersion  string    `json:"plugin_version,omitempty"`
	Protocol       string    `json:"protocol_version,omitempty"`
	Passed         bool      `json:"passed"`
	Claim          string    `json:"claim"`
	SignatureTrust string    `json:"signature_trust"`
	Checks         []Check   `json:"checks"`
	HostCalls      HostCalls `json:"host_calls"`
	Error          string    `json:"error,omitempty"`
}

func Verify

func Verify(ctx context.Context, options Options) (report Report, resultErr error)

type SessionCase

type SessionCase struct {
	Start  protocol.SessionStartRequest   `json:"start"`
	Inputs []protocol.SessionInputRequest `json:"inputs,omitempty"`
	End    protocol.SessionEndRequest     `json:"end"`
}

Jump to

Keyboard shortcuts

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