Documentation ¶
Index ¶
- Variables
- func GetBossFile() string
- func GetBossHome() string
- func GetCacheDir() string
- func GetCurrentDir() string
- func GetDcc32Dir() string
- func GetDelphiVersionFromRegisty() string
- func GetGlobalBinPath() string
- func GetInternalGlobalDir() string
- func GetModulesDir() string
- func HandleError(err error)
- func HandleErrorFatal(err error)
- func HashDelphiPath() string
- type Auth
- type Configuration
Constants ¶
This section is empty.
Variables ¶
View Source
var Global bool
View Source
var GlobalConfiguration, _ = LoadConfiguration(GetBossHome())
View Source
var Internal = false
Functions ¶
func GetBossFile ¶
func GetBossFile() string
func GetBossHome ¶
func GetBossHome() string
func GetCacheDir ¶
func GetCacheDir() string
func GetCurrentDir ¶
func GetCurrentDir() string
func GetDcc32Dir ¶
func GetDcc32Dir() string
func GetDelphiVersionFromRegisty ¶
func GetDelphiVersionFromRegisty() string
func GetGlobalBinPath ¶
func GetGlobalBinPath() string
func GetInternalGlobalDir ¶
func GetInternalGlobalDir() string
func GetModulesDir ¶
func GetModulesDir() string
func HandleError ¶
func HandleError(err error)
func HandleErrorFatal ¶
func HandleErrorFatal(err error)
func HashDelphiPath ¶
func HashDelphiPath() string
Types ¶
type Auth ¶
type Auth struct { UseSsh bool `json:"use,omitempty"` Path string `json:"path,omitempty"` User string `json:"x,omitempty"` Pass string `json:"y,omitempty"` }
func (*Auth) GetPassword ¶
type Configuration ¶
type Configuration struct { Key string `json:"id"` Auth map[string]*Auth `json:"auth"` PurgeTime int `json:"purgeAfter"` LastPurge string `json:"last_purge"` DelphiPath string `json:"delphi_path,omitempty"` // contains filtered or unexported fields }
func LoadConfiguration ¶
func LoadConfiguration(cachePath string) (*Configuration, error)
func (*Configuration) GetAuth ¶
func (c *Configuration) GetAuth(repo string) transport.AuthMethod
func (*Configuration) SaveConfiguration ¶
func (c *Configuration) SaveConfiguration()
Click to show internal directories.
Click to hide internal directories.