Documentation ¶
Index ¶
- func Available(configDir string) bool
- func BackupData(configDir, updateDir, backupDir string) error
- func CopyFile(in, out string) error
- func GetReadme(configDir string, pluginName string) (io.ReadCloser, error)
- func ListPlugins(configDir string) (map[string]*assets.Plugin, error)
- func ModifyConfigFile(configDir string, c *assets.Configuration) error
- func OverwriteFile(in, out string) error
- func ReadConfig(a *assets.Assets) (*assets.Configuration, error)
- func ReadConfigFile(configDir string) ([]byte, error)
- func Revert(configDir string, failure error) error
- func RevertConfig(configDir, backupDir, revertDir string) error
- func RevertData(configDir, backupDir, revertDir string) error
- func RevertHeedy(configDir, backupDir, revertDir string) error
- func RevertPlugins(configDir, backupDir, revertDir string) error
- func Run(o Options) error
- func RunHeedy(configDir string, extraArgs ...string) error
- func SetConfigFile(configDir string, b []byte) error
- func ShiftFiles(in, middle, out string) error
- func StartProcess(heedyPath string, args ...string) error
- func Status(configDir string) error
- func UnzipDirectory(src string, dest string) error
- func Update(configDir string) (bool, error)
- func UpdateConfig(configDir, updateDir, backupDir string) error
- func UpdateHeedy(configDir, updateDir, backupDir string) error
- func UpdatePlugin(configDir string, zipFile string) error
- func UpdatePlugins(configDir, updateDir, backupDir string) error
- func ZipDirectory(zipFile, inputDir string) error
- type Options
- type UpdateInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BackupData ¶
func ListPlugins ¶
Lists ALL plugins (including those that are not active, and those that are currently pending restart)
func ModifyConfigFile ¶
func ModifyConfigFile(configDir string, c *assets.Configuration) error
func OverwriteFile ¶
func ReadConfig ¶
func ReadConfig(a *assets.Assets) (*assets.Configuration, error)
func ReadConfigFile ¶
func RevertConfig ¶
func RevertData ¶
func RevertHeedy ¶
RevertHeedy reverts the heedy executable to the backed up version if such exists
func RevertPlugins ¶
func SetConfigFile ¶
func ShiftFiles ¶
ShiftFiles moves middle->out (if exists), and then in->middle
func StartProcess ¶
func UnzipDirectory ¶
UnzipDirectory will decompress a zip archive, moving all files and folders within the zip file (parameter 1) to an output directory (parameter 2). https://golangcode.com/unzip-files-in-go/
func UpdateConfig ¶
func UpdateHeedy ¶
UpdateHeedy updates the heedy executable
func UpdatePlugin ¶
func UpdatePlugins ¶
UpdatePlugins updates all the plugins
func ZipDirectory ¶
Types ¶
type UpdateInfo ¶
type UpdateInfo struct { Heedy bool `json:"heedy"` Config bool `json:"config"` Plugins []string `json:"plugins"` }
func GetInfo ¶
func GetInfo(configDir string) (ui UpdateInfo)
Click to show internal directories.
Click to hide internal directories.