about summary refs log tree commit diff
path: root/image.go
diff options
context:
space:
mode:
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"`
+}