Versions in this module Expand all Collapse all v5 v5.33.1 Dec 30, 2024 Changes in this version + const DockerV2ListMediaType + const DockerV2Schema1MediaType + const DockerV2Schema1SignedMediaType + const DockerV2Schema2ConfigMediaType + const DockerV2Schema2ForeignLayerMediaType + const DockerV2Schema2ForeignLayerMediaTypeGzip + const DockerV2Schema2LayerMediaType + const DockerV2Schema2MediaType + const DockerV2SchemaLayerMediaTypeUncompressed + const OCI1InstanceAnnotationCompressionZSTD + const OCI1InstanceAnnotationCompressionZSTDValue + func CandidateCompressionMatchesReuseConditions(c ReuseConditions, candidateCompression *compressiontypes.Algorithm) bool + func CompressionAlgorithmIsUniversallySupported(algo compressiontypes.Algorithm) bool + func Digest(manifest []byte) (digest.Digest, error) + func GuessMIMEType(manifest []byte) string + func MIMETypeSupportsCompressionAlgorithm(mimeType string, algo compressiontypes.Algorithm) bool + func MatchesDigest(manifest []byte, expectedDigest digest.Digest) (bool, error) + func NewNonImageArtifactError(manifest *imgspecv1.Manifest) error + func NormalizedMIMEType(input string) string + func ValidateUnambiguousManifestFormat(manifest []byte, expectedMIMEType string, allowed AllowedManifestFields) error + type AllowedManifestFields int + const AllowedFieldConfig + const AllowedFieldFSLayers + const AllowedFieldFirstUnusedBit + const AllowedFieldHistory + const AllowedFieldLayers + const AllowedFieldManifests + type List interface + ChooseInstanceByCompression func(ctx *types.SystemContext, preferGzip types.OptionalBool) (digest.Digest, error) + CloneInternal func() List + EditInstances func([]ListEdit) error + func ListFromBlob(manifest []byte, manifestMIMEType string) (List, error) + type ListEdit struct + AddAnnotations map[string]string + AddArtifactType string + AddCompressionAlgorithms []compression.Algorithm + AddDigest digest.Digest + AddMediaType string + AddPlatform *imgspecv1.Platform + AddSize int64 + ListOperation ListOp + UpdateAffectAnnotations bool + UpdateAnnotations map[string]string + UpdateCompressionAlgorithms []compression.Algorithm + UpdateDigest digest.Digest + UpdateMediaType string + UpdateOldDigest digest.Digest + UpdateSize int64 + type ListOp int + const ListOpAdd + const ListOpUpdate + type ListPublic interface + ChooseInstance func(ctx *types.SystemContext) (digest.Digest, error) + Clone func() ListPublic + ConvertToMIMEType func(mimeType string) (ListPublic, error) + Instance func(digest.Digest) (ListUpdate, error) + Instances func() []digest.Digest + MIMEType func() string + Serialize func() ([]byte, error) + UpdateInstances func([]ListUpdate) error + func ListPublicFromBlob(manifest []byte, manifestMIMEType string) (ListPublic, error) + type ListUpdate struct + Digest digest.Digest + MediaType string + ReadOnly struct{ ... } + Size int64 + type NonImageArtifactError struct + func (e NonImageArtifactError) Error() string + type OCI1Index struct + func OCI1IndexFromManifest(manifest []byte) (*OCI1Index, error) + func (index *OCI1Index) ChooseInstanceByCompression(ctx *types.SystemContext, preferGzip types.OptionalBool) (digest.Digest, error) + func (index *OCI1Index) Clone() ListPublic + func (index *OCI1Index) CloneInternal() List + func (index *OCI1Index) EditInstances(editInstances []ListEdit) error + type OCI1IndexPublic struct + func OCI1IndexPublicClone(index *OCI1IndexPublic) *OCI1IndexPublic + func OCI1IndexPublicFromComponents(components []imgspecv1.Descriptor, annotations map[string]string) *OCI1IndexPublic + func OCI1IndexPublicFromManifest(manifest []byte) (*OCI1IndexPublic, error) + func (index *OCI1IndexPublic) ChooseInstance(ctx *types.SystemContext) (digest.Digest, error) + func (index *OCI1IndexPublic) Clone() ListPublic + func (index *OCI1IndexPublic) ConvertToMIMEType(manifestMIMEType string) (ListPublic, error) + func (index *OCI1IndexPublic) Instance(instanceDigest digest.Digest) (ListUpdate, error) + func (index *OCI1IndexPublic) Instances() []digest.Digest + func (index *OCI1IndexPublic) MIMEType() string + func (index *OCI1IndexPublic) Serialize() ([]byte, error) + func (index *OCI1IndexPublic) ToOCI1Index() (*OCI1IndexPublic, error) + func (index *OCI1IndexPublic) ToSchema2List() (*Schema2ListPublic, error) + func (index *OCI1IndexPublic) UpdateInstances(updates []ListUpdate) error + type ReuseConditions struct + PossibleManifestFormats []string + RequiredCompression *compressiontypes.Algorithm + type Schema2Descriptor struct + Digest digest.Digest + MediaType string + Size int64 + URLs []string + type Schema2List struct + func Schema2ListFromManifest(manifest []byte) (*Schema2List, error) + func (list *Schema2List) Clone() ListPublic + func (list *Schema2List) CloneInternal() List + func (list *Schema2List) EditInstances(editInstances []ListEdit) error + type Schema2ListPublic struct + Manifests []Schema2ManifestDescriptor + MediaType string + SchemaVersion int + func Schema2ListPublicClone(list *Schema2ListPublic) *Schema2ListPublic + func Schema2ListPublicFromComponents(components []Schema2ManifestDescriptor) *Schema2ListPublic + func Schema2ListPublicFromManifest(manifest []byte) (*Schema2ListPublic, error) + func (list *Schema2ListPublic) ChooseInstance(ctx *types.SystemContext) (digest.Digest, error) + func (list *Schema2ListPublic) ChooseInstanceByCompression(ctx *types.SystemContext, preferGzip types.OptionalBool) (digest.Digest, error) + func (list *Schema2ListPublic) Clone() ListPublic + func (list *Schema2ListPublic) ConvertToMIMEType(manifestMIMEType string) (ListPublic, error) + func (list *Schema2ListPublic) Instance(instanceDigest digest.Digest) (ListUpdate, error) + func (list *Schema2ListPublic) Instances() []digest.Digest + func (list *Schema2ListPublic) MIMEType() string + func (list *Schema2ListPublic) Serialize() ([]byte, error) + func (list *Schema2ListPublic) ToOCI1Index() (*OCI1IndexPublic, error) + func (list *Schema2ListPublic) ToSchema2List() (*Schema2ListPublic, error) + func (list *Schema2ListPublic) UpdateInstances(updates []ListUpdate) error + type Schema2ManifestDescriptor struct + Platform Schema2PlatformSpec + type Schema2PlatformSpec struct + Architecture string + Features []string + OS string + OSFeatures []string + OSVersion string + Variant string