providers

package
v0.0.0-...-e84d2fa Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2026 License: MIT 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

Index

Constants

View Source
const (
	BaseProviderRequestSchemaV1 = "base-provider-request-v1"
	BaseExportSchemaV1          = "base-export-v1"
)
View Source
const (
	ResolvedSourceInputSchemaV2 = "resolved-source-input-v2"
	ResolvedRequestSchemaV1     = "resolved-request-v1"
	ResolverCacheKeySchemaV1    = "resolver-cache-key-v1"
	AssemblyKeySchemaV1         = "assembly-key-v1"
)
View Source
const (
	MaterializationTransactionSchemaV1  = "materialization-transaction-v1"
	ChildEnvironmentSchemaV1            = "child-environment-v1"
	GeneratedExecutableEvidenceSchemaV1 = "generated-executable-evidence-v1"

	ExecutableRoleCarrier              = "carrier"
	ExecutableRoleEnvironmentLauncher  = "environment-launcher"
	ExecutableRoleProviderPrerequisite = "provider-prerequisite"
	ExecutableRoleSelectedOutput       = "selected-output"

	TypedArgumentLiteral             = "literal"
	TypedArgumentValidatedExecutable = "validated-executable"
	TypedArgumentGeneratedExecutable = "generated-executable"
	TypedArgumentMountedArtifact     = "mounted-artifact"

	NetworkPolicyNone NetworkPolicy = "none"

	BuildMountSourceArtifact      = "artifact"
	BuildMountSourceScript        = "script"
	BuildMountSourcePrivateOutput = "private-output"

	ImageHealthcheckNone = "none"
)
View Source
const (
	ProviderPlanSchemaV1       = "provider-plan-v1"
	OutputKindExecutable       = "executable"
	ValidationPolicyCompatible = "compatible"
	ValidationPolicyUnchanged  = "unchanged"
)
View Source
const (
	// PortableToolProviderDAGSchemaV1 identifies the composite plan that binds
	// the existing provider DAG to provider-neutral portable-tool work.
	PortableToolProviderDAGSchemaV1 = "portable-tool-provider-dag-v1"

	PortableToolOperationBindingContractV1                = "binding-contract"
	PortableToolOperationBindingArtifactAcquisitionV1     = "binding-artifact-acquisition"
	PortableToolOperationBindingArtifactMaterializationV1 = "binding-artifact-materialization"
	PortableToolOperationPayloadAcquisitionV1             = "payload-acquisition"
	PortableToolOperationPayloadMaterializationV1         = "payload-materialization"
	PortableToolOperationNativePackageSetV1               = "native-package-set"
	PortableToolOperationRuntimeInstallRootV1             = "runtime-install-root"
	PortableToolOperationRuntimeEnvironmentV1             = "runtime-environment"
	PortableToolOperationExportV1                         = "export"
	PortableToolOperationCapabilityV1                     = "capability"
	PortableToolOperationAcquisitionBarrierV1             = "acquisition-barrier"
)
View Source
const (
	PortableToolLockSchemaV1                  = "portable-tool-lock-v1"
	PortableToolReleaseManifestRecordSchemaV1 = portabletool.ReleaseManifestSchemaV1
)
View Source
const (
	// PortableToolPlanSchemaV1 identifies the provider-neutral portable-tool
	// plan exchanged between closure compilation and provider planning.
	PortableToolPlanSchemaV1 = "portable-tool-plan-v1"

	// PortableToolArtifactSourceRecordSchemaV1 identifies the manifest-owned
	// source records carried across the provider-neutral lock boundary.
	PortableToolArtifactSourceRecordSchemaV1 = portabletool.ArtifactSourceRecordSchemaV1
)
View Source
const (
	RequirementProfileSchemaV1 = "requirement-profile-v1"
	ValidationEvidenceSchemaV1 = "validation-evidence-v1"
	ExecutableEvidenceSchemaV1 = "executable-evidence-v1"
	FileEvidenceSchemaV1       = "file-evidence-v1"
	PortableAccessSchemaV1     = "portable-access-evidence-v1"
	PortableOutputAccessV1     = "portable-output-access-v1"
)
View Source
const BuildErrorSchemaV1 = "build-error-v1"
View Source
const BundleManifestStoreKind = providerstore.BundleManifestKind
View Source
const PortableToolValidationScheduleSchemaV1 = "portable-tool-validation-schedule-v1"
View Source
const ResolvedBundleSchemaV1 = "resolved-bundle-v1"

Variables

This section is empty.

Functions

func AssemblyKeyDigest

func AssemblyKeyDigest(key AssemblyKeyV1) (canonical.Digest, error)

func CanonicalPackageRequestBytes

func CanonicalPackageRequestBytes(request CanonicalPackageRequest) ([]byte, error)

CanonicalPackageRequestBytes validates the common envelope and returns its canonical bytes. Provider-specific code remains responsible for validating the exact Value shape before constructing or consuming the request.

func CanonicalPortableToolLockBytesV1

func CanonicalPortableToolLockBytesV1(lock PortableToolLockV1) ([]byte, error)

func CanonicalPortableToolPlanBytesV1

func CanonicalPortableToolPlanBytesV1(plan PortableToolPlanV1) ([]byte, error)

CanonicalPortableToolPlanBytesV1 validates plan and returns its deterministic canonical-json-v1 representation. Canonicalization is intentionally not a normalization pass: callers must supply the required ordering themselves.

func CanonicalPortableToolProviderDAGBytesV1

func CanonicalPortableToolProviderDAGBytesV1(dag PortableToolProviderDAGV1) ([]byte, error)

CanonicalPortableToolProviderDAGBytesV1 validates the composite graph and returns its deterministic canonical-json-v1 representation.

func CanonicalProviderRequestBytes

func CanonicalProviderRequestBytes(request CanonicalProviderRequest) ([]byte, error)

func DerivePortableToolProviderGraphV1

DerivePortableToolProviderGraphV1 returns the canonical operation and edge views after validating the retained selected inputs and domain authorities.

func EncodeResolvedBundleManifest

func EncodeResolvedBundleManifest(bundle ResolvedBundle, validateOwner ResolvedBundleOwnerValidator) ([]byte, providerstore.StoreObjectRef, error)

func IntersectSupportedPythonClaimsV1

func IntersectSupportedPythonClaimsV1(left, right []string) ([]string, error)

IntersectSupportedPythonClaimsV1 performs one linear intersection over normalized claims. A series intersects every exact patch in that series.

func MaterializationTransactionDigest

func MaterializationTransactionDigest(transaction MaterializationTransaction) (canonical.Digest, error)

func NormalizeSupportedPythonClaimsV1

func NormalizeSupportedPythonClaimsV1(values []string) ([]string, error)

NormalizeSupportedPythonClaimsV1 sorts claims numerically, removes duplicates, and removes exact releases subsumed by a minor-series claim.

func ProviderNodePlanDigest

func ProviderNodePlanDigest(node NodeSpec) (canonical.Digest, error)

func ProviderRequestDigest

func ProviderRequestDigest(request CanonicalProviderRequest) (canonical.Digest, error)

func PythonPackageRootDistributionNameV1

func PythonPackageRootDistributionNameV1(requirement string) (string, error)

PythonPackageRootDistributionNameV1 is retained at the provider boundary for compatibility. The shared portable-tool contract owns the grammar.

func PythonPackageRootRequirementsCompatibleV1

func PythonPackageRootRequirementsCompatibleV1(requirements []string) (bool, error)

PythonPackageRootRequirementsCompatibleV1 is retained at the provider boundary for compatibility. The shared portable-tool contract owns the compatibility grammar.

func RequirementProfileDigest

func RequirementProfileDigest(profile RequirementProfile, validateOwner RequirementProfileOwnerValidator) (canonical.Digest, error)

func ResolvedRequestDigest

func ResolvedRequestDigest(request ResolvedRequestV1, validateOwner ResolvedRequestOwnerValidator) (canonical.Digest, error)

func ResolverCacheKeyDigest

func ResolverCacheKeyDigest(key ResolverCacheKeyV1) (canonical.Digest, error)

func SelectApplicationOptions

func SelectApplicationOptions(document blueprint.Document, selected []string, add []string, remove []string) ([]string, error)

SelectApplicationOptions validates a complete selection update and returns stable state. It does not mutate the input when any requested name is invalid.

func ValidateBuildMounts

func ValidateBuildMounts(mounts []BuildMount) error

func ValidateCanonicalBaseProviderRequestV1

func ValidateCanonicalBaseProviderRequestV1(request CanonicalProviderRequest) error

func ValidateChildEnvironmentProfile

func ValidateChildEnvironmentProfile(profile ChildEnvironmentProfile) error

func ValidateContainerIdentity

func ValidateContainerIdentity(identity ContainerIdentity) error

func ValidateExecutableEvidence

func ValidateExecutableEvidence(evidence ExecutableEvidence, requirement ExecutableRequirement) error

func ValidateFinalExecutableEvidence

func ValidateFinalExecutableEvidence(evidence ExecutableEvidence) error

func ValidateFrozenExecutableSelections

func ValidateFrozenExecutableSelections(node NodeSpec, selections []FrozenExecutableSelection, validate FrozenExecutableValidator) error

func ValidateGeneratedExecutableDeclaration

func ValidateGeneratedExecutableDeclaration(declaration GeneratedExecutableDeclaration) error

func ValidateImageConfigPolicy

func ValidateImageConfigPolicy(policy ImageConfigPolicy) error

func ValidateMaterializationGeneratedExecutables

func ValidateMaterializationGeneratedExecutables(transaction MaterializationTransaction, realized []RealizedGeneratedExecutable) error

ValidateMaterializationGeneratedExecutables binds accepted evidence to every declaration in the exact transaction. Missing, additional, reordered, or changed declarations reject the built layer.

func ValidateMaterializationTransaction

func ValidateMaterializationTransaction(transaction MaterializationTransaction) error

func ValidateMaterializeInput

func ValidateMaterializeInput(
	input MaterializeInput,
	validateProfileOwner RequirementProfileOwnerValidator,
	validateBundleOwner ResolvedBundleOwnerValidator,
) error

func ValidateNetworkPolicy

func ValidateNetworkPolicy(policy NetworkPolicy) error

func ValidateNodeSpec

func ValidateNodeSpec(node NodeSpec) error

func ValidatePortableToolArtifactSourceAuthorizationV1

func ValidatePortableToolArtifactSourceAuthorizationV1(
	entry PortableToolPlanEntryV1,
	artifact PortableToolSelectedRecordV1,
	source PortableToolSelectedRecordV1,
	manifest PortableToolSelectedRecordV1,
	descriptor providerstore.ArtifactDescriptor,
) error

ValidatePortableToolArtifactSourceAuthorizationV1 checks the same release, artifact, and source mapping used by lock validation before an artifact may be acquired. It does not depend on an acquisition outcome.

func ValidatePortableToolCatalogRecordV1

func ValidatePortableToolCatalogRecordV1(record CanonicalProviderData) error

ValidatePortableToolCatalogRecordV1 is retained at the provider boundary for compatibility with lock construction and replay. Record-local schema validation is owned by the shared portable-tool contract package.

func ValidatePortableToolLockV1

func ValidatePortableToolLockV1(lock PortableToolLockV1) error

func ValidatePortableToolPlanV1

func ValidatePortableToolPlanV1(plan PortableToolPlanV1) error

ValidatePortableToolPlanV1 strictly validates canonical plan structure. It never sorts, fills, or otherwise normalizes caller-owned data.

func ValidatePortableToolProviderDAGV1

func ValidatePortableToolProviderDAGV1(dag PortableToolProviderDAGV1) error

ValidatePortableToolProviderDAGV1 validates the composite plan without normalizing caller-owned data. ProviderPlanV1 and PortableToolPlanV1 remain authoritative for their respective subtrees.

func ValidatePortableToolRuntimeProjectionV1

func ValidatePortableToolRuntimeProjectionV1(runtime PortableToolRuntimeProjectionV1) error

ValidatePortableToolRuntimeProjectionV1 strictly validates one contract runtime projection. Consumers outside plan validation, such as validation scheduling, revalidate the projection they are about to apply.

func ValidatePortableToolValidationScheduleV1

func ValidatePortableToolValidationScheduleV1(schedule PortableToolValidationScheduleV1) error

ValidatePortableToolValidationScheduleV1 strictly validates schedule shape and ordering. An empty schedule is valid: a build that selects no portable tool schedules no portable-tool validation.

func ValidateProviderNodeResolution

func ValidateProviderNodeResolution(
	request ResolveNodeRequest,
	result ResolveResult,
	validators ProviderOwnerValidators,
) error

ValidateProviderNodeResolution validates an existing result against the exact graph node inputs without invoking its resolver. Consumers use this before accepting a cached result.

func ValidateProviderPlanV1

func ValidateProviderPlanV1(plan ProviderPlanV1) error

func ValidateProviderSelectedEdgesV1

func ValidateProviderSelectedEdgesV1(plan ProviderPlanV1, selected []ProviderEdgeV1) error

ValidateProviderSelectedEdgesV1 verifies the runtime supplier selected for every executable requirement against the structural provider plan. Explicit suppliers remain exact plan edges; requirements without an explicit supplier may select only a declared output from an earlier planned node.

func ValidateRealizedBundleOutputs

func ValidateRealizedBundleOutputs(bundle ResolvedBundle, outputs []RealizedOutput) error

ValidateRealizedBundleOutputs binds final exposure evidence to the exact public output candidates declared by a resolved bundle.

func ValidateRealizedGeneratedExecutable

func ValidateRealizedGeneratedExecutable(realized RealizedGeneratedExecutable) error

func ValidateRealizedGeneratedExecutableCollection

func ValidateRealizedGeneratedExecutableCollection(realized []RealizedGeneratedExecutable) error

ValidateRealizedGeneratedExecutableCollection validates the canonical collection shape used by graph results and node locks. Matching the records to a transaction's declarations is handled by ValidateMaterializationGeneratedExecutables at the materialization boundary.

func ValidateRealizedOutput

func ValidateRealizedOutput(output RealizedOutput) error

ValidateRealizedOutput validates one final catalog output without requiring the resolver bundle that originally declared it.

func ValidateRequirementDeclaration

func ValidateRequirementDeclaration(declaration RequirementDeclaration) error

func ValidateRequirementProfile

func ValidateRequirementProfile(profile RequirementProfile, validateOwner RequirementProfileOwnerValidator) error

func ValidateResolveInput

func ValidateResolveInput(input ResolveInput) error

func ValidateResolveResult

func ValidateResolveResult(
	input ResolveInput,
	result ResolveResult,
	validateProfileOwner RequirementProfileOwnerValidator,
	validateBundleOwner ResolvedBundleOwnerValidator,
) error

func ValidateResolvedBundle

func ValidateResolvedBundle(bundle ResolvedBundle, validateOwner ResolvedBundleOwnerValidator) error

func ValidateResolvedBundlePayload

func ValidateResolvedBundlePayload(payload ResolvedBundleIdentityV1, validateOwner ResolvedBundleOwnerValidator) error

func ValidateResolvedRequestV1

func ValidateResolvedRequestV1(request ResolvedRequestV1, validateOwner ResolvedRequestOwnerValidator) error

func ValidateResolvedSourceInput

func ValidateResolvedSourceInput(source ResolvedSourceInput) error

func ValidateTypedArgument

func ValidateTypedArgument(argument TypedArgument) error

func ValidateValidatedExecutableInput

func ValidateValidatedExecutableInput(input ValidatedExecutableInput) error

Types

type AccessPathEvidence

type AccessPathEvidence struct {
	Path     string `json:"path"`
	Kind     string `json:"kind"`
	Mode     string `json:"mode"`
	Required string `json:"required"`
}

type ApplicationOption

type ApplicationOption struct {
	Name        string
	Application string
	Description string
}

ApplicationOption is the provider-neutral projection used by the retained bundle options/add/remove UX.

func ApplicationOptions

func ApplicationOptions(document blueprint.Document) []ApplicationOption

type ArtifactRoot

type ArtifactRoot struct {
	Provider string `json:"provider"`
	Kind     string `json:"kind"`
	Source   string `json:"source"`
}

ArtifactRoot is the retained bundle-command input record. It remains only while bundle commands are being migrated to canonical provider requests.

type ArtifactSink

type ArtifactSink interface {
	Publish(context.Context, string, string, io.Reader) (providerstore.ArtifactDescriptor, error)
}

type AssemblyKeyV1

type AssemblyKeyV1 struct {
	Schema             string             `json:"schema"`
	Parent             RealizedImageV1    `json:"parent"`
	TransactionDigest  canonical.Digest   `json:"transaction_digest"`
	RendererProfile    string             `json:"renderer_profile"`
	DockerfileFrontend canonical.Digest   `json:"dockerfile_frontend"`
	Platform           blueprint.Platform `json:"platform"`
}

type BaseProviderRequestV1

type BaseProviderRequestV1 struct {
	Image   string
	Exports map[string]blueprint.BaseExecutableExport
}

type BuildErrorV1

type BuildErrorV1 struct {
	Schema     string
	Code       string
	Phase      string
	Platform   *blueprint.Platform
	BaseDigest canonical.Digest
	NodeID     NodeID
	Subject    SafeErrorSubjectV1
	Correction *CorrectionV1
	CauseKind  string
	// contains filtered or unexported fields
}

BuildErrorV1 is safe, structured renderer input for provider build failures. The underlying cause remains available to errors.Is/errors.As but is not included in Error(), so arbitrary backend output cannot become persisted state or a second copy of the live diagnostic stream.

func NewBuildErrorV1

func NewBuildErrorV1(failure BuildErrorV1, cause error) *BuildErrorV1

NewBuildErrorV1 attaches an arbitrary backend cause to safe structured fields. Callers must pass only identifiers already validated by their provider boundary.

func (*BuildErrorV1) Error

func (failure *BuildErrorV1) Error() string

func (*BuildErrorV1) Unwrap

func (failure *BuildErrorV1) Unwrap() error

type BuildMount

type BuildMount struct {
	ID           string           `json:"id"`
	SourceKind   string           `json:"source_kind"`
	SourceDigest canonical.Digest `json:"source_digest"`
	Destination  string           `json:"destination"`
	ReadOnly     bool             `json:"read_only"`
	ExpectedKind string           `json:"expected_kind"`
}

type CanonicalPackageRequest

type CanonicalPackageRequest struct {
	Schema string           `json:"schema"`
	Value  canonical.Object `json:"value"`
}

CanonicalPackageRequest carries a provider-owned normalized package value across the deployment/provider boundary without retaining CLI syntax.

type CanonicalProviderData

type CanonicalProviderData = canonical.Envelope

type CanonicalProviderRequest

type CanonicalProviderRequest struct {
	Schema   string                  `json:"schema"`
	Provider blueprint.ComponentType `json:"provider"`
	Value    canonical.Object        `json:"value"`
}

CanonicalProviderRequest carries a provider-owned normalized node request. The provider implementation remains responsible for validating its schema and exact value shape before constructing or consuming this envelope.

func CanonicalBaseProviderRequestV1

func CanonicalBaseProviderRequestV1(request BaseProviderRequestV1) (CanonicalProviderRequest, error)

type ChildEnvironmentProfile

type ChildEnvironmentProfile struct {
	Schema      string                `json:"schema"`
	Name        string                `json:"name"`
	InheritNone bool                  `json:"inherit_none"`
	Umask       string                `json:"umask"`
	Variables   []EnvironmentVariable `json:"variables"`
}

type ContainerIdentity

type ContainerIdentity struct {
	UID               string   `json:"uid"`
	GID               string   `json:"gid"`
	SupplementaryGIDs []string `json:"supplementary_gids"`
}

type CorrectionV1

type CorrectionV1 struct {
	Kind string
	Argv []string
}

type EnvironmentVariable

type EnvironmentVariable struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

type ExecutableCandidate

type ExecutableCandidate struct {
	InvocationPath string                `json:"invocation_path"`
	Provenance     CanonicalProviderData `json:"provenance"`
}

type ExecutableEvidence

type ExecutableEvidence struct {
	Schema         string                 `json:"schema"`
	RequirementID  string                 `json:"requirement_id"`
	Output         QualifiedOutput        `json:"output"`
	InvocationPath string                 `json:"invocation_path"`
	LinkChain      []LinkEvidence         `json:"link_chain"`
	Terminal       FileEvidence           `json:"terminal"`
	Access         PortableAccessEvidence `json:"access"`
	Facts          CanonicalProviderData  `json:"facts"`
}

type ExecutableRequirement

type ExecutableRequirement struct {
	ID                string `json:"id"`
	Command           string `json:"command"`
	VersionConstraint string `json:"version_constraint"`
	Supplier          string `json:"supplier"`
	ValidationPolicy  string `json:"validation_policy"`
}

type FileEvidence

type FileEvidence struct {
	Schema        string           `json:"schema"`
	RequirementID string           `json:"requirement_id"`
	Path          string           `json:"path"`
	Kind          string           `json:"kind"`
	Mode          string           `json:"mode"`
	Size          string           `json:"size"`
	SHA256        canonical.Digest `json:"sha256"`
	Owner         *OwnerEvidence   `json:"owner,omitempty"`
}

type FileRequirement

type FileRequirement struct {
	ID               string           `json:"id"`
	Path             string           `json:"path"`
	Kind             string           `json:"kind"`
	ExpectedSHA256   canonical.Digest `json:"expected_sha256"`
	ValidationPolicy string           `json:"validation_policy"`
}

type FrozenExecutableSelection

type FrozenExecutableSelection struct {
	RequirementID string
	Output        RealizedOutput
	Evidence      ExecutableEvidence
}

type GeneratedExecutableDeclaration

type GeneratedExecutableDeclaration struct {
	ID               string `json:"id"`
	Path             string `json:"path"`
	ExclusiveRoot    string `json:"exclusive_root"`
	ValidationPolicy string `json:"validation_policy"`
}

type GeneratedExecutableEvidence

type GeneratedExecutableEvidence struct {
	Schema         string                 `json:"schema"`
	InvocationPath string                 `json:"invocation_path"`
	LinkChain      []LinkEvidence         `json:"link_chain"`
	Terminal       GeneratedFileEvidence  `json:"terminal"`
	Access         PortableAccessEvidence `json:"access"`
	Facts          CanonicalProviderData  `json:"facts"`
}

type GeneratedFileEvidence

type GeneratedFileEvidence struct {
	Path   string           `json:"path"`
	Kind   string           `json:"kind"`
	Mode   string           `json:"mode"`
	Size   string           `json:"size"`
	SHA256 canonical.Digest `json:"sha256"`
	Owner  *OwnerEvidence   `json:"owner,omitempty"`
}

type GraphConsumerValidation

type GraphConsumerValidation struct {
	Carrier             ValidatedExecutableInput
	EnvironmentLauncher ValidatedExecutableInput
	FinalImageConfig    ImageConfigPolicy
}

type GraphExecutionRequest

type GraphExecutionRequest struct {
	Plan              ProviderPlanV1
	Platform          blueprint.Platform
	SourceCandidates  []ResolvedSourceInput
	BaseImage         RealizedImageV1
	BaseCatalog       []RealizedOutput
	ReusableArtifacts map[NodeID][]providerstore.StoreObjectRef
	CachedResolutions map[NodeID]ResolveResult
	Validators        GraphOwnerValidators
	PrepareNode       GraphNodePreparer
	MaterializeNode   GraphNodeMaterializer
}

type GraphExecutionResult

type GraphExecutionResult struct {
	Plan               ProviderPlanV1
	SelectedEdges      []ProviderEdgeV1
	Bundles            []ResolvedBundle
	Profiles           []RequirementProfile
	ValidationEvidence []ValidationEvidence
	SelectedSources    []ResolvedSourceInput
	PrefixImages       []RealizedImageV1
	Materializations   []GraphNodeMaterializeResult
	Catalog            []RealizedOutput
}

func ExecuteProviderGraph

func ExecuteProviderGraph(ctx context.Context, request GraphExecutionRequest) (GraphExecutionResult, error)

ExecuteProviderGraph coordinates resolution and materialization in stable graph order. The injected callbacks own backend work; this function validates every returned provider record and advances the visible catalog only after the corresponding image prefix and outputs are complete.

type GraphNodeMaterializeRequest

type GraphNodeMaterializeRequest struct {
	Node  NodeSpec
	Input MaterializeInput
}

type GraphNodeMaterializeResult

type GraphNodeMaterializeResult struct {
	Image                RealizedImageV1
	TransactionDigest    canonical.Digest
	GeneratedExecutables []RealizedGeneratedExecutable
	Outputs              []RealizedOutput
}

type GraphNodePreparation

type GraphNodePreparation struct {
	Resolution ResolveResult
	Consumer   GraphConsumerValidation
	// EffectiveRequest optionally narrows provider request intent after the
	// resolver knows its completed closure. It may not alter any other node or
	// planning field.
	EffectiveRequest *CanonicalProviderRequest
	// SourceCandidates optionally replaces this node's pre-resolved candidates.
	// Backends use this only to turn auxiliary local source locators into
	// content-bound records during preparation. Nil retains the request input;
	// an explicit empty array replaces it with no candidates.
	SourceCandidates []ResolvedSourceInput
	Refreshed        bool
}

GraphNodePreparation binds a resolution to consumer evidence observed in the same backend session. Refreshed is true only when a supplied cached resolution was rejected and replaced once.

type GraphNodePrepareRequest

type GraphNodePrepareRequest struct {
	Resolve          ResolveNodeRequest
	CachedResolution *ResolveResult
}

GraphNodePrepareRequest gives one backend session both the current node inputs and the optional prior result it may accept or replace.

type GraphNodePreparer

GraphNodePreparer validates cached state and, when needed, performs one fresh resolution without opening a second backend session.

type GraphOwnerValidators

type GraphOwnerValidators func(NodeSpec) (ProviderOwnerValidators, error)

type ImageConfigPolicy

type ImageConfigPolicy struct {
	User        string                `json:"user"`
	WorkingDir  string                `json:"working_dir"`
	Environment []EnvironmentVariable `json:"environment"`
	Entrypoint  []string              `json:"entrypoint"`
	Command     []string              `json:"command"`
	Healthcheck string                `json:"healthcheck"`
	StopSignal  string                `json:"stop_signal"`
	Labels      []ImageLabel          `json:"labels"`
}

type ImageLabel

type ImageLabel struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

type LinkEvidence

type LinkEvidence struct {
	Path           string                 `json:"path"`
	Target         string                 `json:"target"`
	ResolvedPath   string                 `json:"resolved_path"`
	Kind           string                 `json:"kind"`
	Owner          *OwnerEvidence         `json:"owner,omitempty"`
	ProviderDetail *CanonicalProviderData `json:"provider_detail,omitempty"`
}

type MaterializationTransaction

type MaterializationTransaction struct {
	Schema               string                           `json:"schema"`
	NodeID               NodeID                           `json:"node_id"`
	RecipeVersion        string                           `json:"recipe_version"`
	Upstream             RealizedImageV1                  `json:"upstream"`
	Carrier              ValidatedExecutableInput         `json:"carrier"`
	EnvironmentLauncher  ValidatedExecutableInput         `json:"environment_launcher"`
	Prerequisites        []ValidatedExecutableInput       `json:"prerequisites"`
	Script               providerstore.ArtifactDescriptor `json:"script"`
	Argv                 []TypedArgument                  `json:"argv"`
	ChildEnvironment     ChildEnvironmentProfile          `json:"child_environment"`
	WorkingDirectory     string                           `json:"working_directory"`
	BuildIdentity        ContainerIdentity                `json:"build_identity"`
	Network              NetworkPolicy                    `json:"network"`
	Mounts               []BuildMount                     `json:"mounts"`
	GeneratedExecutables []GeneratedExecutableDeclaration `json:"generated_executables"`
	FinalImageConfig     ImageConfigPolicy                `json:"final_image_config"`
}

type MaterializeInput

type MaterializeInput struct {
	Bundle              ResolvedBundle
	Profile             RequirementProfile
	AssemblyParent      RealizedImageV1
	Carrier             ValidatedExecutableInput
	EnvironmentLauncher ValidatedExecutableInput
	FinalImageConfig    ImageConfigPolicy
}

type NetworkPolicy

type NetworkPolicy string

type NodeID

type NodeID string

func StableProviderInitializationOrder

func StableProviderInitializationOrder(plan ProviderPlanV1) ([]NodeID, error)

func StableProviderNodeOrder

func StableProviderNodeOrder(nodes []NodeID, edges []ProviderEdgeV1) ([]NodeID, error)

StableProviderNodeOrder returns the deterministic layer order for a validated provider graph without requiring its provider-specific node payloads. Build-lock validation uses the same ordering rule as execution.

type NodePlanner

type NodePlanner interface {
	Plan(PlanInput) ([]NodeSpec, error)
}

type NodeResolver

type NodeResolver interface {
	Type() blueprint.ComponentType
	Resolve(context.Context, ResolveInput, ArtifactSink) (ResolveResult, error)
}

type NodeSpec

type NodeSpec struct {
	ID                 NodeID                   `json:"id"`
	Provider           blueprint.ComponentType  `json:"provider"`
	Components         []string                 `json:"components"`
	Request            CanonicalProviderRequest `json:"request"`
	OutputDeclarations []OutputDeclaration      `json:"output_declarations"`
	Requirements       RequirementDeclaration   `json:"requirements"`
}

func BaseNodeSpec

func BaseNodeSpec(request CanonicalProviderRequest) (NodeSpec, error)

type OutputDeclaration

type OutputDeclaration struct {
	SupplierComponent string                `json:"supplier_component"`
	Name              string                `json:"name"`
	Kind              string                `json:"kind"`
	CandidatePath     string                `json:"candidate_path"`
	Provenance        CanonicalProviderData `json:"provenance"`
}

type OwnerEvidence

type OwnerEvidence struct {
	Provider string                `json:"provider"`
	Data     CanonicalProviderData `json:"data"`
}

type PlanInput

type PlanInput struct {
	Components []ResolvedComponentRequestV1
	Platform   blueprint.Platform
}

type PortableAccessEvidence

type PortableAccessEvidence struct {
	Schema  string               `json:"schema"`
	Profile string               `json:"profile"`
	Paths   []AccessPathEvidence `json:"paths"`
}

type PortableToolAcquisitionOutcomeLockV1

type PortableToolAcquisitionOutcomeLockV1 struct {
	Kind                      string   `json:"kind"`
	SuccessfulDeclaredLocator string   `json:"successful_declared_locator,omitempty"`
	RedirectHops              string   `json:"redirect_hops"`
	HistoricalLocators        []string `json:"historical_locators"`
}

PortableToolAcquisitionOutcomeLockV1 keeps locator roles unambiguous. A network outcome names the successful declared locator, a verified-cache hit names none, and source-record provenance is retained only in the explicitly historical collection. Redirect targets are never persisted; only their sanitized count is retained.

type PortableToolArtifactAcquisitionInputV1

type PortableToolArtifactAcquisitionInputV1 struct {
	Scope      string
	Tool       string
	Artifact   PortableToolRecordReferenceV1
	Descriptor providerstore.ArtifactDescriptor
	Source     PortableToolSelectedRecordV1
	Provenance providerstore.AcquisitionProvenance
}

PortableToolArtifactAcquisitionInputV1 joins a verified acquisition result with the exact catalog records that authorized it. It is construction input, not persisted directly, so process-local operation IDs and failed-attempt details cannot accidentally become lock identity.

type PortableToolArtifactAcquisitionLockV1

type PortableToolArtifactAcquisitionLockV1 struct {
	Scope      string                               `json:"scope"`
	Tool       string                               `json:"tool"`
	Artifact   PortableToolRecordReferenceV1        `json:"artifact"`
	Descriptor providerstore.ArtifactDescriptor     `json:"descriptor"`
	Source     PortableToolSelectedRecordV1         `json:"source"`
	Outcome    PortableToolAcquisitionOutcomeLockV1 `json:"outcome"`
}

type PortableToolDomainAuthorityV1

type PortableToolDomainAuthorityV1 struct {
	ID    string `json:"id"`
	Owner NodeID `json:"owner"`
}

PortableToolDomainAuthorityV1 names one stable authority and the generic provider node that owns it. Equal IDs deliberately express shared authority between scopes, but a shared ID cannot be assigned to different owners.

type PortableToolEnvironmentVariableV1

type PortableToolEnvironmentVariableV1 struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

PortableToolEnvironmentVariableV1 is one canonical runtime environment entry. Names use the portable-tool contract's uppercase environment-name grammar.

type PortableToolExportV1

type PortableToolExportV1 struct {
	Name string `json:"name"`
	Path string `json:"path"`
}

PortableToolExportV1 is a generic executable/capability export selected by a closure. The name is the semantic conflict key.

type PortableToolLockV1

type PortableToolLockV1 struct {
	Schema       string                                  `json:"schema"`
	Plan         PortableToolProviderDAGV1               `json:"plan"`
	Releases     []PortableToolReleaseManifestLockV1     `json:"releases"`
	Acquisitions []PortableToolArtifactAcquisitionLockV1 `json:"acquisitions"`
}

PortableToolLockV1 is the complete portable-tool portion of a build lock. The provider DAG retains the selected closure, release, base-plan, and provider identities. Acquisitions bind every selected artifact to the exact source record and verified bytes used by the build.

func BuildPortableToolLockV1

BuildPortableToolLockV1 constructs a canonical lock without retaining process-local or unsanitized acquisition diagnostics.

func ClonePortableToolLockV1

func ClonePortableToolLockV1(lock PortableToolLockV1) PortableToolLockV1

ClonePortableToolLockV1 returns an ownership-independent copy suitable for crossing the build-lock assembly boundary.

type PortableToolPlanEntryV1

type PortableToolPlanEntryV1 struct {
	Scope                 string                            `json:"scope"`
	SelectedClosureDigest canonical.Digest                  `json:"selected_closure_digest"`
	Provenance            PortableToolReleaseProvenanceV1   `json:"provenance"`
	Runtime               *PortableToolRuntimeProjectionV1  `json:"runtime"`
	Responsibilities      PortableToolResponsibilitiesV1    `json:"responsibilities"`
	Exports               []PortableToolExportV1            `json:"exports"`
	ValidationProfiles    []PortableToolValidationProfileV1 `json:"validation_profiles"`
}

PortableToolPlanEntryV1 carries one selected tool in one resolution scope.

type PortableToolPlanV1

type PortableToolPlanV1 struct {
	Schema string                    `json:"schema"`
	Tools  []PortableToolPlanEntryV1 `json:"tools"`
}

PortableToolPlanV1 is the canonical provider-neutral projection of one or more selected portable-tool closures. Tools are ordered by scope and tool name; all nested collections are ordered by their stable semantic key. Validation profiles are carried for scheduling, but deliberately do not participate in SelectedClosureDigest.

type PortableToolProviderDAGV1

type PortableToolProviderDAGV1 struct {
	Schema           string                            `json:"schema"`
	ProviderPlan     ProviderPlanV1                    `json:"provider_plan"`
	PortableToolPlan PortableToolPlanV1                `json:"portable_tool_plan"`
	Domains          []PortableToolProviderDomainSetV1 `json:"domains"`
}

PortableToolProviderDAGV1 retains the selected inputs and explicit domain authority. Operations and ordering edges are derived from these inputs and are not a second, independently mutable lock authority.

func BuildPortableToolProviderDAGV1

func BuildPortableToolProviderDAGV1(
	providerPlan ProviderPlanV1,
	portableToolPlan PortableToolPlanV1,
	domains []PortableToolProviderDomainSetV1,
) (PortableToolProviderDAGV1, error)

BuildPortableToolProviderDAGV1 composes a validated provider plan and a validated portable-tool plan. It does not execute, acquire, materialize, or persist any operation; it only builds and validates the structural graph.

type PortableToolProviderDependencyV1

type PortableToolProviderDependencyV1 struct {
	Prerequisite string `json:"prerequisite"`
	Dependent    string `json:"dependent"`
}

PortableToolProviderDependencyV1 is a structural edge between portable operations. Prerequisite must complete before Dependent may begin.

type PortableToolProviderDomainSetV1

type PortableToolProviderDomainSetV1 struct {
	Scope          string                        `json:"scope"`
	PackageManager PortableToolDomainAuthorityV1 `json:"package_manager"`
	Binding        PortableToolDomainAuthorityV1 `json:"binding"`
	Filesystem     PortableToolDomainAuthorityV1 `json:"filesystem"`
	Environment    PortableToolDomainAuthorityV1 `json:"environment"`
	Exports        PortableToolDomainAuthorityV1 `json:"exports"`
	Capabilities   PortableToolDomainAuthorityV1 `json:"capabilities"`
}

PortableToolProviderDomainSetV1 names the authority domains used by one selected resolution scope. Equal identities deliberately express shared authority between scopes; unequal identities isolate their responsibilities.

type PortableToolProviderOperationV1

type PortableToolProviderOperationV1 struct {
	ID          string                             `json:"id"`
	Scope       string                             `json:"scope"`
	Tool        string                             `json:"tool"`
	Kind        string                             `json:"kind"`
	Domain      string                             `json:"domain"`
	Owner       NodeID                             `json:"owner,omitempty"`
	Record      *PortableToolRecordReferenceV1     `json:"record,omitempty"`
	InstallRoot string                             `json:"install_root,omitempty"`
	Environment *PortableToolEnvironmentVariableV1 `json:"environment,omitempty"`
	Export      *PortableToolExportV1              `json:"export,omitempty"`
	Network     NetworkPolicy                      `json:"network,omitempty"`
}

PortableToolProviderOperationV1 is one deterministic, provider-neutral responsibility. Record-backed work carries the selected record reference; runtime and export work carry their typed projection. Acquisition is kept distinct from materialization, and materialization always has Network set to NetworkPolicyNone.

type PortableToolRecordReferenceV1

type PortableToolRecordReferenceV1 = portabletool.RecordReferenceV1

PortableToolRecordReferenceV1 identifies one exact immutable catalog record. IDs are canonical tool-qualified record IDs.

type PortableToolReleaseManifestInputV1

type PortableToolReleaseManifestInputV1 struct {
	Scope    string
	Tool     string
	Manifest PortableToolSelectedRecordV1
}

type PortableToolReleaseManifestLockV1

type PortableToolReleaseManifestLockV1 struct {
	Scope    string                       `json:"scope"`
	Tool     string                       `json:"tool"`
	Manifest PortableToolSelectedRecordV1 `json:"manifest"`
}

type PortableToolReleaseProvenanceV1

type PortableToolReleaseProvenanceV1 struct {
	Tool           string           `json:"tool"`
	Version        string           `json:"version"`
	Revision       string           `json:"revision"`
	ManifestDigest canonical.Digest `json:"manifest_digest"`
}

PortableToolReleaseProvenanceV1 records every release identity component that authorizes a selected closure. Version is scheme-native (it is not interpreted by this provider-neutral package).

type PortableToolResponsibilitiesV1

type PortableToolResponsibilitiesV1 struct {
	BindingContracts  []PortableToolSelectedRecordV1 `json:"binding_contracts"`
	BindingArtifacts  []PortableToolSelectedRecordV1 `json:"binding_artifacts"`
	Payloads          []PortableToolSelectedRecordV1 `json:"payloads"`
	NativePackageSets []PortableToolSelectedRecordV1 `json:"native_package_sets"`
}

PortableToolResponsibilitiesV1 groups selected records by their generic provider responsibility. The envelopes retain canonical data without importing or duplicating toolcatalog's concrete record structs.

type PortableToolRuntimeProjectionV1

type PortableToolRuntimeProjectionV1 struct {
	InstallRoot string                              `json:"install_root"`
	Environment []PortableToolEnvironmentVariableV1 `json:"environment"`
}

PortableToolRuntimeProjectionV1 carries the contract-owned final-image install root and environment projection. Runtime projection is selected behavior already covered by SelectedClosureDigest; only validation profiles remain outside selected-closure identity.

type PortableToolScheduledValidationV1

type PortableToolScheduledValidationV1 struct {
	Scope   string                           `json:"scope"`
	Tool    string                           `json:"tool"`
	Profile PortableToolValidationProfileV1  `json:"profile"`
	Runtime *PortableToolRuntimeProjectionV1 `json:"runtime"`
}

PortableToolScheduledValidationV1 is one scheduled profile in one resolution scope. Runtime is nil when the selected closure declares no contract runtime projection.

type PortableToolSelectedRecordV1

type PortableToolSelectedRecordV1 struct {
	Reference PortableToolRecordReferenceV1 `json:"reference"`
	Record    CanonicalProviderData         `json:"record"`
}

PortableToolSelectedRecordV1 retains both the exact record reference and its canonical provider-owned data. Record is a canonical.Envelope alias, rather than a toolcatalog concrete value, so later providers can decode only the schemas they own.

type PortableToolValidationProfileV1

type PortableToolValidationProfileV1 struct {
	Reference PortableToolRecordReferenceV1 `json:"reference"`
	Record    CanonicalProviderData         `json:"record"`
}

PortableToolValidationProfileV1 carries one selected validation-profile record outside selected-closure identity.

type PortableToolValidationScheduleV1

type PortableToolValidationScheduleV1 struct {
	Schema  string                              `json:"schema"`
	Entries []PortableToolScheduledValidationV1 `json:"entries"`
}

PortableToolValidationScheduleV1 is the provider-neutral scheduling projection consumed by production validation. It pairs every selected validation-profile reference with the contract runtime projection of the closure that selected it, so a scheduler can invoke the fixed executor without re-deriving selection.

The schedule is derived from an already-validated plan and is never an input to selected-closure identity: validation references deliberately stay outside SelectedClosureDigest, and nothing here is fed back into it.

func PortableToolValidationScheduleForScopeV1

func PortableToolValidationScheduleForScopeV1(
	schedule PortableToolValidationScheduleV1,
	scope string,
) (PortableToolValidationScheduleV1, error)

PortableToolValidationScheduleForScopeV1 selects the exact resolution scope owned by a validation caller. Scope meaning remains consumer-owned: this projection does not infer image placement from runtime metadata or tool kind. An unmatched scope returns an explicit empty schedule because a scope may legitimately select no validation profiles. Callers that require proof that a scope exists must establish that from their own resolution input.

func PortableToolValidationScheduleFromLockV1

func PortableToolValidationScheduleFromLockV1(lock PortableToolLockV1) (PortableToolValidationScheduleV1, error)

PortableToolValidationScheduleFromLockV1 projects the compiled portable-tool plan carried by a persisted build lock into its scheduling order, so locked replay schedules the exact profiles that were locked rather than re-reading moving catalog state. The order is deterministic: by scope, then tool, then profile reference, exactly as the plan already orders them.

The lock is the only public projection source. Deriving a schedule from an unlocked DAG would let a caller validate against a plan the build never locked.

type ProviderEdgeV1

type ProviderEdgeV1 struct {
	Supplier      NodeID          `json:"supplier"`
	Consumer      NodeID          `json:"consumer"`
	RequirementID string          `json:"requirement_id"`
	Output        QualifiedOutput `json:"output"`
}

type ProviderOwnerValidators

type ProviderOwnerValidators struct {
	Profile RequirementProfileOwnerValidator
	Bundle  ResolvedBundleOwnerValidator
}

type ProviderPlanV1

type ProviderPlanV1 struct {
	Schema string           `json:"schema"`
	Nodes  []NodeSpec       `json:"nodes"`
	Edges  []ProviderEdgeV1 `json:"edges"`
}

func BuildProviderPlanV1

func BuildProviderPlanV1(input PlanInput, planners ...NodePlanner) (ProviderPlanV1, error)

func NormalizeProviderPlanV1

func NormalizeProviderPlanV1(plan ProviderPlanV1) ProviderPlanV1

type QualifiedOutput

type QualifiedOutput struct {
	Component string `json:"component"`
	Name      string `json:"name"`
}

type RealizedGeneratedExecutable

type RealizedGeneratedExecutable struct {
	Declaration GeneratedExecutableDeclaration `json:"declaration"`
	Evidence    GeneratedExecutableEvidence    `json:"evidence"`
}

type RealizedImageV1

type RealizedImageV1 struct {
	Digest        canonical.Digest `json:"digest"`
	ConfigDigest  canonical.Digest `json:"config_digest"`
	RootFSSubject canonical.Digest `json:"rootfs_subject"`
}

func (RealizedImageV1) Validate

func (image RealizedImageV1) Validate() error

type RealizedOutput

type RealizedOutput struct {
	SupplierComponent string              `json:"supplier_component"`
	SupplierNode      NodeID              `json:"supplier_node"`
	Name              string              `json:"name"`
	Candidate         ExecutableCandidate `json:"candidate"`
	Evidence          ExecutableEvidence  `json:"evidence"`
}

func RealizeBaseCatalog

func RealizeBaseCatalog(
	ctx context.Context,
	plan ProviderPlanV1,
	image RealizedImageV1,
	validate BaseOutputValidator,
) ([]RealizedOutput, error)

type RequirementCandidatesV1

type RequirementCandidatesV1 struct {
	RequirementID string
	Outputs       []RealizedOutput
}

func BuildRequirementCandidates

func BuildRequirementCandidates(plan ProviderPlanV1, consumerID NodeID, earlierCatalog []RealizedOutput) ([]RequirementCandidatesV1, error)

type RequirementDeclaration

type RequirementDeclaration struct {
	Executables  []ExecutableRequirement `json:"executables"`
	Files        []FileRequirement       `json:"files"`
	ProviderData CanonicalProviderData   `json:"provider_data"`
}

type RequirementProfile

type RequirementProfile struct {
	Schema              string                  `json:"schema"`
	Provider            blueprint.ComponentType `json:"provider"`
	Declaration         RequirementDeclaration  `json:"declaration"`
	SelectedExecutables []ExecutableEvidence    `json:"selected_executables"`
	SelectedFiles       []FileEvidence          `json:"selected_files"`
	Platform            blueprint.Platform      `json:"platform"`
	Facts               CanonicalProviderData   `json:"facts"`
}

type RequirementProfileOwnerValidator

type RequirementProfileOwnerValidator func(RequirementProfile) error

type ResolveInput

type ResolveInput struct {
	Node              NodeSpec
	Candidates        []RequirementCandidatesV1
	Platform          blueprint.Platform
	SourceCandidates  []ResolvedSourceInput
	Upstream          RealizedImageV1
	ReusableArtifacts []providerstore.StoreObjectRef
}

type ResolveNodeRequest

type ResolveNodeRequest struct {
	Plan              ProviderPlanV1
	NodeID            NodeID
	EarlierCatalog    []RealizedOutput
	Platform          blueprint.Platform
	SourceCandidates  []ResolvedSourceInput
	Upstream          RealizedImageV1
	ReusableArtifacts []providerstore.StoreObjectRef
}

type ResolveResult

type ResolveResult struct {
	Bundle          ResolvedBundle
	Profile         RequirementProfile
	Evidence        ValidationEvidence
	SelectedSources []ResolvedSourceInput
}

func ResolveProviderNode

func ResolveProviderNode(
	ctx context.Context,
	request ResolveNodeRequest,
	resolver NodeResolver,
	sink ArtifactSink,
	validators ProviderOwnerValidators,
) (ResolveResult, error)

type ResolvedBundle

type ResolvedBundle struct {
	Identity canonical.Digest         `json:"identity"`
	Payload  ResolvedBundleIdentityV1 `json:"payload"`
}

func DecodeResolvedBundleManifest

func DecodeResolvedBundleManifest(content []byte, reference providerstore.StoreObjectRef, validateOwner ResolvedBundleOwnerValidator) (ResolvedBundle, error)

func LoadResolvedBundleManifest

func LoadResolvedBundleManifest(store providerstore.Store, reference providerstore.StoreObjectRef, validateOwner ResolvedBundleOwnerValidator) (ResolvedBundle, error)

func NewResolvedBundle

func NewResolvedBundle(payload ResolvedBundleIdentityV1, validateOwner ResolvedBundleOwnerValidator) (ResolvedBundle, error)

type ResolvedBundleIdentityV1

type ResolvedBundleIdentityV1 struct {
	Schema                   string                             `json:"schema"`
	NodeID                   NodeID                             `json:"node_id"`
	Provider                 blueprint.ComponentType            `json:"provider"`
	Request                  CanonicalProviderRequest           `json:"request"`
	RequirementProfileDigest canonical.Digest                   `json:"requirement_profile_digest"`
	RecipeVersion            string                             `json:"recipe_version"`
	Platform                 blueprint.Platform                 `json:"platform"`
	Upstream                 RealizedImageV1                    `json:"upstream"`
	SelectedSources          []ResolvedSourceInput              `json:"selected_sources"`
	Artifacts                []providerstore.ArtifactDescriptor `json:"artifacts"`
	Outputs                  []ResolvedOutput                   `json:"outputs"`
	ProviderPayload          CanonicalProviderData              `json:"provider_payload"`
}

type ResolvedBundleOwnerValidator

type ResolvedBundleOwnerValidator func(ResolvedBundleIdentityV1) error

ResolvedBundleOwnerValidator validates the provider-owned request, payload, and nested provenance schemas after common structural checks have passed.

type ResolvedComponentRequestV1

type ResolvedComponentRequestV1 struct {
	Component string                   `json:"component"`
	Provider  blueprint.ComponentType  `json:"provider"`
	Request   CanonicalProviderRequest `json:"request"`
}

type ResolvedOutput

type ResolvedOutput struct {
	SupplierComponent string              `json:"supplier_component"`
	SupplierNode      NodeID              `json:"supplier_node"`
	Name              string              `json:"name"`
	Candidate         ExecutableCandidate `json:"candidate"`
}

type ResolvedRequestOwnerValidator

type ResolvedRequestOwnerValidator func(ResolvedRequestV1) error

type ResolvedRequestV1

type ResolvedRequestV1 struct {
	Schema        string                       `json:"schema"`
	OverlayDigest canonical.Digest             `json:"overlay_digest"`
	Platform      blueprint.Platform           `json:"platform"`
	Components    []ResolvedComponentRequestV1 `json:"components"`
	Sources       []ResolvedSourceInput        `json:"sources"`
}

type ResolvedSourceInput

type ResolvedSourceInput struct {
	Schema                 string                `json:"schema"`
	Component              string                `json:"component"`
	LogicalPackage         string                `json:"logical_package"`
	SourceInputDigest      canonical.Digest      `json:"source_input_digest"`
	SourceArtifactDigest   canonical.Digest      `json:"source_artifact_digest"`
	BuildEnvironmentDigest canonical.Digest      `json:"build_environment_digest"`
	BuilderProfile         string                `json:"builder_profile"`
	BuildSettings          CanonicalProviderData `json:"build_settings"`
	EcosystemMetadata      CanonicalProviderData `json:"ecosystem_metadata"`
	OutputArtifactDigest   canonical.Digest      `json:"output_artifact_digest"`
}

type ResolverCacheKeyV1

type ResolverCacheKeyV1 struct {
	Schema         string             `json:"schema"`
	NodeID         NodeID             `json:"node_id"`
	RequestDigest  canonical.Digest   `json:"request_digest"`
	ProfileDigest  canonical.Digest   `json:"profile_digest"`
	ResolverRecipe string             `json:"resolver_recipe"`
	Platform       blueprint.Platform `json:"platform"`
}

type SafeErrorSubjectV1

type SafeErrorSubjectV1 struct {
	Component string
	Package   string
	Version   string
	Output    string
	Path      string
}

type SupportedPythonClaimV1

type SupportedPythonClaimV1 struct {
	Major int
	Minor int
	Patch int
	Exact bool
}

SupportedPythonClaimV1 is the provider-owned representation of one supported interpreter claim. Exact is false for a complete minor series and true for one complete major.minor.patch release.

func ParseSupportedPythonClaimV1

func ParseSupportedPythonClaimV1(value string) (SupportedPythonClaimV1, error)

ParseSupportedPythonClaimV1 validates and parses one canonical claim.

func (SupportedPythonClaimV1) String

func (claim SupportedPythonClaimV1) String() string

type TypedArgument

type TypedArgument struct {
	Kind         string `json:"kind"`
	Literal      string `json:"literal"`
	ExecutableID string `json:"executable_id"`
	GeneratedID  string `json:"generated_id"`
	MountID      string `json:"mount_id"`
	RelativePath string `json:"relative_path"`
}

type ValidatedExecutableInput

type ValidatedExecutableInput struct {
	ID       string             `json:"id"`
	Role     string             `json:"role"`
	Policy   string             `json:"policy"`
	Evidence ExecutableEvidence `json:"evidence"`
}

type ValidationEvidence

type ValidationEvidence struct {
	Schema                    string           `json:"schema"`
	SubjectRootFS             canonical.Digest `json:"subject_rootfs"`
	ProfileDigest             canonical.Digest `json:"profile_digest"`
	PortableToolProfileID     string           `json:"portable_tool_profile_id,omitempty"`
	PortableToolRuntimeDigest canonical.Digest `json:"portable_tool_runtime_digest,omitempty"`
}

func NewPortableToolValidationEvidence

func NewPortableToolValidationEvidence(
	subject canonical.Digest,
	profile PortableToolRecordReferenceV1,
	runtime *PortableToolRuntimeProjectionV1,
) (ValidationEvidence, error)

NewPortableToolValidationEvidence binds a passing portable-tool profile to the exact runtime inputs used by the probe. An absent runtime is distinct from an explicitly selected runtime with an empty environment.

func NewValidationEvidence

func NewValidationEvidence(subject canonical.Digest, profileDigest canonical.Digest) (ValidationEvidence, error)

func (ValidationEvidence) Validate

func (evidence ValidationEvidence) Validate() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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