downloader

package
v1.56.1 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ModuleDownloadResult

type ModuleDownloadResult struct {
	Checksum      string
	ModuleVersion string
	ModuleWeight  uint32

	ModuleDefinition *models.DeckhouseModuleDefinition
}

type ModuleDownloader

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

func NewModuleDownloader

func NewModuleDownloader(externalModulesDir string, ms *v1alpha1.ModuleSource, registryOptions []cr.Option) *ModuleDownloader

func (*ModuleDownloader) DownloadByModuleVersion

func (md *ModuleDownloader) DownloadByModuleVersion(moduleName, moduleVersion string) error

func (*ModuleDownloader) DownloadDevImageTag

func (md *ModuleDownloader) DownloadDevImageTag(moduleName, imageTag, checksum string) (string, *models.DeckhouseModuleDefinition, error)

DownloadDevImageTag downloads image tag and store it in the .../<moduleName>/dev fs path if checksum is equal to a module image digest - do nothing otherwise return new digest

func (*ModuleDownloader) DownloadMetadataFromReleaseChannel

func (md *ModuleDownloader) DownloadMetadataFromReleaseChannel(moduleName, releaseChannel, moduleChecksum string) (ModuleDownloadResult, error)

DownloadMetadataFromReleaseChannel downloads only module release image with metadata: version.json, checksum.json(soon) does not fetch and install the desired version on the module, only fetches its module definition

Jump to

Keyboard shortcuts

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