Documentation ¶
Index ¶
- Variables
- func GetBossFile() string
- func GetBossHome() string
- func GetCacheDir() string
- func GetCurrentDelphiVersionFromRegisty() string
- func GetCurrentDir() string
- func GetDcc32Dir() string
- func GetGlobalBinPath() string
- func GetGlobalEnvBpl() string
- func GetGlobalEnvDcp() string
- func GetGlobalEnvDcu() string
- func GetInternalGlobalDir() string
- func GetModulesDir() string
- 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 GetCurrentDelphiVersionFromRegisty ¶
func GetCurrentDelphiVersionFromRegisty() string
func GetCurrentDir ¶
func GetCurrentDir() string
func GetDcc32Dir ¶
func GetDcc32Dir() string
func GetGlobalBinPath ¶
func GetGlobalBinPath() string
func GetGlobalEnvBpl ¶
func GetGlobalEnvBpl() string
func GetGlobalEnvDcp ¶
func GetGlobalEnvDcp() string
func GetGlobalEnvDcu ¶
func GetGlobalEnvDcu() string
func GetInternalGlobalDir ¶
func GetInternalGlobalDir() string
func GetModulesDir ¶
func GetModulesDir() string
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:"purge_after"` InternalRefreshRate int `json:"internal_refresh_rate"` LastPurge time.Time `json:"last_purge_cache"` LastInternalUpdate time.Time `json:"last_internal_update"` DelphiPath string `json:"delphi_path,omitempty"` ConfigVersion int64 `json:"config_version"` GitEmbedded bool `json:"git_embedded"` // 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.