Documentation
¶
Index ¶
- Constants
- func CanonicalBundleDataV1(component string, bundle PythonBundleV1) (providers.CanonicalProviderData, error)
- func CanonicalInterpreterFactsV2(facts InterpreterInspectionFactsV2) providers.CanonicalProviderData
- func CanonicalPackageRequestV1(requirement string) (providers.CanonicalPackageRequest, error)
- func CanonicalPortableToolPythonProjectionBytesV1(projection PortableToolPythonProjectionV1) ([]byte, error)
- func CanonicalProfileFactsV2(component string, sources []providers.ResolvedSourceInput) providers.CanonicalProviderData
- func CanonicalProviderRequestV1(request PythonProviderRequestV1) (providers.CanonicalProviderRequest, error)
- func CanonicalSourceBuildSettingsV1() providers.CanonicalProviderData
- func CanonicalSourceBuildSettingsV2(buildType string, recipeDigest canonical.Digest) (providers.CanonicalProviderData, error)
- func CanonicalSourceMetadataV2(metadata SourceWheelMetadataV1, ...) providers.CanonicalProviderData
- func ComparePackageVersionsV1(left string, right string) (int, error)
- func FilterProviderRequestOverridesV1(request providers.CanonicalProviderRequest, distributions []string) (providers.CanonicalProviderRequest, error)
- func InspectPreparedWheelDistributionsV1(ctx context.Context, dir string) ([]string, error)
- func InspectWheelDeclaredDependenciesReaderV1(reader io.ReaderAt, size int64, descriptor providerstore.ArtifactDescriptor, ...) ([]string, error)
- func InspectWheelDeclaredDependenciesV1(filename string, resolvedDistributions []string) ([]string, error)
- func InterpreterInspectionArgv(executable string, testedTags []string, targetArchitecture string) ([]string, error)
- func InterpreterVersionSatisfies(constraint string, version string) (bool, error)
- func IntersectSupportedPythonClaimsV1(left, right []string) ([]string, error)
- func IsolatedInterpreterCommandPrefixV2(executable string) ([]string, error)
- func NewResolvedSourceInputV2(component string, logicalPackage string, sourceInputDigest canonical.Digest, ...) (providers.ResolvedSourceInput, error)
- func NewResolvedSourceInputWithBuildV2(component string, logicalPackage string, sourceInputDigest canonical.Digest, ...) (providers.ResolvedSourceInput, error)
- func NormalizeDistributionName(name string) string
- func NormalizeSupportedPythonClaimsV1(values []string) ([]string, error)
- func PackageRootCompatibilityUnprovenV1(err error) bool
- func PackageRootDistributionNameV1(requirement string) (string, error)
- func PackageRootRequirementsCompatibleV1(requirements []string) (bool, error)
- func ProviderRequestDistributionsV1(request providers.CanonicalProviderRequest) ([]string, error)
- func PythonRequiresPythonCoversClaimV1(requiresPython, claim string) (bool, error)
- func PythonRequiresPythonIntersectsClaimV1(requiresPython, claim string) (bool, error)
- func RequirementDistributionName(requirement string) (string, error)
- func RequirementProfileSelectedSourcesV2(profile providers.RequirementProfile) ([]providers.ResolvedSourceInput, error)
- func RuntimeRootV1(component string) (string, error)
- func SourceArtifactDescriptorV2(source providers.ResolvedSourceInput) (providerstore.ArtifactDescriptor, error)
- func ValidateBundleV1(component string, bundle PythonBundleV1) error
- func ValidateCanonicalPackageRequestV1(request providers.CanonicalPackageRequest) error
- func ValidateCanonicalProviderRequestForComponentV1(component string, request providers.CanonicalProviderRequest) error
- func ValidateCanonicalProviderRequestV1(request providers.CanonicalProviderRequest) error
- func ValidateInterpreterVersionV1(value string) error
- func ValidatePackageVersionV1(value string) error
- func ValidatePortableToolPythonBindingsV1(component PortableToolPythonComponentV1, ...) error
- func ValidatePortableToolWheelTagEnvelopeV1(tag, targetPlatform string) error
- func ValidatePythonVersion(output string) error
- func ValidateRequirementProfileV1(profile providers.RequirementProfile) error
- func ValidateResolvedBundlePayloadV1(payload providers.ResolvedBundleIdentityV1) error
- func ValidateResolvedSourceInputV2(source providers.ResolvedSourceInput) error
- func ValidateSourceBuildIdentityV2(builderProfile string, buildSettings providers.CanonicalProviderData) error
- func ValidateWheelConsoleScriptTargetV1(value string) error
- func WheelFilenameRequirement(filename string) (string, bool)
- func WheelResolverArgv(interpreter string, request providers.CanonicalProviderRequest, ...) ([]string, error)
- func WheelResolverSourceConstraints(request providers.CanonicalProviderRequest, ...) ([]byte, error)
- type ComponentProvider
- func (ComponentProvider) Materialize(input providerapi.MaterializeInput) (providerapi.MaterializationTransaction, error)
- func (ComponentProvider) Plan(input providerapi.PlanInput) ([]providerapi.NodeSpec, error)
- func (ComponentProvider) RecipeVersion() string
- func (ComponentProvider) Type() blueprint.ComponentType
- type InterpreterEvidenceResolver
- type InterpreterInspectionFactsV2
- type OrdinaryRequirementClaimV1
- type PortableToolExactWheelConstraintV1
- type PortableToolPythonBindingV1
- type PortableToolPythonBindingVerificationInputV1
- type PortableToolPythonBindingVerificationV1
- type PortableToolPythonComponentV1
- type PortableToolPythonProjectionV1
- type PortableToolPythonSelectedBindingV1
- func (binding *PortableToolPythonSelectedBindingV1) FreshWheel(manifest, source providerapi.PortableToolSelectedRecordV1, ...) (*PortableToolPythonWheelHandoffV1, error)
- func (binding *PortableToolPythonSelectedBindingV1) LockedWheel(manifest providerapi.PortableToolSelectedRecordV1, ...) (*PortableToolPythonWheelHandoffV1, error)
- func (binding *PortableToolPythonSelectedBindingV1) PlanEntry() (providerapi.PortableToolPlanEntryV1, error)
- type PortableToolPythonSelectionV1
- func (selection *PortableToolPythonSelectionV1) Binding(componentName, distribution string) (*PortableToolPythonSelectedBindingV1, error)
- func (selection *PortableToolPythonSelectionV1) Plan() (providerapi.PortableToolPlanV1, error)
- func (selection *PortableToolPythonSelectionV1) Projection() (PortableToolPythonProjectionV1, error)
- type PortableToolPythonVerifiedWheelHandoffV1
- type PortableToolPythonWheelHandoffV1
- type PortableToolVerifiedWheelInputV1
- type PortableToolVerifiedWheelModeV1
- type PythonBundleV1
- type PythonConsoleScriptV1
- type PythonPackageOverrideV1
- type PythonProviderRequestV1
- type PythonWheelV1
- type SourceDistributionMetadataV1
- type SourceMetadataV2
- type SourceWheelMetadataV1
- func DescribeSourceWheelFileV1(filename string, logicalPath string) (providerstore.ArtifactDescriptor, SourceWheelMetadataV1, error)
- func InspectSourceWheelFileV1(filename string, descriptor providerstore.ArtifactDescriptor) (SourceWheelMetadataV1, error)
- func SourceWheelMetadataV2(source providers.ResolvedSourceInput) (SourceWheelMetadataV1, error)
- type WheelConsoleScriptV1
- type WheelInspectionV1
- type WheelInventoryPathV1
- type WheelNodeResolver
Constants ¶
const ( RecipeVersion = "python-v3" MaterializationRecipeVersion = "python-materialize-v3" InstallRoot = "/opt/reploy/providers/python" BundleMount = "/reploy-bundle" )
const ( ProfileFactsSchemaV2 = "python-profile-facts-v2" ConsoleScriptOutputSchemaV1 = "python-console-script-v1" )
const ( ResolverInputDirectory = "/.reploy-resolver/input" ResolverOutputDirectory = "/.reploy-resolver/output" ResolverSourceConstraintsPath = ResolverInputDirectory + "/reploy-source-constraints.txt" )
const ( ProviderRequestSchemaV1 = "python-provider-request-v1" BundleSchemaV1 = "python-bundle-v1" )
const ( SourceInputManifestSchemaV1 = "python-source-input-manifest-v1" SourceBuilderProfileV1 = "python-uv-sdist-wheel-v1" SourceBuilderProfileV2 = "python-uv-local-recipe-v2" SourceBuilderRequirementV1 = "uv==0.11.26" SourceBuildSettingsSchemaV1 = "python-sdist-wheel-build-settings-v1" SourceBuildSettingsSchemaV2 = "python-local-recipe-build-settings-v2" SourceMetadataSchemaV2 = "python-source-metadata-v2" SourceBuildTypePEP517 = "pep517" SourceBuildTypeLegacy = "setuptools-legacy" )
const (
InterpreterFactsSchemaV2 = "python-interpreter-facts-v2"
)
const PackageRequestSchemaV1 = "python-package-request-v1"
const PortableToolPythonProjectionSchemaV1 = "portable-tool-python-projection-v1"
const ProviderName = "python"
Variables ¶
This section is empty.
Functions ¶
func CanonicalBundleDataV1 ¶
func CanonicalBundleDataV1(component string, bundle PythonBundleV1) (providers.CanonicalProviderData, error)
func CanonicalInterpreterFactsV2 ¶
func CanonicalInterpreterFactsV2(facts InterpreterInspectionFactsV2) providers.CanonicalProviderData
func CanonicalPackageRequestV1 ¶
func CanonicalPackageRequestV1(requirement string) (providers.CanonicalPackageRequest, error)
func CanonicalPortableToolPythonProjectionBytesV1 ¶
func CanonicalPortableToolPythonProjectionBytesV1(projection PortableToolPythonProjectionV1) ([]byte, error)
CanonicalPortableToolPythonProjectionBytesV1 validates a projection and returns its deterministic canonical-json-v1 representation.
func CanonicalProfileFactsV2 ¶
func CanonicalProfileFactsV2(component string, sources []providers.ResolvedSourceInput) providers.CanonicalProviderData
func CanonicalProviderRequestV1 ¶
func CanonicalProviderRequestV1(request PythonProviderRequestV1) (providers.CanonicalProviderRequest, error)
func CanonicalSourceBuildSettingsV1 ¶
func CanonicalSourceBuildSettingsV1() providers.CanonicalProviderData
func CanonicalSourceMetadataV2 ¶
func CanonicalSourceMetadataV2( metadata SourceWheelMetadataV1, sourceArtifact providerstore.ArtifactDescriptor, ) providers.CanonicalProviderData
func ComparePackageVersionsV1 ¶
ComparePackageVersionsV1 compares valid PEP 440 versions.
func FilterProviderRequestOverridesV1 ¶
func FilterProviderRequestOverridesV1( request providers.CanonicalProviderRequest, distributions []string, ) (providers.CanonicalProviderRequest, error)
FilterProviderRequestOverridesV1 returns the same request with override intent restricted to distributions in the completed component closure.
func InspectPreparedWheelDistributionsV1 ¶
InspectPreparedWheelDistributionsV1 validates a resolver output directory and returns its unique normalized distributions without publishing it. This is used to discover which optional local overrides are actually part of the resolved closure before any local path is inspected.
func InspectWheelDeclaredDependenciesReaderV1 ¶
func InspectWheelDeclaredDependenciesReaderV1(reader io.ReaderAt, size int64, descriptor providerstore.ArtifactDescriptor, resolvedDistributions []string) ([]string, error)
InspectWheelDeclaredDependenciesReaderV1 inspects the exact descriptor-bound wheel. The caller owns reader and keeps it open through the call.
func InspectWheelDeclaredDependenciesV1 ¶
func InspectWheelDeclaredDependenciesV1(filename string, resolvedDistributions []string) ([]string, error)
InspectWheelDeclaredDependenciesV1 reads the shared verified wheel inspection and returns only dependency names present in the resolved distribution set.
func InterpreterInspectionArgv ¶
func InterpreterInspectionArgv(executable string, testedTags []string, targetArchitecture string) ([]string, error)
InterpreterInspectionArgv returns the complete fixed V2 invocation used by a Python consumer to inspect the selected absolute interpreter. The tested tags and target architecture are validated argv data, never Python source.
func InterpreterVersionSatisfies ¶
InterpreterVersionSatisfies evaluates the normalized release specifiers accepted for a Python interpreter requirement against an observed runtime version.
func IsolatedInterpreterCommandPrefixV2 ¶
IsolatedInterpreterCommandPrefixV2 is the one command prefix shared by interpreter inspection and ordinary pip resolution.
func NewResolvedSourceInputV2 ¶
func NewResolvedSourceInputV2( component string, logicalPackage string, sourceInputDigest canonical.Digest, sourceArtifact providerstore.ArtifactDescriptor, buildEnvironmentDigest canonical.Digest, outputArtifact providerstore.ArtifactDescriptor, metadata SourceWheelMetadataV1, ) (providers.ResolvedSourceInput, error)
NewResolvedSourceInputV2 creates the path-free source record consumed by the common provider graph after the retained sdist and wheel have been inspected.
func NewResolvedSourceInputWithBuildV2 ¶
func NewResolvedSourceInputWithBuildV2( component string, logicalPackage string, sourceInputDigest canonical.Digest, sourceArtifact providerstore.ArtifactDescriptor, buildEnvironmentDigest canonical.Digest, outputArtifact providerstore.ArtifactDescriptor, metadata SourceWheelMetadataV1, builderProfile string, buildSettings providers.CanonicalProviderData, ) (providers.ResolvedSourceInput, error)
NewResolvedSourceInputWithBuildV2 preserves the v2 common source record while allowing a selected project-owned recipe to bind its canonical build protocol and tool requirements into cache and lock identity.
func ProviderRequestDistributionsV1 ¶
func ProviderRequestDistributionsV1(request providers.CanonicalProviderRequest) ([]string, error)
ProviderRequestDistributionsV1 returns the normalized direct distribution roots in one canonical Python provider request. It does not evaluate or resolve dependencies.
func PythonRequiresPythonCoversClaimV1 ¶
PythonRequiresPythonCoversClaimV1 proves that the canonical constraint admits every release in a series, or admits the exact release of a point claim. Series proofs are interval based and never enumerate patch numbers.
func PythonRequiresPythonIntersectsClaimV1 ¶
PythonRequiresPythonIntersectsClaimV1 answers the weaker, nonempty-overlap question used when validating an individual artifact.
func RequirementDistributionName ¶
RequirementDistributionName returns the normalized distribution named by a validated Python requirement. It does not resolve or install the package.
func RequirementProfileSelectedSourcesV2 ¶
func RequirementProfileSelectedSourcesV2(profile providers.RequirementProfile) ([]providers.ResolvedSourceInput, error)
RequirementProfileSelectedSourcesV2 returns the selected local sources already bound into a validated Python profile.
func RuntimeRootV1 ¶
RuntimeRootV1 returns the deterministic, application-scoped Python runtime root. Short application identities retain their historical readable path. Long application identities use a full SHA-256 digest segment so the generated interpreter remains usable in a Linux direct shebang while the root remains unique and stable for the owning application identity.
func SourceArtifactDescriptorV2 ¶
func SourceArtifactDescriptorV2(source providers.ResolvedSourceInput) (providerstore.ArtifactDescriptor, error)
func ValidateBundleV1 ¶
func ValidateBundleV1(component string, bundle PythonBundleV1) error
func ValidateCanonicalPackageRequestV1 ¶
func ValidateCanonicalPackageRequestV1(request providers.CanonicalPackageRequest) error
func ValidateCanonicalProviderRequestForComponentV1 ¶
func ValidateCanonicalProviderRequestForComponentV1(component string, request providers.CanonicalProviderRequest) error
func ValidateCanonicalProviderRequestV1 ¶
func ValidateCanonicalProviderRequestV1(request providers.CanonicalProviderRequest) error
func ValidateInterpreterVersionV1 ¶
ValidateInterpreterVersionV1 accepts the canonical major.minor or major.minor.patch release form used by portable binding compatibility lists.
func ValidatePackageVersionV1 ¶
ValidatePackageVersionV1 accepts one exact Python distribution version. Parsing it here keeps provider-owned version syntax out of pip's constraint grammar and gives every caller the same PEP 440 contract.
func ValidatePortableToolPythonBindingsV1 ¶
func ValidatePortableToolPythonBindingsV1( component PortableToolPythonComponentV1, interpreter providerapi.ExecutableEvidence, platform blueprint.Platform, ) error
ValidatePortableToolPythonBindingsV1 is the pure pre-acquisition gate for one Python component. It consumes only canonical projection data and facts already observed from the selected interpreter; it performs no I/O and does not reconstruct pip's wheel-compatibility rules.
func ValidatePortableToolWheelTagEnvelopeV1 ¶
ValidatePortableToolWheelTagEnvelopeV1 validates the bounded static tag forms admitted before interpreter inspection. Runtime membership remains owned by the selected interpreter's pip implementation.
func ValidatePythonVersion ¶
func ValidateRequirementProfileV1 ¶
func ValidateRequirementProfileV1(profile providers.RequirementProfile) error
func ValidateResolvedBundlePayloadV1 ¶
func ValidateResolvedBundlePayloadV1(payload providers.ResolvedBundleIdentityV1) error
func ValidateResolvedSourceInputV2 ¶
func ValidateResolvedSourceInputV2(source providers.ResolvedSourceInput) error
func ValidateSourceBuildIdentityV2 ¶
func ValidateSourceBuildIdentityV2( builderProfile string, buildSettings providers.CanonicalProviderData, ) error
func ValidateWheelConsoleScriptTargetV1 ¶
ValidateWheelConsoleScriptTargetV1 checks the PyPA module:object [extras] grammar without importing or executing the referenced object. Whitespace around the colon and extras delimiters is accepted by the entry-point format.
func WheelResolverArgv ¶
func WheelResolverArgv( interpreter string, request providers.CanonicalProviderRequest, sources []providers.ResolvedSourceInput, reusable []providerstore.ArtifactDescriptor, selected []PortableToolVerifiedWheelInputV1, ) ([]string, error)
WheelResolverArgv returns the fixed one-shot pip recipe for the complete component wheel closure. Reusable wheels are candidates through find-links; local-source constraints make a candidate override the index only when its distribution is part of the requested closure.
func WheelResolverSourceConstraints ¶
func WheelResolverSourceConstraints( request providers.CanonicalProviderRequest, sources []providers.ResolvedSourceInput, reusable []providerstore.ArtifactDescriptor, selected []PortableToolVerifiedWheelInputV1, ) ([]byte, error)
WheelResolverSourceConstraints returns the complete deterministic contents of the resolver-owned constraints file. Each candidate remains optional, but if its distribution is selected pip must use this exact staged wheel.
Types ¶
type ComponentProvider ¶
type ComponentProvider struct{}
func (ComponentProvider) Materialize ¶
func (ComponentProvider) Materialize(input providerapi.MaterializeInput) (providerapi.MaterializationTransaction, error)
Materialize closes a verified Python bundle into the typed, offline recipe executed by the image backend. It describes the transaction only; it does not inspect the host store or run a container.
func (ComponentProvider) Plan ¶
func (ComponentProvider) Plan(input providerapi.PlanInput) ([]providerapi.NodeSpec, error)
func (ComponentProvider) RecipeVersion ¶
func (ComponentProvider) RecipeVersion() string
func (ComponentProvider) Type ¶
func (ComponentProvider) Type() blueprint.ComponentType
type InterpreterEvidenceResolver ¶
type InterpreterEvidenceResolver func( context.Context, providerapi.ExecutableRequirement, []providerapi.RealizedOutput, providerapi.RealizedImageV1, blueprint.Platform, ) (providerapi.ExecutableEvidence, error)
InterpreterEvidenceResolver validates one Python interpreter candidate against the exact image prefix and returns the consuming Python node's observed evidence. It must determine the runtime version rather than trust supplier metadata.
type InterpreterInspectionFactsV2 ¶
type InterpreterInspectionFactsV2 struct {
Version string `json:"version"`
Implementation string `json:"implementation"`
ABI string `json:"abi"`
Libc string `json:"libc"`
LibcMajor string `json:"libc_major"`
LibcMinor string `json:"libc_minor"`
TestedTags []string `json:"tested_tags"`
CompatibleTags []string `json:"compatible_tags"`
}
InterpreterInspectionFactsV2 is the strict wire representation emitted by the fixed probe. Decimal release components are strings because canonical provider data does not contain numeric values.
func DecodeInterpreterFactsV2 ¶
func DecodeInterpreterFactsV2(data providers.CanonicalProviderData) (InterpreterInspectionFactsV2, error)
DecodeInterpreterFactsV2 validates and decodes the complete interpreter evidence carried by Python profiles and bundles.
func ParseInterpreterInspectionOutput ¶
func ParseInterpreterInspectionOutput(output []byte, expectedTestedTags []string) (InterpreterInspectionFactsV2, error)
ParseInterpreterInspectionOutput strictly parses one complete probe JSON document and requires its tested set to equal the validated request.
type OrdinaryRequirementClaimV1 ¶
OrdinaryRequirementClaimV1 projects a canonical ordinary Python requirement into the bounded package-root compatibility model without losing source identity. A source without a provable wheel version has an empty Root; the caller must not treat that as an unconstrained package requirement.
func ProjectOrdinaryRequirementClaimV1 ¶
func ProjectOrdinaryRequirementClaimV1(requirement string) (OrdinaryRequirementClaimV1, error)
type PortableToolExactWheelConstraintV1 ¶
type PortableToolExactWheelConstraintV1 struct {
Platform string `json:"platform"`
Filename string `json:"filename"`
Distribution string `json:"distribution"`
EcosystemVersion string `json:"ecosystem_version"`
Tags []string `json:"tags"`
Size string `json:"size"`
SHA256 canonical.Digest `json:"sha256"`
RequiresPython string `json:"requires_python"`
}
PortableToolExactWheelConstraintV1 carries identity and compatibility metadata only. It is not an index preference, path, or acquisition result.
type PortableToolPythonBindingV1 ¶
type PortableToolPythonBindingV1 struct {
Scope string `json:"scope"`
Component string `json:"component"`
SelectedClosureDigest canonical.Digest `json:"selected_closure_digest"`
Distribution string `json:"distribution"`
Contract providerapi.PortableToolRecordReferenceV1 `json:"contract"`
Artifact providerapi.PortableToolRecordReferenceV1 `json:"artifact"`
Requirements []string `json:"requirements"`
SupportedPython []string `json:"supported_python"`
SupportedTags []string `json:"supported_tags"`
CLI portabletool.ToolExportV1 `json:"cli"`
Wheel PortableToolExactWheelConstraintV1 `json:"wheel"`
}
type PortableToolPythonBindingVerificationInputV1 ¶
type PortableToolPythonBindingVerificationInputV1 struct {
// SelectedPlanEntry is the authoritative provider-neutral plan value from
// which the projection was derived. Keeping it at this boundary prevents a
// caller from changing all projected copies of scope, closure identity, or
// selected record references together and having the self-consistent copies
// accepted as an independently selected binding.
SelectedPlanEntry providerapi.PortableToolPlanEntryV1
Component PortableToolPythonComponentV1
Binding PortableToolPythonBindingV1
ContractRecord providerapi.PortableToolSelectedRecordV1
ArtifactRecord providerapi.PortableToolSelectedRecordV1
Interpreter providerapi.ExecutableEvidence
Descriptor providerstore.ArtifactDescriptor
Inspection WheelInspectionV1
}
PortableToolPythonBindingVerificationInputV1 joins the immutable values produced by the portable-tool projection, interpreter inspection, wheel acquisition, and wheel metadata inspection. Verification consumes this value only; it neither opens an artifact nor performs any other I/O.
ContractRecord and ArtifactRecord are retained as selected-record envelopes because the provider projection intentionally carries references rather than duplicating bundled-component declarations.
type PortableToolPythonBindingVerificationV1 ¶
type PortableToolPythonBindingVerificationV1 struct {
Binding PortableToolPythonBindingV1
Descriptor providerstore.ArtifactDescriptor
Inspection WheelInspectionV1
EligibleFilenameTags []string
ConsoleScript WheelConsoleScriptV1
}
PortableToolPythonBindingVerificationV1 is the authenticated result of verifying one selected binding wheel. The selected script target and the eligible filename tags are observations derived from the exact wheel bytes; callers may carry them into resolver or lock inputs without reparsing the wheel or recomputing interpreter compatibility.
func VerifyPortableToolPythonBindingV1 ¶
func VerifyPortableToolPythonBindingV1( input PortableToolPythonBindingVerificationInputV1, ) (PortableToolPythonBindingVerificationV1, error)
VerifyPortableToolPythonBindingV1 verifies one selected projected binding against its exact selected records, interpreter evidence, acquired descriptor, and descriptor-authenticated wheel inspection.
type PortableToolPythonComponentV1 ¶
type PortableToolPythonComponentV1 struct {
Component string `json:"component"`
TestedTags []string `json:"tested_tags"`
Bindings []PortableToolPythonBindingV1 `json:"bindings"`
}
type PortableToolPythonProjectionV1 ¶
type PortableToolPythonProjectionV1 struct {
Schema string `json:"schema"`
Components []PortableToolPythonComponentV1 `json:"components"`
}
PortableToolPythonProjectionV1 is the provider-owned sidecar produced before node planning. Exact portable artifacts remain runtime eligibility constraints, not package resolver preferences or acquisition results.
func ProjectPortableToolPythonBindingsV1 ¶
func ProjectPortableToolPythonBindingsV1( plan providerapi.PortableToolPlanV1, components []providerapi.ResolvedComponentRequestV1, ) ([]providerapi.ResolvedComponentRequestV1, PortableToolPythonProjectionV1, error)
ProjectPortableToolPythonBindingsV1 projects selected application-scoped binding records into fresh canonical component requests and a deterministic provider sidecar. Inputs are validated but never normalized in place.
type PortableToolPythonSelectedBindingV1 ¶
type PortableToolPythonSelectedBindingV1 struct {
// contains filtered or unexported fields
}
PortableToolPythonSelectedBindingV1 is the construction-controlled join of one projected binding with its exact selected plan entry and records.
func (*PortableToolPythonSelectedBindingV1) FreshWheel ¶
func (binding *PortableToolPythonSelectedBindingV1) FreshWheel( manifest, source providerapi.PortableToolSelectedRecordV1, interpreter providerapi.ExecutableEvidence, ) (*PortableToolPythonWheelHandoffV1, error)
FreshWheel derives the exact descriptor and transport source from the selected binding and its authenticated source record.
func (*PortableToolPythonSelectedBindingV1) LockedWheel ¶
func (binding *PortableToolPythonSelectedBindingV1) LockedWheel( manifest providerapi.PortableToolSelectedRecordV1, acquisition providerapi.PortableToolArtifactAcquisitionLockV1, interpreter providerapi.ExecutableEvidence, ) (*PortableToolPythonWheelHandoffV1, error)
LockedWheel derives replay from the validated lock entry. The producer's locked mode only reopens verified store bytes and never acquires a network artifact.
func (*PortableToolPythonSelectedBindingV1) PlanEntry ¶
func (binding *PortableToolPythonSelectedBindingV1) PlanEntry() (providerapi.PortableToolPlanEntryV1, error)
PlanEntry returns a detached selected entry for the existing release and acquisition record lookups. The join itself is not repeated by callers.
type PortableToolPythonSelectionV1 ¶
type PortableToolPythonSelectionV1 struct {
// contains filtered or unexported fields
}
PortableToolPythonSelectionV1 owns a validated snapshot of the selected plan. Its projection is derived from that snapshot, not supplied as another independently mutable authority.
func NewPortableToolPythonSelectionV1 ¶
func NewPortableToolPythonSelectionV1(plan providerapi.PortableToolPlanV1) (*PortableToolPythonSelectionV1, error)
func (*PortableToolPythonSelectionV1) Binding ¶
func (selection *PortableToolPythonSelectionV1) Binding(componentName, distribution string) (*PortableToolPythonSelectedBindingV1, error)
func (*PortableToolPythonSelectionV1) Plan ¶
func (selection *PortableToolPythonSelectionV1) Plan() (providerapi.PortableToolPlanV1, error)
Plan returns a detached view of the validated selected plan.
func (*PortableToolPythonSelectionV1) Projection ¶
func (selection *PortableToolPythonSelectionV1) Projection() (PortableToolPythonProjectionV1, error)
Projection returns a detached provider view. Mutating it cannot change the selected handoff or the bindings later resolved from it.
type PortableToolPythonVerifiedWheelHandoffV1 ¶
type PortableToolPythonVerifiedWheelHandoffV1 struct {
// contains filtered or unexported fields
}
PortableToolPythonVerifiedWheelHandoffV1 owns the wheel observation produced by acquisition, descriptor verification, inspection, and selected-binding verification. Callers only receive detached materialization and lock views.
func ProducePortableToolPythonSelectedWheelsV1 ¶
func ProducePortableToolPythonSelectedWheelsV1( ctx context.Context, store providerstore.Store, selection *PortableToolPythonSelectionV1, componentName string, handoffs []*PortableToolPythonWheelHandoffV1, ) ([]PortableToolPythonVerifiedWheelHandoffV1, error)
ProducePortableToolPythonSelectedWheelsV1 verifies complete coverage of one selected component before it lets the store perform any acquisition.
func (PortableToolPythonVerifiedWheelHandoffV1) ArtifactAcquisitionInput ¶
func (verified PortableToolPythonVerifiedWheelHandoffV1) ArtifactAcquisitionInput() (providerapi.PortableToolArtifactAcquisitionInputV1, error)
func (PortableToolPythonVerifiedWheelHandoffV1) MaterializationInput ¶
func (verified PortableToolPythonVerifiedWheelHandoffV1) MaterializationInput() (PortableToolVerifiedWheelInputV1, error)
type PortableToolPythonWheelHandoffV1 ¶
type PortableToolPythonWheelHandoffV1 struct {
// contains filtered or unexported fields
}
PortableToolPythonWheelHandoffV1 freezes the selected binding and its authorized acquisition declaration before any store or network operation.
func (*PortableToolPythonWheelHandoffV1) MatchEmbeddedSource ¶
func (handoff *PortableToolPythonWheelHandoffV1) MatchEmbeddedSource( descriptor providerstore.ArtifactDescriptor, mirrors []string, ) error
MatchEmbeddedSource checks the catalog's detached acquisition view against the authenticated source record without exposing a mutable request copy.
type PortableToolVerifiedWheelInputV1 ¶
type PortableToolVerifiedWheelInputV1 struct {
Scope string
Tool string
SelectedClosureDigest canonical.Digest
Contract providerapi.PortableToolRecordReferenceV1
Artifact providerapi.PortableToolRecordReferenceV1
Descriptor providerstore.ArtifactDescriptor
Inspection WheelInspectionV1
EligibleFilenameTags []string
ConsoleScript WheelConsoleScriptV1
Source providerapi.PortableToolSelectedRecordV1
Provenance providerstore.AcquisitionProvenance
}
PortableToolVerifiedWheelInputV1 is a detached, authenticated wheel input suitable for resolver staging and lock assembly. Its observations came from the exact descriptor-bound store file and are never inferred by executing wheel or bundled component content.
func (PortableToolVerifiedWheelInputV1) PortableToolArtifactAcquisitionInputV1 ¶
func (input PortableToolVerifiedWheelInputV1) PortableToolArtifactAcquisitionInputV1() (providerapi.PortableToolArtifactAcquisitionInputV1, error)
PortableToolArtifactAcquisitionInputV1 converts a verified input into the existing lock-construction input. The source envelope must be present when assembling a lock; fresh callers that omitted SourceRecord can still use the verified input for resolver staging.
type PortableToolVerifiedWheelModeV1 ¶
type PortableToolVerifiedWheelModeV1 string
PortableToolVerifiedWheelModeV1 selects whether the exact acquisition request is allowed to use the acquisition transport or must be satisfied from the deployment-local provider store.
const ( PortableToolVerifiedWheelFreshV1 PortableToolVerifiedWheelModeV1 = "fresh" PortableToolVerifiedWheelLockedReplayV1 PortableToolVerifiedWheelModeV1 = "locked-replay" )
type PythonBundleV1 ¶
type PythonBundleV1 struct {
Interpreter providers.ExecutableEvidence
Script providerstore.ArtifactDescriptor
Wheels []PythonWheelV1
Outputs []PythonConsoleScriptV1
Sources []providers.ResolvedSourceInput
}
func DecodeCanonicalBundleDataV1 ¶
func DecodeCanonicalBundleDataV1(component string, data providers.CanonicalProviderData) (PythonBundleV1, error)
type PythonConsoleScriptV1 ¶
type PythonPackageOverrideV1 ¶
type PythonProviderRequestV1 ¶
type PythonProviderRequestV1 struct {
Component string
Interpreter blueprint.CommandRequirement
Requirements []providers.CanonicalPackageRequest
Overrides []PythonPackageOverrideV1
}
type PythonWheelV1 ¶
type PythonWheelV1 struct {
Distribution string
Version string
Tags []string
Artifact providerstore.ArtifactDescriptor
}
type SourceDistributionMetadataV1 ¶
func DescribeSourceDistributionFileV1 ¶
func DescribeSourceDistributionFileV1( filename string, logicalPath string, ) (providerstore.ArtifactDescriptor, SourceDistributionMetadataV1, error)
DescribeSourceDistributionFileV1 validates one closed PEP 517 source distribution and binds the same bytes to their provider-store descriptor.
func ExtractSourceDistributionFileV1 ¶
func ExtractSourceDistributionFileV1(filename string, destination string) (SourceDistributionMetadataV1, error)
ExtractSourceDistributionFileV1 securely expands a previously validated sdist into an empty private directory. It never invokes tar from the host.
type SourceMetadataV2 ¶
type SourceMetadataV2 struct {
Distribution string `json:"distribution"`
Version string `json:"version"`
Tags []string `json:"tags"`
SourceLogicalPath string `json:"source_logical_path"`
SourceKind string `json:"source_kind"`
SourceSize string `json:"source_size"`
SourceSHA256 canonical.Digest `json:"source_sha256"`
}
type SourceWheelMetadataV1 ¶
type SourceWheelMetadataV1 struct {
Distribution string `json:"distribution"`
Version string `json:"version"`
Tags []string `json:"tags"`
}
func DescribeSourceWheelFileV1 ¶
func DescribeSourceWheelFileV1(filename string, logicalPath string) (providerstore.ArtifactDescriptor, SourceWheelMetadataV1, error)
DescribeSourceWheelFileV1 reads normal wheel metadata and computes the descriptor that must be used to publish the same bytes.
func InspectSourceWheelFileV1 ¶
func InspectSourceWheelFileV1(filename string, descriptor providerstore.ArtifactDescriptor) (SourceWheelMetadataV1, error)
InspectSourceWheelFileV1 verifies the supplied descriptor before parsing any metadata from the same open file.
func SourceWheelMetadataV2 ¶
func SourceWheelMetadataV2(source providers.ResolvedSourceInput) (SourceWheelMetadataV1, error)
type WheelConsoleScriptV1 ¶
type WheelConsoleScriptV1 struct{ Name, Target string }
type WheelInspectionV1 ¶
type WheelInspectionV1 struct {
Artifact providerstore.ArtifactDescriptor
Distribution, Version, RequiresPython, Filename string
FilenameTags, InternalTags []string
RootIsPurelib bool
ConsoleScripts []WheelConsoleScriptV1
Inventory []WheelInventoryPathV1
DeclaredDependencies []string
}
WheelInspectionV1 contains only descriptor-authenticated observed wheel data. It makes no runtime eligibility or selected binding-contract decision.
func InspectWheelReaderV1 ¶
func InspectWheelReaderV1(ctx context.Context, reader io.ReaderAt, size int64, filename string, descriptor providerstore.ArtifactDescriptor) (WheelInspectionV1, error)
InspectWheelReaderV1 verifies the exact descriptor before opening any member. The caller owns the descriptor-stable reader for the duration of inspection.
type WheelInventoryPathV1 ¶
type WheelInventoryPathV1 struct {
Path string
Kind wheelinventory.Kind
UncompressedSize uint64
}
type WheelNodeResolver ¶
type WheelNodeResolver struct {
ResolveInterpreter InterpreterEvidenceResolver
PrepareWheels func(context.Context, providerapi.ResolveInput, providerapi.ExecutableEvidence) (string, error)
SelectedPortableWheels []PortableToolVerifiedWheelInputV1
}
WheelNodeResolver validates one interpreter, runs the backend-owned wheel resolver, and ingests its closed output into canonical provider records.
func (WheelNodeResolver) Resolve ¶
func (resolver WheelNodeResolver) Resolve( ctx context.Context, input providerapi.ResolveInput, sink providerapi.ArtifactSink, ) (providerapi.ResolveResult, error)
func (WheelNodeResolver) Type ¶
func (WheelNodeResolver) Type() blueprint.ComponentType
Source Files
¶
- component_provider.go
- interpreter_inspection.go
- materialization.go
- materialization_script.go
- owner.go
- package_request.go
- portable_tool_binding_handoff.go
- portable_tool_eligibility.go
- portable_tool_projection.go
- portable_tool_verification.go
- portable_tool_verified_wheels.go
- prepared_bundle.go
- provider.go
- resolver_recipe.go
- runtime_owner.go
- schema.go
- source_artifact.go
- source_distribution.go
- version.go
- wheel_inspection.go
- wheel_requirement.go