diff options
| author | Jeff Carr <[email protected]> | 2024-11-07 05:04:11 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-11-07 05:04:11 -0600 |
| commit | 907981a92da0537617a4c9fe39093f23004f461c (patch) | |
| tree | 5df2fcac84995b0027dceef658d652a3d74861d9 /config.go | |
| parent | b9766ce266286171f4688a32c679816bf824ae28 (diff) | |
rename Clusterv0.2.5
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'config.go')
| -rw-r--r-- | config.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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() |
