downloadManager

package
v0.4.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2024 License: MIT Imports: 12 Imported by: 2

Documentation

Overview

Copyright (C) 2021-2023, Kubefirst

This program is licensed under MIT. See the LICENSE file for more details.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadFile

func DownloadFile(localFilename string, url string) error

DownloadFile Downloads a file from the "url" parameter, localFilename is the file destination in the local machine.

func DownloadTarGz

func DownloadTarGz(binaryPath string, tarAddress string, targzPath string, URL string) error

func DownloadZip

func DownloadZip(toolsDir string, URL string, zipPath string) error

func ExtractFileFromTarGz

func ExtractFileFromTarGz(gzipStream io.Reader, tarAddress string, targetFilePath string)

func Unzip

func Unzip(zipFilepath string, unzipDirectory string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL