Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DownloadTimeout is timeout for download file. DownloadTimeout = 5 * time.Minute // GithubUser is username which be used for github's basic auth. GithubUser string // GithubToken is token which be used for github's basic auth. GithubToken string // GithubVerbose enables log for github related operation. GithubVerbose bool // LogRotateCount is used for log rotation. LogRotateCount = 5 // ExeRotateCount is used for executable files rotation. ExeRotateCount = 5 )
View Source
var (
// Version stores version to log.
Version = "none"
)
Functions ¶
func LogFatal ¶
func LogFatal(err error)
LogFatal records a message to UI and logger file then os.Exit(1)
Types ¶
type Arch ¶
type Arch struct { // Name for architecture, like "X86", "AMD64" Name string // Hint is a file be used to guess architecture. Hint string }
Arch determines architecture.
type DirectSource ¶
DirectSource represents direct ZIP source.
func (*DirectSource) String ¶
func (ds *DirectSource) String() string
type GithubSource ¶
type GithubSource struct { Name string User string Project string NamePat *regexp.Regexp Strip int }
GithubSource represents project source on GitHub.
func (*GithubSource) String ¶
func (gs *GithubSource) String() string
Source Files
¶
Click to show internal directories.
Click to hide internal directories.