Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArtifactResolutionIssue ¶
type ArtifactResolutionIssue struct {
Artifact artifact.Artifact
Status ArtifactResolutionStatus
}
ArtifactResolutionIssue describes a generic Artifact Store link that could not be materialized from a Collection Catalog.
It deliberately contains no Workspace-specific diagnostics or presentation strings. Feature consumers map the generic status into their own views.
func (ArtifactResolutionIssue) Clone ¶
func (i ArtifactResolutionIssue) Clone() ArtifactResolutionIssue
type ArtifactResolutionStatus ¶
type ArtifactResolutionStatus string
const ( ArtifactResolutionDefinitionMismatch ArtifactResolutionStatus = "definition-mismatch" )
type CollectionArtifactResource ¶
type CollectionArtifactResource struct {
Artifact artifact.Artifact
Definition definition.Definition
Occurrence catalog.Occurrence
Source source.Summary
CatalogCurrent bool
Resolved *ResolvedArtifact
}
CollectionArtifactResource joins one local Artifact record to its current Catalog occurrence, canonical definition, and attached Source summary.
Resolved is populated only when the Catalog is current and the Artifact is currently available. Consumers can use it for runtime preparation without repeating the generic Artifact Store resource-chain lookup.
func (CollectionArtifactResource) Clone ¶
func (r CollectionArtifactResource) Clone() CollectionArtifactResource
type CollectionResourceInspection ¶
type CollectionResourceInspection struct {
Catalog catalog.CatalogInspection
Resources []CollectionArtifactResource
UnresolvedArtifacts []ArtifactResolutionIssue
UnrecordedOccurrences []catalog.Occurrence
}
CollectionResourceInspection is the generic Artifact Store read model for one Collection. It separates resolved resources, unresolved local Artifact records, and unrecorded Catalog occurrences.
func (CollectionResourceInspection) Clone ¶
func (i CollectionResourceInspection) Clone() CollectionResourceInspection
type ResolveOptions ¶
type ResolveOptions struct {
VerifySourceContent bool `json:"verifySourceContent"`
}
type ResolvedArtifact ¶
type ResolvedArtifact struct {
Artifact artifact.Artifact `json:"artifact"`
Collection collection.Collection `json:"collection"`
Definition definition.Definition `json:"definition"`
Occurrence catalog.Occurrence `json:"occurrence"`
Source source.Summary `json:"source"`
CatalogRevision uint64 `json:"catalogRevision"`
SourceGeneration string `json:"sourceGeneration"`
}
ResolvedArtifact contains the Store-verified resource chain for an available Artifact.
func (ResolvedArtifact) Clone ¶
func (r ResolvedArtifact) Clone() ResolvedArtifact
func (ResolvedArtifact) Validate ¶
func (r ResolvedArtifact) Validate() error
type VerifiedCollectionEntry ¶
type VerifiedCollectionEntry struct {
Catalog catalog.Snapshot
Entry VerifiedEntry
}
VerifiedCollectionEntry binds a verified Collection entry to the exact current Catalog snapshot used to validate its Source revision and generation.
func (VerifiedCollectionEntry) Clone ¶
func (e VerifiedCollectionEntry) Clone() VerifiedCollectionEntry
func (VerifiedCollectionEntry) Validate ¶
func (e VerifiedCollectionEntry) Validate() error
type VerifiedEntry ¶
type VerifiedEntry struct {
Collection collection.CollectionRef `json:"collection"`
SourceID source.SourceID `json:"sourceID"`
CatalogRevision uint64 `json:"catalogRevision"`
SourceRevision uint64 `json:"sourceRevision"`
SourceGeneration string `json:"sourceGeneration"`
Content []byte `json:"content"`
Digest cryptoutil.Digest `json:"digest"`
}
func (VerifiedEntry) Clone ¶
func (e VerifiedEntry) Clone() VerifiedEntry
func (VerifiedEntry) Validate ¶
func (e VerifiedEntry) Validate() error