-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefs.go
More file actions
55 lines (48 loc) · 1.16 KB
/
defs.go
File metadata and controls
55 lines (48 loc) · 1.16 KB
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
50
51
52
53
54
55
package main
//it would be better to use stuff from https://github.com/docker/distribution/blob/master/manifest/
//but we can't since it vendors digest.Digest and we can't assign to it :((((( dirty dirty
type Content struct {
MediaType string `json:"mediaType"`
Digest string `json:"digest"`
}
type Manifest struct {
SchemaVersion int `json:"schemaVersion"`
MediaType string `json:"mediaType,omitempty"`
Config Content `json:"config"`
Layers []Content `json:"layers"`
}
type ConfigHistoryItem struct {
Created string
CreatedBy string
EmptyLayer bool
}
type ConfigRootFs struct {
Type string `json:"type"`
DiffIds []string `json:"diff_ids"`
}
type ConfigConfig struct {
Hostname string
Domainname string
User string
AttachStdIn bool
AttachStdOut bool
AttachStdErr bool
Tty bool
OpenStdin bool
StdinInce bool
Env []string
Cmd string
ArgsEscaped bool
WorkingDir string
Entrypoint []string
}
type Config struct {
Architecture string
Container string
Os string
Created string
DockerVersion string `json:"docker_version"`
Config ConfigConfig
History []ConfigHistoryItem
Rootfs ConfigRootFs `json:"rootfs"`
}