ceph: zones.Zones.WriteCephConfig() and ceph.Config.WriteTo() [WIP]

Signed-off-by: Alejandro Mery <amery@jpi.io>
This commit is contained in:
2023-09-04 19:45:04 +00:00
parent 1037ed4bae
commit 9e8a19d00d
2 changed files with 20 additions and 0 deletions
+8
View File
@@ -1,6 +1,7 @@
package ceph
import (
"bytes"
"io"
"net/netip"
@@ -14,6 +15,13 @@ type Config struct {
Global GlobalConfig `ini:"global"`
}
// WriteTo writes a Wireguard [Config] onto the provided [io.Writer]
func (*Config) WriteTo(w io.Writer) (int64, error) {
var buf bytes.Buffer
return buf.WriteTo(w)
}
// GlobalConfig represents the [global] section of a ceph.conf file
type GlobalConfig struct {
FSID uuid.UUID `ini:"fsid"`