about summary refs log tree commit diff
path: root/image.go
blob: e627544462e59f88a37cc75df37995a18da73679 (plain) (blame)
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
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"`
}