airgap

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrVersionNotFound = errors.New("version not found")

	ValidatedArch = map[string]bool{
		"arm64": true,
		"amd64": true,
		"arm":   true,
		"s390s": true,
	}
)

Functions

func CancelDownload added in v0.8.0

func CancelDownload(name string) error

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 GetArchDiff(current, target []string) (add, del []string)

func GetDownloadFilePath added in v0.8.0

func GetDownloadFilePath(name string) string

func GetLogFile added in v0.8.0

func GetLogFile(name string) (logFile *os.File, err error)

func GetValidatedArchs

func GetValidatedArchs() []string

func PackagePath

func PackagePath(name string) string

func PreparePackage

func PreparePackage(cluster *types.Cluster) (*common.Package, error)

func ReadToTmp

func ReadToTmp(fp io.Reader, name string) (string, error)

func RemovePackage

func RemovePackage(name string) error

func SaveToTmp

func SaveToTmp(path, name string) (string, error)

func ScpFiles

func ScpFiles(logger *logrus.Logger, clusterName string, pkg *common.Package, dialer *dialer.SSHDialer, extraArgs string) (er error)

func TarAndGzip

func TarAndGzip(from, to string) error

func TarAndGzipToWriter

func TarAndGzipToWriter(from string, to io.Writer) error

func TempDir

func TempDir(name string) string

func ValidateArchs

func ValidateArchs(archs []string) error

func VerifyFiles

func VerifyFiles(basePath string) (*common.Package, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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