Documentation ¶
Index ¶
- Constants
- func AppHome() string
- func ClientHome() string
- func ConfigDefaultPath() string
- func ConfigDefaultPathValid() string
- func CreateDataDirPath(datapath string) string
- func GetOsEnvVar(name string) string
- func K8ConfigPath() string
- func K8ConfigValidPath() (p string, fnerr error)
- func PathExists(p string) bool
- func ReadFile(location string) ([]byte, error)
- func SaveFile(location string, data []byte) error
- func ServerHome() string
Constants ¶
View Source
const ( // AppHomePath : Application Home Path AppHomePath = ".hyperml" // ServerHomePath : Server Home Path ServerHomePath = "server" // ClientHomePath : Client home path ClientHomePath = "client" // DefaultFilePerm : Default File permissions DefaultFilePerm = 0644 // DefaultPerm : Default permission for file/folder DefaultPerm = 0644 //ConfigFileName : Config file name ConfigFileName = "config.json" )
Variables ¶
This section is empty.
Functions ¶
func ClientHome ¶
func ClientHome() string
ClientHome : Returns or Creates server home path. usually usually ~/.hyperml/client
func ConfigDefaultPath ¶
func ConfigDefaultPath() string
ConfigDefaultPath : Returns server config file path
func ConfigDefaultPathValid ¶
func ConfigDefaultPathValid() string
ConfigDefaultPathValid : Returns server config file path if file exists
func CreateDataDirPath ¶
CreateDataDirPath : Appends Server home directory with data directory path creates any missing directories
func PathExists ¶
PathExists : Checks if a file exists at a given path
func ServerHome ¶
func ServerHome() string
ServerHome : Returns or Creates server home path. usually ~/.hyperml/server
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.