Browse Source

zones: annotate Machine for YAML encoding

Signed-off-by: Alejandro Mery <amery@jpi.io>
pull/1/head
Alejandro Mery 1 year ago
parent
commit
080021b427
  1. 6
      pkg/zones/machine.go

6
pkg/zones/machine.go

@ -9,10 +9,10 @@ import (
type Machine struct {
zone *Zone
ID int
Name string `toml:"name"`
Name string `toml:"name" yaml:"-"`
PublicAddresses []netip.Addr `toml:"public,omitempty"`
Rings []*RingInfo `toml:"rings,omitempty"`
PublicAddresses []netip.Addr `toml:"public,omitempty" yaml:"public,omitempty"`
Rings []*RingInfo `toml:"rings,omitempty" yaml:"rings,omitempty"`
}
func (m *Machine) String() string {

Loading…
Cancel
Save