about summary refs log tree commit diff
path: root/image.go
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@gmail.com>2017-03-16T10·43+0100
committerVincent Ambo <tazjin@gmail.com>2017-03-16T10·43+0100
commit1c2d087ec42cd6acc2967140e0f48b2119a5e51a (patch)
tree9aabbb8723f12feee24e19d9d73ee149579e888e /image.go
parent9690defd2b718705e58c321130ddbb089123c9c1 (diff)
feat: Fully working quine registry
Diffstat (limited to 'image.go')
-rw-r--r--image.go28
1 files changed, 28 insertions, 0 deletions
diff --git a/image.go b/image.go
new file mode 100644
index 000000000000..e627544462e5
--- /dev/null
+++ b/image.go
@@ -0,0 +1,28 @@
+package main
+
+import "time"
+
+type RootFs struct {
+	DiffIds []string `json:"diff_ids"`
+	Type    string   `json:"type"`
+}
+
+type History struct {
+	Created   time.Time `json:"created"`
+	CreatedBy string    `json:"created_by"`
+}
+
+type ImageConfig struct {
+	Cmd []string
+	Env []string
+}
+
+type Config struct {
+	Created      time.Time    `json:"created"`
+	Author       string       `json:"author"`
+	Architecture string       `json:"architecture"`
+	Os           string       `json:"os"`
+	Config       *ImageConfig `json:"config"`
+	RootFs       RootFs       `json:"rootfs"`
+	History      []History    `json:"history"`
+}