Documentation ¶
Index ¶
- Variables
- func CancelDownload(name string) error
- func DownloadPackage(pkg common.Package, logger logrus.FieldLogger) error
- func GetArchDiff(current, target []string) (add, del []string)
- func GetDownloadFilePath(name string) string
- func GetLogFile(name string) (logFile *os.File, err error)
- func GetValidatedArchs() []string
- func PackagePath(name string) string
- func PreparePackage(cluster *types.Cluster) (*common.Package, error)
- func ReadToTmp(fp io.Reader, name string) (string, error)
- func RemovePackage(name string) error
- func SaveToTmp(path, name string) (string, error)
- func ScpFiles(logger *logrus.Logger, clusterName string, pkg *common.Package, ...) (er error)
- func TarAndGzip(from, to string) error
- func TarAndGzipToWriter(from string, to io.Writer) error
- func TempDir(name string) string
- func ValidateArchs(archs []string) error
- func VerifyFiles(basePath string) (*common.Package, error)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func CancelDownload ¶ added in v0.8.0
func DownloadPackage ¶ added in v0.8.0
func DownloadPackage(pkg common.Package, logger logrus.FieldLogger) error
DownloadPackage will update the package state and path for the package record
func GetArchDiff ¶
func GetDownloadFilePath ¶ added in v0.8.0
func GetValidatedArchs ¶
func GetValidatedArchs() []string
func PackagePath ¶
func RemovePackage ¶
func TarAndGzip ¶
func ValidateArchs ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.