-
Notifications
You must be signed in to change notification settings - Fork 2
/
MapFileModule.asn1
49 lines (44 loc) · 1.69 KB
/
MapFileModule.asn1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
MapFileModule DEFINITIONS AUTOMATIC TAGS ::= BEGIN
IMPORTS Length,
Paths,
StrictFilename,
URLs FROM CommonModule;
-- https://github.com/theupdateframework/taps/blob/master/tap4.md
MapFile ::= SEQUENCE {
-- A list of repositories.
numberOfRepositories Length,
repositories Repositories,
--A list of mapping of images to repositories.
numberOfMappings Length,
mappings Mappings
}
-- Adjust length of SEQUENCE OF to your needs.
Repositories ::= SEQUENCE (SIZE(2)) OF Repository
Repository ::= SEQUENCE {
-- A shorthand name for the repository, which also specifies the name of the
-- directory on the client which contains previous and latest metadata.
name RepositoryName,
-- A list of servers where metadata and targets may be downloaded from.
numberOfServers Length,
servers URLs,
-- https://tools.ietf.org/html/rfc6025#section-2.4.2
...
}
-- Adjust length of SEQUENCE OF to your needs.
RepositoryNames ::= SEQUENCE (SIZE(2)) OF RepositoryName
RepositoryName ::= StrictFilename
-- Adjust length of SEQUENCE OF to your needs.
Mappings ::= SEQUENCE (SIZE(1)) OF Mapping
Mapping ::= SEQUENCE {
-- The list of targets delegated to the following repositories.
numberOfPaths Length,
paths Paths,
-- The repositories which MUST all sign the preceeding targets.
numberOfRepositories Length,
repositories RepositoryNames,
-- Whether or not this delegation is terminating.
terminating BOOLEAN DEFAULT FALSE,
-- https://tools.ietf.org/html/rfc6025#section-2.4.2
...
}
END