feat(local-config): host hash helper

This commit is contained in:
Mikaël Cluseau
2018-12-10 18:28:24 +11:00
parent e155660ab0
commit 6acf004eab
2 changed files with 28 additions and 12 deletions

View File

@ -17,18 +17,6 @@ type Cluster struct {
Addons []byte
}
type Host struct {
Name string
MACs []string
IPs []string
Kernel string
Initrd string
Layers map[string]string
Config []byte
}
func FromBytes(data []byte) (*Config, error) {
config := &Config{}
if err := yaml.Unmarshal(data, config); err != nil {