Documentation
¶
Index ¶
- Constants
- Variables
- func CurrentCompatibilityVersion() string
- func VerifyCompatibilityManifest(manifest CompatibilityManifest, artifactRoot string) error
- func VerifyCompatibilityManifestFile(filename string, artifactRoot string) error
- type CompatibilityManifest
- type ContractArtifact
- type Matrix
- type SemVer
Constants ¶
View Source
const ( PluginUIProtocolVersion = "plugin-ui-v5" PluginHostProtocolVersion = "plugin-host-v4" RustIPCVersion = "rust-ipc-v4" WASMABIVersion = "redevplugin-wasm-worker-v2" ManifestSchemaVersion = "manifest-v5" PackageSignatureSchemaVersion = "package-signature-v1" ReleaseMetadataSchemaVersion = "release-metadata-v5" SourcePolicySchemaVersion = "source-policy-v1" SourceRevocationsSchemaVersion = "source-revocations-v1" TokenTicketSchemaVersion = "token-ticket-v3" BridgeSchemaVersion = "bridge-v5" OpaqueSurfaceDocumentSchemaVersion = "opaque-surface-document-v3" OpaqueSurfaceTransportSchemaVersion = "opaque-surface-transport-v4" TargetClassifierVersion = "target-classifier-v2" NetworkGrantSchemaVersion = "network-grant-v2" ResourceScopeSchemaVersion = "resource-scope-v1" PluginPlatformOpenAPIVersion = "plugin-platform-v6" CompatibilityManifestVersion = "redevplugin.compatibility.v6" CompatibilitySchemaVersion = "compatibility-manifest-v6" ReleaseManifestSchemaVersion = "release-manifest-v4" WorkerInvocationSchemaVersion = "worker-invocation-v3" HostCapabilityContractSchemaVersion = "host-capability-contract-v1" HostCapabilityPinSchemaVersion = "host-capability-pin-v1" HostCapabilityManifestSchemaVersion = "host-capability-manifest-v1" HostCapabilityCompatibilitySchemaVersion = "host-capability-compatibility-v1" HostCapabilitySignatureSchemaVersion = "host-capability-signature-v1" HostCapabilityNoticesSchemaVersion = "host-capability-notices-v1" ErrorCodesSchemaVersion = "error-codes-v4" PerformanceContractVersion = "performance-contract-v1" PerformanceEvidenceSchemaVersion = "performance-evidence-v1" ContractRegistryVersion = "contract-registry-v1" )
View Source
const StrictSemVerPattern = `` /* 214-byte string literal not displayed */
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") )
View Source
var (
ErrInvalidSemVer = errors.New("invalid semantic version")
)
Functions ¶
func CurrentCompatibilityVersion ¶ added in v0.3.0
func CurrentCompatibilityVersion() string
func VerifyCompatibilityManifest ¶
func VerifyCompatibilityManifest(manifest CompatibilityManifest, 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 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"`
ResourceScopeSchemaVersion string `json:"resource_scope_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"`
HostCapabilityContractVersion string `json:"host_capability_contract_schema_version"`
HostCapabilityPinVersion string `json:"host_capability_pin_schema_version"`
HostCapabilityManifestVersion string `json:"host_capability_manifest_schema_version"`
HostCapabilityCompatVersion string `json:"host_capability_compatibility_schema_version"`
HostCapabilitySignatureVersion string `json:"host_capability_signature_schema_version"`
HostCapabilityNoticesVersion string `json:"host_capability_notices_schema_version"`
ErrorCodesSchemaVersion string `json:"error_codes_schema_version"`
PerformanceContractVersion string `json:"performance_contract_version"`
PerformanceEvidenceVersion string `json:"performance_evidence_schema_version"`
ContractRegistryVersion string `json:"contract_registry_version"`
}
func CurrentMatrix ¶
func CurrentMatrix() Matrix
type SemVer ¶ added in v0.5.0
type SemVer struct {
// contains filtered or unexported fields
}
SemVer is an immutable semantic version in the public, prefix-free form. Its zero value is invalid and cannot be encoded.
func ParseSemVer ¶ added in v0.5.0
func (SemVer) MarshalJSON ¶ added in v0.5.0
func (SemVer) MarshalText ¶ added in v0.5.0
func (*SemVer) UnmarshalJSON ¶ added in v0.5.0
func (*SemVer) UnmarshalText ¶ added in v0.5.0
Click to show internal directories.
Click to hide internal directories.