1*40e9b92eSEd Tanous // SPDX-License-Identifier: Apache-2.0 2*40e9b92eSEd Tanous // SPDX-FileCopyrightText: Copyright OpenBMC Authors 3e9cc1bc9SEd Tanous #pragma once 4e9cc1bc9SEd Tanous #include <nlohmann/json.hpp> 5e9cc1bc9SEd Tanous 6e9cc1bc9SEd Tanous namespace container_image 7e9cc1bc9SEd Tanous { 8e9cc1bc9SEd Tanous // clang-format off 9e9cc1bc9SEd Tanous 10e9cc1bc9SEd Tanous enum class ImageTypes{ 11e9cc1bc9SEd Tanous Invalid, 12e9cc1bc9SEd Tanous DockerV1, 13e9cc1bc9SEd Tanous DockerV2, 14e9cc1bc9SEd Tanous OCI, 15e9cc1bc9SEd Tanous }; 16e9cc1bc9SEd Tanous 17e9cc1bc9SEd Tanous NLOHMANN_JSON_SERIALIZE_ENUM(ImageTypes, { 18e9cc1bc9SEd Tanous {ImageTypes::Invalid, "Invalid"}, 19e9cc1bc9SEd Tanous {ImageTypes::DockerV1, "DockerV1"}, 20e9cc1bc9SEd Tanous {ImageTypes::DockerV2, "DockerV2"}, 21e9cc1bc9SEd Tanous {ImageTypes::OCI, "OCI"}, 22e9cc1bc9SEd Tanous }); 23e9cc1bc9SEd Tanous 24e9cc1bc9SEd Tanous } 25e9cc1bc9SEd Tanous // clang-format on 26