mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-19 01:06:27 +00:00
Merge pull request #123 from justincormack/json-for-top-level
Add json config for top level config
This commit is contained in:
commit
43bd663816
@ -19,12 +19,12 @@ import (
|
||||
|
||||
// Moby is the type of a Moby config file
|
||||
type Moby struct {
|
||||
Kernel KernelConfig
|
||||
Init []string
|
||||
Onboot []Image
|
||||
Services []Image
|
||||
Trust TrustConfig
|
||||
Files []File
|
||||
Kernel KernelConfig `kernel:"cmdline" json:"kernel,omitempty"`
|
||||
Init []string `init:"cmdline" json:"init"`
|
||||
Onboot []Image `yaml:"onboot" json:"onboot"`
|
||||
Services []Image `yaml:"services" json:"services"`
|
||||
Trust TrustConfig `yaml:"trust" json:"trust,omitempty"`
|
||||
Files []File `yaml:"files" json:"files"`
|
||||
}
|
||||
|
||||
// KernelConfig is the type of the config for a kernel
|
||||
|
Loading…
Reference in New Issue
Block a user