mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-21 10:09:07 +00:00
Add json config for top level config
Otherwise JSON output as metadata cannot actually be used as it has capitalised field names. Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
parent
4105b7ea31
commit
55f7df577a
@ -19,12 +19,12 @@ import (
|
|||||||
|
|
||||||
// Moby is the type of a Moby config file
|
// Moby is the type of a Moby config file
|
||||||
type Moby struct {
|
type Moby struct {
|
||||||
Kernel KernelConfig
|
Kernel KernelConfig `kernel:"cmdline" json:"kernel,omitempty"`
|
||||||
Init []string
|
Init []string `init:"cmdline" json:"init"`
|
||||||
Onboot []Image
|
Onboot []Image `yaml:"onboot" json:"onboot"`
|
||||||
Services []Image
|
Services []Image `yaml:"services" json:"services"`
|
||||||
Trust TrustConfig
|
Trust TrustConfig `yaml:"trust" json:"trust,omitempty"`
|
||||||
Files []File
|
Files []File `yaml:"files" json:"files"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// KernelConfig is the type of the config for a kernel
|
// KernelConfig is the type of the config for a kernel
|
||||||
|
Loading…
Reference in New Issue
Block a user