diff options
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() |
