Documentation
¶
Index ¶
- func CreateDir(path string) error
- func Download(d *Distribution) (file string, err error)
- func Extract(d *Distribution) ([]string, error)
- func GetDistributionName(d *Distribution) string
- func GetDistributionUrl(d *Distribution) string
- func GetTmpDir(d *Distribution) string
- func GetWorkDir(d *Distribution) string
- type Command
- type Configuration
- type Distribution
- type Process
- type Version
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Download ¶
func Download(d *Distribution) (file string, err error)
Download the distribution or report an error
func Extract ¶
func Extract(d *Distribution) ([]string, error)
Extract the distribution and return the directory files list
func GetDistributionName ¶
func GetDistributionName(d *Distribution) string
func GetDistributionUrl ¶
func GetDistributionUrl(d *Distribution) string
func GetTmpDir ¶
func GetTmpDir(d *Distribution) string
func GetWorkDir ¶
func GetWorkDir(d *Distribution) string
Types ¶
type Configuration ¶
type Distribution ¶
type Distribution struct { Configuration Url string Os string Platform string Extension string Tmp string }
func NewDistribution ¶
func NewDistribution(configuration Configuration, url ...string) *Distribution
Click to show internal directories.
Click to hide internal directories.