Skip to content

Commit

Permalink
images/converter: remove deprecated types
Browse files Browse the repository at this point in the history
Removes the, now obsolete structs/types:

- DualIndex
- DualManifest
- ObjectWithMediaType

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
  • Loading branch information
thaJeztah committed Dec 9, 2021
1 parent fc81384 commit 90cdc6c
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions images/converter/default.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 90cdc6c

Please sign in to comment.