zones: annotate Machine for YAML encoding
Signed-off-by: Alejandro Mery <amery@jpi.io>
This commit is contained in:
@@ -9,10 +9,10 @@ import (
|
|||||||
type Machine struct {
|
type Machine struct {
|
||||||
zone *Zone
|
zone *Zone
|
||||||
ID int
|
ID int
|
||||||
Name string `toml:"name"`
|
Name string `toml:"name" yaml:"-"`
|
||||||
|
|
||||||
PublicAddresses []netip.Addr `toml:"public,omitempty"`
|
PublicAddresses []netip.Addr `toml:"public,omitempty" yaml:"public,omitempty"`
|
||||||
Rings []*RingInfo `toml:"rings,omitempty"`
|
Rings []*RingInfo `toml:"rings,omitempty" yaml:"rings,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *Machine) String() string {
|
func (m *Machine) String() string {
|
||||||
|
|||||||
Reference in New Issue
Block a user