From 90cdc6c9a60b3960776d3a844577af5ebc8e1cb3 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Wed, 8 Dec 2021 17:45:42 +0100 Subject: [PATCH] images/converter: remove deprecated types Removes the, now obsolete structs/types: - DualIndex - DualManifest - ObjectWithMediaType Signed-off-by: Sebastiaan van Stijn --- images/converter/default.go | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/images/converter/default.go b/images/converter/default.go index 825d4dd6a..f4e944bc5 100644 --- a/images/converter/default.go +++ b/images/converter/default.go @@ -378,25 +378,6 @@ func clearDockerV1DummyID(cfg DualConfig) (bool, error) { return modified, nil } -// ObjectWithMediaType represents an object with a MediaType field -// Deprecated -type ObjectWithMediaType struct { - // MediaType appears on Docker manifests and manifest lists. - MediaType string `json:"mediaType,omitempty"` -} - -// DualManifest covers Docker manifest and OCI manifest -// Deprecated: use github.com/opencontainers/image-spec/specs-go/v1.Manifest -type DualManifest struct { - ocispec.Manifest -} - -// DualIndex covers Docker manifest list and OCI index -// Deprecated: use github.com/opencontainers/image-spec/specs-go/v1.Index -type DualIndex struct { - ocispec.Index -} - // DualConfig covers Docker config (v1.0, v1.1, v1.2) and OCI config. // Unmarshalled as map[string]*json.RawMessage to retain unknown fields on remarshalling. type DualConfig map[string]*json.RawMessage