package
0.0.0-20211026085202-854ad97855da
Repository: https://github.com/g-node/gin-cli.git
Documentation: pkg.go.dev
# Functions
AddServerConf writes a new server configuration into the user config file.
ParseGitString takes a string which contains all information about a server's git configuration (e.g., [email protected]:22) and returns a GitCfg struct.
ParseWebString takes a string which contains all information about a server's web configuration (e.g., https://gin.g-node.org:443) and returns a WebCfg struct.
Path returns the configuration path where configuration files should be stored.
Read loads in the configuration from the config file(s), merges any defined values into the default configuration, and returns a populated GinConfiguration struct.
RmServerConf removes a server configuration from the user config file.
SetConfig appends a key-value to the configuration file.
SetDefaultServer writes the given name to the config file to server as the default server for web calls.
# Structs
AnnexCfg holds the configuration options for Git Annex (filtering rules).
BinCfg holds the paths to the external binaries that the client depends on.
GinCliCfg holds the client configuration values.
GitCfg is the configuration for the git server.
ServerCfg holds the information required for GIN servers (web and git).
WebCfg is the configuration for the web server.