airgap

package
v0.6.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2022 License: Apache-2.0 Imports: 26 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 GetArchDiff

func GetArchDiff(current, target []string) (add, del []string)

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(clusterName string, pkg *common.Package, dialer *hosts.SSHDialer) 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

type Downloader

type Downloader struct {
	// contains filtered or unexported fields
}

func NewDownloader

func NewDownloader(pkg common.Package) (*Downloader, error)

func (*Downloader) DownloadPackage

func (d *Downloader) DownloadPackage() (string, error)

Jump to

Keyboard shortcuts

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