Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultGITHUBAPIKEYKey = "gitHubAPIkey" DefaultConfigFileKey = "configfile" DefaultHTTPtimeoutkey = "httpTimeout" DefaultHTTPinsecureKey = "httpInsecure" DefaultSaveLocationKey = "saveLocation" DefaultBaseURLKey = "baseURL" DefaultUploadRLKey = "uploadURL" DefaultMaxFileSizeKey = "maxFileSize" DefaultNotOkCompletionArgsKey = "notOkCompletionArgs" )
default Keys & values for global values lik saveLocation & HttpTimeout, notice that only the keys are Global
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bin ¶
type Bin struct {
Cli string `yaml:"cli"`
Owner string `yaml:"owner"`
Repo string `yaml:"repo"`
Tag string `yaml:"tag"`
Match string `yaml:"match"`
Download bool `yaml:"download"`
NonGithubURL string `yaml:"nonGithubURL"`
Backup bool `yaml:"backup"`
CompletionLocation string `yaml:"completionLocation"`
CompletionArgs []string `yaml:"completionArgs"`
}
Bin a representation on what to download
type Items ¶
type Items struct {
Bins []Bin `yaml:"bins"`
GitHubAPIkey string `yaml:"githubAPIkey"`
HTTPtimeout int `yaml:"httpTimeout"`
HTTPinsecure bool `yaml:"httpInsecure"`
SaveLocation string `yaml:"saveLocation"`
BaseURL string `yaml:"baseURL"`
UploadURL string `yaml:"uploadURL"`
MaxFileSize int64 `yaml:"maxFileSize"`
NotOkCompletionArgs []string `yaml:"notOkCompletionArgs"`
}
Items config file struct
Click to show internal directories.
Click to hide internal directories.