install_file

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2021 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InstallFile

type InstallFile struct {
	PackageConfig    *config.PackageConfig
	SystemConfig     *config.SystemConfig
	CompressionLevel int
	// contains filtered or unexported fields
}

func StartCreation

func StartCreation(installerPath string, compressionLevel int) (*InstallFile, error)

* Begins creating the install file.

The install file is the installer binary followed by a zip of what to install. This method will create the file with the installer and open a zip write for the remaining contents.

func (*InstallFile) AddDirectory

func (installFile *InstallFile) AddDirectory(assetBase fs.FS, targetBase string) error

func (*InstallFile) AddDownloadedFile

func (installFile *InstallFile) AddDownloadedFile(url string, targetPath string) error

* Downloads the given url and saves it to the installer

func (*InstallFile) AddDownloadedNestedFile

func (installFile *InstallFile) AddDownloadedNestedFile(url string, wantedFile string, targetPath string) error

* Downloads the given url and extracts a specific file out of the archive and saves it to the installer

func (*InstallFile) AddFile

func (installFile *InstallFile) AddFile(file fs.File, targetPath string) error

* Adds the given file to the installer

func (*InstallFile) AddFileByPath

func (installFile *InstallFile) AddFileByPath(filePath string, targetPath string) error

func (*InstallFile) AddFileData

func (installFile *InstallFile) AddFileData(data io.Reader, installerPath string, modTime time.Time) error

func (*InstallFile) AddHelmChart

func (installFile *InstallFile) AddHelmChart(chartFilePath string, chartId string, overrideParameters map[string]interface{}) error

func (*InstallFile) AddImage

func (installFile *InstallFile) AddImage(tag string) error

func (*InstallFile) AddImagesInManifest

func (installFile *InstallFile) AddImagesInManifest(descriptorContent []byte) error

* Parses the descriptorContent as a kubernetes descriptor and saves any referenced containers to the install file

func (*InstallFile) ClearDockerImages

func (installFile *InstallFile) ClearDockerImages() error

func (*InstallFile) CompleteCreation

func (installFile *InstallFile) CompleteCreation() error

Jump to

Keyboard shortcuts

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