Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var GlobalConfiguration, _ = loadConfiguration()
Functions ¶
func SaveRepoData ¶
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"`
}
func (*Configuration) GetAuth ¶
func (c *Configuration) GetAuth(repo string) transport.AuthMethod
func (*Configuration) SaveConfiguration ¶
func (c *Configuration) SaveConfiguration() error
type Dependency ¶
func GetDependencies ¶
func GetDependencies(deps map[string]interface{}) []Dependency
func ParseDependency ¶
func ParseDependency(repo string, info string) Dependency
func (*Dependency) GetHashName ¶
func (d *Dependency) GetHashName() string
func (*Dependency) GetName ¶
func (d *Dependency) GetName() string
func (*Dependency) GetURL ¶
func (d *Dependency) GetURL() string
func (*Dependency) GetURLPrefix ¶
func (d *Dependency) GetURLPrefix() string
func (*Dependency) GetVersion ¶
func (d *Dependency) GetVersion() string
type Package ¶
type Package struct {
IsNew bool `json:"-"`
Name string `json:"name"`
Description string `json:"description"`
Version string `json:"version"`
Homepage string `json:"homepage"`
MainSrc string `json:"mainsrc"`
Projects []string `json:"projects"`
Scripts interface{} `json:"scripts,omitempty"`
Dependencies interface{} `json:"dependencies,omitempty"`
// contains filtered or unexported fields
}
func LoadPackage ¶
func LoadPackageOther ¶
func (*Package) AddDependency ¶
func (*Package) AddProject ¶
func (*Package) RemoveDependency ¶
Click to show internal directories.
Click to hide internal directories.