This commit is contained in:
Mikaël Cluseau
2018-12-10 21:52:14 +11:00
parent 6acf004eab
commit 68c87509f2
3 changed files with 40 additions and 11 deletions

View File

@ -11,18 +11,20 @@ type Host struct {
MACs []string
IPs []string
Kernel string
Initrd string
Layers map[string]string
IPXE string
Config []byte
Kernel string
Initrd string
Versions map[string]string
Config string
}
func (h *Host) WriteHashDataTo(w io.Writer) error {
return yaml.NewEncoder(w).Encode(Host{
Kernel: h.Kernel,
Initrd: h.Initrd,
Layers: h.Layers,
Config: h.Config,
Kernel: h.Kernel,
Initrd: h.Initrd,
Versions: h.Versions,
Config: h.Config,
})
}