Documentation ¶
Index ¶
- type InstallFile
- func (installFile *InstallFile) AddDirectory(assetBase fs.FS, targetBase string) error
- func (installFile *InstallFile) AddDownloadedFile(url string, targetPath string) error
- func (installFile *InstallFile) AddDownloadedNestedFile(url string, wantedFile string, targetPath string) error
- func (installFile *InstallFile) AddFile(file fs.File, targetPath string) error
- func (installFile *InstallFile) AddFileByPath(filePath string, targetPath string) error
- func (installFile *InstallFile) AddFileData(data io.Reader, installerPath string, modTime time.Time) error
- func (installFile *InstallFile) AddHelmChart(chartFilePath string, chartId string, ...) error
- func (installFile *InstallFile) AddImage(tag string) error
- func (installFile *InstallFile) AddImagesInManifest(descriptorContent []byte) error
- func (installFile *InstallFile) ClearDockerImages() error
- func (installFile *InstallFile) CompleteCreation() error
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) 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
Click to show internal directories.
Click to hide internal directories.