From 1c2d087ec42cd6acc2967140e0f48b2119a5e51a Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Thu, 16 Mar 2017 11:43:17 +0100 Subject: feat: Fully working quine registry --- image.go | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 image.go (limited to 'image.go') 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"` +} -- cgit 1.4.1