Documentation ¶
Index ¶
Constants ¶
View Source
const ( JSON_FILE_NAME = "vane.json" // default saved directory named "vane.json" DFT_TIME_OUT = 36000 // default timeour set to 10 hours. )
View Source
const (
RCFileName = ".vanerc"
)
View Source
const (
RegPackageVersion = `\d+\.\d+(\.\d+.*)?` // will match, e.g. 1.1.1, 1.11.1, 1.2, 111.0.1, 1.0.0-alpha.7
)
Variables ¶
View Source
var ( ERR_JSON_FILE_NOT_FOUND = errors.New("vane.json file not found") ERR_JSON_FILE_CONF = errors.New("bad vane.json configuration") )
View Source
var ( ERR_RC_FILE_NOT_FOUND = errors.New(".vanerc file not found.") ERR_RC_FILE_CONF = errors.New(".vanerc file configuration error.") )
Functions ¶
func GetVersionInfo ¶
func OpenRCFile ¶
Types ¶
type PackageInfo ¶
type VaneJSON ¶
type VaneJSON struct { Directory string `json:"directory,-"` Timeout int `json:"timeout,-"` Dependencies map[string]string `json:"dependencies,omitempty"` DevDependencies map[string]string `json:"devDependencies,omitempty"` }
func (*VaneJSON) ReadPackages ¶
func (v *VaneJSON) ReadPackages(pkgs map[string]string) []PackageInfo
ReadPackages read the given map that might be VaneJSON.Dependencies or VaneJSON.DebDependencies.
Click to show internal directories.
Click to hide internal directories.