Documentation
¶
Index ¶
- func DownloadWithCache(ctx context.Context, cacheDir, src, dest string, mode fs.FileMode, quiet bool) error
- func DownloadWithCacheAndExtract(ctx context.Context, cacheDir, src, dest string, match string, ...) error
- func Exec(ctx context.Context, dir string, stm IOStreams, name string, arg ...string) error
- func ForkExec(ctx context.Context, dir string, name string, arg ...string) error
- func ForkExecKill(ctx context.Context, dir string, name string) error
- func ForkExecRestart(ctx context.Context, dir string, name string) error
- func GetUnusedPort() (int, error)
- func PathJoin(elem ...string) string
- func Untar(src string, filter func(file string) (string, bool)) error
- func Untargz(src string, filter func(file string) (string, bool)) error
- func Unzip(src string, filter func(file string) (string, bool)) error
- type IOStreams
- type ProgressBar
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadWithCache ¶
Types ¶
type ProgressBar ¶
type ProgressBar struct {
// contains filtered or unexported fields
}
func NewProgressBar ¶
func NewProgressBar() *ProgressBar
func (*ProgressBar) Print ¶
func (p *ProgressBar) Print()
func (*ProgressBar) Update ¶
func (p *ProgressBar) Update(current, total int)
Click to show internal directories.
Click to hide internal directories.