Documentation
¶
Index ¶
- Constants
- Variables
- func CurrentCompatibilityVersion() string
- func SupportsPluginUIProtocol(protocolVersion string) bool
- func VerifyCompatibilityManifest(manifest CompatibilityManifest, artifactRoot string) error
- func VerifyCompatibilityManifestFile(filename string, artifactRoot string) error
- type CompatibilityManifest
- type ContractArtifact
- type GoModuleCoordinate
- type Matrix
- type NPMPackageCoordinate
- type PlatformPackageSet
- type PluginUITransportMapping
- type RustCrateCoordinate
- type SemVer
Constants ¶
View Source
const ( PluginUIProtocolVersion = "plugin-ui-v6" PluginHostProtocolVersion = "plugin-host-v8" RustIPCVersion = "rust-ipc-v6" WASMABIVersion = "redevplugin-wasm-worker-v2" ManifestSchemaVersion = "manifest-v6" PackageSignatureSchemaVersion = "package-signature-v1" ReleaseMetadataSchemaVersion = "release-metadata-v6" ReleaseRootDelegationSchemaVersion = "release-root-delegation-v1" ReleaseSourcePolicySchemaVersion = "release-source-policy-v2" ReleaseSourcePolicyPointerSchemaVersion = "release-source-policy-pointer-v1" ReleaseRevocationSchemaVersion = "release-revocation-v2" ReleaseRevocationPointerSchemaVersion = "release-revocation-pointer-v1" ReleaseTrustStateSchemaVersion = "release-trust-state-v1" TrustedTimeEvidenceSchemaVersion = "trusted-time-evidence-v1" TrustedTimeLeafSchemaVersion = "trusted-time-leaf-v1" ReleaseSigningLedgerSchemaVersion = "release-signing-ledger-v1" ReleaseSigningSubjectSchemaVersion = "release-signing-subject-v1" ReleaseSignatureEnvelopeSchemaVersion = "release-signature-envelope-v1" ReleaseSigningLedgerReceiptSchemaVersion = "release-signing-ledger-receipt-v1" ReleaseSigningLedgerEvidenceSchemaVersion = "release-signing-ledger-evidence-v1" TokenTicketSchemaVersion = "token-ticket-v4" BridgeSchemaVersion = "bridge-v6" OpaqueSurfaceDocumentSchemaVersion = "opaque-surface-document-v3" OpaqueSurfaceTransportSchemaVersion = "opaque-surface-transport-v5" TargetClassifierVersion = "target-classifier-v2" NetworkGrantSchemaVersion = "network-grant-v2" ResourceScopeSchemaVersion = "resource-scope-v1" SessionScopeSchemaVersion = "session-scope-v1" SessionScopeMaintenanceSchemaVersion = "session-scope-maintenance-v1" PluginPlatformOpenAPIVersion = "plugin-platform-v9" CompatibilityManifestVersion = "redevplugin.compatibility.v11" CompatibilitySchemaVersion = "compatibility-manifest-v11" 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-v7" PerformanceContractVersion = "performance-contract-v4" PerformanceEvidenceSchemaVersion = "performance-evidence-v4" ContractRegistryVersion = "contract-registry-v2" PlatformPackageSetSchemaVersion = "platform-package-set-v1" PlatformPackagePublicationSchemaVersion = "platform-package-publication-v1" RuntimeAdmissionSchemaVersion = "runtime-admission-v1" RuntimeDescriptorSchemaVersion = "runtime-descriptor-v2" OwnerScopeInventoryRegistryVersion = "owner-scope-inventory-registry-v1" OwnerScopeInventorySchemaVersion = "owner-scope-inventory-v1" OwnerScopeMigrationSchemaVersion = "owner-scope-migration-v1" OwnerScopeRootRecoverySchemaVersion = "owner-scope-root-recovery-v1" ProcessContainmentSchemaVersion = "process-containment-v1" RuntimeExecJournalSchemaVersion = "runtime-exec-journal-v1" QuarantineCleanupSchemaVersion = "quarantine-cleanup-v1" )
View Source
const ContractSetSHA256 = "c72f9a233bb2161454a5a5e24dba9bfd35f00fd198711fd8ed3bc6b161089ff3"
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 SupportsPluginUIProtocol ¶ added in v0.6.18
func VerifyCompatibilityManifest ¶
func VerifyCompatibilityManifest(manifest CompatibilityManifest, artifactRoot string) error
Types ¶
type CompatibilityManifest ¶
type CompatibilityManifest struct {
SchemaVersion string `json:"schema_version"`
PackageSet PlatformPackageSet `json:"package_set"`
Matrix Matrix `json:"matrix"`
ContractSetSHA256 string `json:"contract_set_sha256"`
Contracts []ContractArtifact `json:"contracts"`
}
func CurrentCompatibilityManifest ¶
func CurrentCompatibilityManifest() CompatibilityManifest
func DecodeCompatibilityManifest ¶
func DecodeCompatibilityManifest(raw []byte) (CompatibilityManifest, error)
type ContractArtifact ¶
type GoModuleCoordinate ¶ added in v0.6.0
type Matrix ¶
type Matrix struct {
PluginUIProtocolVersion string `json:"plugin_ui_protocol_version"`
SupportedPluginUIProtocolVersions []string `json:"supported_plugin_ui_protocol_versions"`
PluginUITransportMappings []PluginUITransportMapping `json:"plugin_ui_transport_mappings"`
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"`
ReleaseRootDelegationVersion string `json:"release_root_delegation_schema_version"`
ReleaseSourcePolicyVersion string `json:"release_source_policy_schema_version"`
ReleaseSourcePolicyPointerVersion string `json:"release_source_policy_pointer_schema_version"`
ReleaseRevocationVersion string `json:"release_revocation_schema_version"`
ReleaseRevocationPointerVersion string `json:"release_revocation_pointer_schema_version"`
ReleaseTrustStateVersion string `json:"release_trust_state_schema_version"`
TrustedTimeEvidenceVersion string `json:"trusted_time_evidence_schema_version"`
TrustedTimeLeafVersion string `json:"trusted_time_leaf_schema_version"`
ReleaseSigningLedgerVersion string `json:"release_signing_ledger_schema_version"`
ReleaseSigningSubjectVersion string `json:"release_signing_subject_schema_version"`
ReleaseSignatureEnvelopeVersion string `json:"release_signature_envelope_schema_version"`
ReleaseSigningLedgerReceiptVersion string `json:"release_signing_ledger_receipt_schema_version"`
ReleaseSigningLedgerEvidenceVersion string `json:"release_signing_ledger_evidence_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"`
SessionScopeSchemaVersion string `json:"session_scope_schema_version"`
SessionScopeMaintenanceVersion string `json:"session_scope_maintenance_schema_version"`
PluginPlatformOpenAPIVersion string `json:"plugin_platform_openapi_version"`
CompatibilitySchemaVersion string `json:"compatibility_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"`
PlatformPackageSetVersion string `json:"platform_package_set_schema_version"`
PlatformPackagePublicationVersion string `json:"platform_package_publication_schema_version"`
RuntimeAdmissionVersion string `json:"runtime_admission_schema_version"`
RuntimeDescriptorVersion string `json:"runtime_descriptor_schema_version"`
OwnerScopeInventoryRegistryVersion string `json:"owner_scope_inventory_registry_version"`
OwnerScopeInventoryVersion string `json:"owner_scope_inventory_schema_version"`
OwnerScopeMigrationVersion string `json:"owner_scope_migration_schema_version"`
OwnerScopeRootRecoveryVersion string `json:"owner_scope_root_recovery_schema_version"`
ProcessContainmentVersion string `json:"process_containment_schema_version"`
RuntimeExecJournalVersion string `json:"runtime_exec_journal_schema_version"`
QuarantineCleanupVersion string `json:"quarantine_cleanup_schema_version"`
}
func CurrentMatrix ¶
func CurrentMatrix() Matrix
type NPMPackageCoordinate ¶ added in v0.6.0
type PlatformPackageSet ¶ added in v0.6.0
type PlatformPackageSet struct {
SchemaVersion string `json:"schema_version"`
PlatformVersion string `json:"platform_version"`
GoModule GoModuleCoordinate `json:"go_module"`
NPMPackages []NPMPackageCoordinate `json:"npm_packages"`
RustCrates []RustCrateCoordinate `json:"rust_crates"`
ContractRegistryVersion string `json:"contract_registry_version"`
ContractSetSHA256 string `json:"contract_set_sha256"`
}
type PluginUITransportMapping ¶ added in v0.6.18
type RustCrateCoordinate ¶ added in v0.6.0
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.