Files
flatpak/data/flatpak-variants.gv
Alexander Larsson 0597f246c8 build-update-repo: Generate new summary format
In addition to the old summary file we create a summary.idx and
a set of per-arch subsummaries (and extra copies of these if any commit
specify a subset). These are much smaller, and eventually we will also
get deltas for them.

We are not yet using these new formats, although the code is there
to use them once we start downloading them.
2020-10-29 15:30:35 +01:00

76 lines
1.3 KiB
Plaintext

/* Commanly used, give a name */
type Metadata [string] variant;
type Checksum []byte;
type RefInfo {
commit_size: uint64;
checksum: Checksum;
metadata: Metadata;
};
/* Note: RefMaps are sorted by ref */
type RefMap [] 'RefMapEntry {
ref: string;
info: RefInfo;
};
type Summary {
ref_map: RefMap;
metadata: Metadata;
};
type CollectionMap [sorted string] RefMap;
type Commit {
metadata: Metadata;
parent: Checksum;
related: [] 'Related {
ref: string;
commit: Checksum;
};
subject: string;
body: string;
timestamp: bigendian uint64;
root_contents: Checksum;
root_metadata: Checksum;
};
type Cache [sorted string] 'CacheData {
installed_size: bigendian uint64;
download_size: bigendian uint64;
metadata: string;
};
type SparseCache [sorted string] Metadata;
type CommitsCache []Checksum;
type DeployData {
origin: string;
commit: string;
subpaths: []string;
installed_size: bigendian uint64;
metadata: Metadata;
};
type ContentRating {
rating_type: string;
ratings: 'Ratings [string] string;
};
type ExtraDataSize {
n_extra_data: littleendian uint32;
total_size: littleendian uint64;
};
type Subsummary {
checksum: Checksum;
history: []Checksum;
metadata: Metadata;
};
type SummaryIndex {
subsummaries: [sorted string]Subsummary;
metadata: Metadata;
};