cluster: make domain, basedir and cluster name public fields

Signed-off-by: Alejandro Mery <amery@jpi.io>
This commit is contained in:
2023-09-10 21:38:07 +00:00
parent 828d95aa3b
commit 3e45a56cd1
4 changed files with 41 additions and 37 deletions
+5 -2
View File
@@ -21,10 +21,13 @@ type Cluster struct {
dir fs.FS
log slog.Logger
resolver resolver.Resolver
domain string
BaseDir string `json:"dir,omitempty" yaml:"dir,omitempty"`
Name string `json:"name,omitempty" yaml:"name,omitempty"`
Domain string `json:"domain,omitempty" yaml:"domain,omitempty"`
CephFSID uuid.UUID `json:"ceph_fsid,omitempty" yaml:"ceph_fsid,omitempty"`
Zones []*Zone
Zones []*Zone `json:"zones,omitempty" yaml:"zones,omitempty"`
}
// revive:enable:line-length-limit