ostree: Add collection and ref bindings to metadata on commit

The collection and ref bindings are stored in the commit metadata
under ostree.collection-binding and ostree.ref-binding,
respectively. They will be used to verify if the commit really comes
from the collection and ref we wanted to pull from.

Closes: #972
Approved by: cgwalters
This commit is contained in:
Krzesimir Nowak authored and Atomic Bot committed 2017-07-06 19:08:14 +00:00
1 parent 28ec43c41a
commit cf16805a2f
3 files changed
+79 -2

No files matched your search

+4
View File
@@ -56,6 +56,10 @@ G_BEGIN_DECLS
* in a summary file. */
#define OSTREE_COMMIT_TIMESTAMP "ostree.commit.timestamp"
/* Well-known keys for the commit metadata */
#define OSTREE_REF_BINDING "ostree.ref-binding"
#define OSTREE_COLLECTION_BINDING "ostree.collection-binding"
typedef enum {
OSTREE_REPO_TEST_ERROR_PRE_COMMIT = (1 << 0)
} OstreeRepoTestErrorFlags;