version

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PluginUIProtocolVersion             = "plugin-ui-v2"
	PluginHostProtocolVersion           = "plugin-host-v2"
	RustIPCVersion                      = "rust-ipc-v1"
	WASMABIVersion                      = "redevplugin-wasm-worker-v1"
	ManifestSchemaVersion               = "manifest-v2"
	PackageSignatureSchemaVersion       = "package-signature-v1"
	ReleaseMetadataSchemaVersion        = "release-metadata-v2"
	SourcePolicySchemaVersion           = "source-policy-v1"
	SourceRevocationsSchemaVersion      = "source-revocations-v1"
	TokenTicketSchemaVersion            = "token-ticket-v2"
	BridgeSchemaVersion                 = "bridge-v2"
	OpaqueSurfaceDocumentSchemaVersion  = "opaque-surface-document-v1"
	OpaqueSurfaceTransportSchemaVersion = "opaque-surface-transport-v1"
	TargetClassifierVersion             = "target-classifier-v1"
	NetworkGrantSchemaVersion           = "network-grant-v1"
	PluginPlatformOpenAPIVersion        = "plugin-platform-v2"
	CompatibilityManifestVersion        = "redevplugin.compatibility.v2"
	CompatibilitySchemaVersion          = "compatibility-manifest-v2"
	ReleaseManifestSchemaVersion        = "release-manifest-v2"
	WorkerInvocationSchemaVersion       = "worker-invocation-v1"
	ErrorCodesSchemaVersion             = "error-codes-v1"
	ContractRegistryVersion             = "contract-registry-v1"
)

Variables

View Source
var (
	GoModuleVersion  = devVersion
	UIPackageVersion = devVersion
	RuntimeVersion   = devVersion
)
View Source
var (
	ErrCompatibilitySchemaVersion = errors.New("compatibility manifest schema version mismatch")
	ErrCompatibilityMatrix        = errors.New("compatibility manifest version matrix mismatch")
	ErrCompatibilityContract      = errors.New("compatibility manifest contract mismatch")
	ErrCompatibilityPath          = errors.New("compatibility manifest contract path is invalid")
)

Functions

func VerifyCompatibilityManifest

func VerifyCompatibilityManifest(manifest CompatibilityManifest, artifactRoot string) error

func VerifyCompatibilityManifestFile

func VerifyCompatibilityManifestFile(filename string, artifactRoot string) error

Types

type CompatibilityManifest

type CompatibilityManifest struct {
	SchemaVersion string             `json:"schema_version"`
	Matrix        Matrix             `json:"matrix"`
	Contracts     []ContractArtifact `json:"contracts"`
}

func CurrentCompatibilityManifest

func CurrentCompatibilityManifest() CompatibilityManifest

func DecodeCompatibilityManifest

func DecodeCompatibilityManifest(raw []byte) (CompatibilityManifest, error)

type ContractArtifact

type ContractArtifact struct {
	ID      string `json:"id"`
	Path    string `json:"path"`
	Version string `json:"version"`
	SHA256  string `json:"sha256"`
}

type Matrix

type Matrix struct {
	GoModuleVersion                string `json:"redevplugin_go_version"`
	UIPackageVersion               string `json:"redevplugin_ui_version"`
	RuntimeVersion                 string `json:"redevplugin_runtime_version"`
	PluginUIProtocolVersion        string `json:"plugin_ui_protocol_version"`
	PluginHostProtocolVersion      string `json:"plugin_host_protocol_version"`
	RustIPCVersion                 string `json:"rust_ipc_version"`
	WASMABIVersion                 string `json:"wasm_abi_version"`
	ManifestSchemaVersion          string `json:"manifest_schema_version"`
	PackageSignatureSchemaVersion  string `json:"package_signature_schema_version"`
	ReleaseMetadataSchemaVersion   string `json:"release_metadata_schema_version"`
	SourcePolicySchemaVersion      string `json:"source_policy_schema_version"`
	SourceRevocationsSchemaVersion string `json:"source_revocations_schema_version"`
	TokenTicketSchemaVersion       string `json:"token_ticket_schema_version"`
	BridgeSchemaVersion            string `json:"bridge_schema_version"`
	OpaqueSurfaceDocumentVersion   string `json:"opaque_surface_document_schema_version"`
	OpaqueSurfaceTransportVersion  string `json:"opaque_surface_transport_schema_version"`
	TargetClassifierVersion        string `json:"target_classifier_version"`
	NetworkGrantSchemaVersion      string `json:"network_grant_schema_version"`
	PluginPlatformOpenAPIVersion   string `json:"plugin_platform_openapi_version"`
	CompatibilitySchemaVersion     string `json:"compatibility_schema_version"`
	ReleaseManifestSchemaVersion   string `json:"release_manifest_schema_version"`
	WorkerInvocationSchemaVersion  string `json:"worker_invocation_schema_version"`
	ErrorCodesSchemaVersion        string `json:"error_codes_schema_version"`
	ContractRegistryVersion        string `json:"contract_registry_version"`
}

func CurrentMatrix

func CurrentMatrix() Matrix

Jump to

Keyboard shortcuts

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