env

package
v2.7.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2019 License: MIT Imports: 17 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 GetCurrentDelphiVersionFromRegisty

func GetCurrentDelphiVersionFromRegisty() string

func GetCurrentDir

func GetCurrentDir() string

func GetDcc32Dir

func GetDcc32Dir() string

func GetGlobalBinPath

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

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

Jump to

Keyboard shortcuts

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