env

package
v2.0.10+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 8, 2019 License: MIT Imports: 16 Imported by: 0

Documentation

Index

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

func (a *Auth) GetPassword() string

func (*Auth) GetUser

func (a *Auth) GetUser() string

func (*Auth) SetPass

func (a *Auth) SetPass(pass string)

func (*Auth) SetUser

func (a *Auth) SetUser(user string)

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()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL