drop toml support

Signed-off-by: Alejandro Mery <amery@jpi.io>
This commit is contained in:
2023-09-10 19:53:52 +00:00
parent 7795610caf
commit 204f3a49a1
6 changed files with 18 additions and 32 deletions
+6 -7
View File
@@ -88,12 +88,12 @@ func FilterMachines(m MachineIterator, cond func(*Machine) bool) (Machines, int)
// Zone represents one zone in a cluster
type Zone struct {
zones *Zones
logger `toml:"-" json:"-" yaml:"-"`
logger `json:"-" yaml:"-"`
ID int `toml:"id"`
Name string `toml:"name"`
ID int
Name string
Machines `toml:"machines"`
Machines
}
func (z *Zone) String() string {
@@ -147,9 +147,8 @@ type Zones struct {
resolver resolver.Resolver
domain string
CephFSID uuid.UUID `toml:"ceph_fsid,omitempty" json:"ceph_fsid,omitempty" yaml:"ceph_fsid,omitempty"`
Zones []*Zone `toml:"zones"`
CephFSID uuid.UUID `json:"ceph_fsid,omitempty" yaml:"ceph_fsid,omitempty"`
Zones []*Zone
}
// revive:enable:line-length-limit