-
Notifications
You must be signed in to change notification settings - Fork 915
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
api: Support encode/decode OVF to JSON
This patch adds support for encoding an `ovf.Envelope` to JSON using Golang's `encoding/json` package. The resulting output can be safely decoded back to an `ovf.Envelope`. This decoded envelope is deep-equal to the one originally decoded from XML. This feature allows clients to format an OVF envelope as YAML, such as when part of a Kubernetes API. Signed-off-by: akutz <akutz@vmware.com>
- Loading branch information
Showing
4 changed files
with
265 additions
and
191 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.