summaryrefslogtreecommitdiff
path: root/config.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-11-07 05:04:11 -0600
committerJeff Carr <[email protected]>2024-11-07 05:04:11 -0600
commit907981a92da0537617a4c9fe39093f23004f461c (patch)
tree5df2fcac84995b0027dceef658d652a3d74861d9 /config.go
parentb9766ce266286171f4688a32c679816bf824ae28 (diff)
rename Clusterv0.2.5
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'config.go')
-rw-r--r--config.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/config.go b/config.go
index 7be4a67..0274fcf 100644
--- a/config.go
+++ b/config.go
@@ -16,7 +16,7 @@ import (
// writes out the cluster information it seperate files
// to make it humanly possible to hand edit things as needed
-func (c *NewCluster) ConfigSave() error {
+func (c *Cluster) ConfigSave() error {
// try to backup the current cluster config files
if err := backupConfig(); err != nil {
return err
@@ -66,7 +66,7 @@ func (c *NewCluster) ConfigSave() error {
return nil
}
-func (c *NewCluster) ConfigLoad() error {
+func (c *Cluster) ConfigLoad() error {
if c == nil {
return errors.New("It's not safe to run ConfigLoad() on a nil cluster")
}
@@ -176,7 +176,7 @@ func ConfigWriteTEXT(a any, filename string) error {
return nil
}
-func (c *NewCluster) configWriteDroplets() error {
+func (c *Cluster) configWriteDroplets() error {
fullname := filepath.Join(os.Getenv("VIRTIGO_HOME"), "droplets.new.text")
cfgfile, err := os.OpenFile(fullname, os.O_RDWR|os.O_CREATE, 0666)
defer cfgfile.Close()