fileio

package
v0.0.0-...-55a407e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 18, 2022 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SyncOutputMutex sync.Mutex
)

Functions

func AddOverwrites

func AddOverwrites(server *objects.Server, overwrites map[string]objects.Overwrite)

func CheckScriptPath

func CheckScriptPath(filepath string) error

func DeleteServer

func DeleteServer(serverName string) error

func FileExist

func FileExist(filepath string) bool

func GetFileList

func GetFileList(directoryPath string) ([]os.FileInfo, error)

func GetServer

func GetServer(serverID string, overwrites map[string]objects.Overwrite) (server objects.Server, err error)

func GetServers

func GetServers(overwrites map[string]objects.Overwrite) ([]objects.Server, error)

func LoadFromFile

func LoadFromFile(s interface{}, filepath string) error

func LoadOverwrites

func LoadOverwrites(overwrites interface{}) error

func LoadScripts

func LoadScripts(scripts map[string]objects.Script) error

func RemoveServer

func RemoveServer(serverID string) error

func RunScript

func RunScript(scriptPath string, server objects.Server, scriptID string, timeout int) error

func SaveOverwrites

func SaveOverwrites(overwrites interface{}) error

func ServerExist

func ServerExist(serverID string) bool

func UpdateServer

func UpdateServer(server objects.Server) (writeerr error)

func WriteStructToFile

func WriteStructToFile(s interface{}, filepath string, appendToFile bool) (err error)

func WriteToFile

func WriteToFile(filepath string, content string, appendToFile bool, filemode os.FileMode) (err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL