Documentation
¶
Index ¶
- type Installer
- func (i *Installer) Download(ctx context.Context, source *v1alpha1.ModuleSource, moduleName, version string) (string, error)
- func (i *Installer) GetImageDigest(ctx context.Context, source *v1alpha1.ModuleSource, moduleName, version string) (string, error)
- func (i *Installer) GetInstalled() (map[string]struct{}, error)
- func (i *Installer) Install(ctx context.Context, module, version, tempModulePath string) error
- func (i *Installer) IsEmbeddedPresent(module string) bool
- func (i *Installer) Restore(ctx context.Context, ms *v1alpha1.ModuleSource, module, version string) error
- func (i *Installer) SetClusterUUID(id string)
- func (i *Installer) Stage(ctx context.Context, module, version, tempModulePath string) error
- func (i *Installer) StageFromRegistry(ctx context.Context, source *v1alpha1.ModuleSource, module, version string) error
- func (i *Installer) Uninstall(ctx context.Context, module string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Installer ¶
type Installer struct {
// contains filtered or unexported fields
}
func (*Installer) GetImageDigest ¶
func (*Installer) GetInstalled ¶ added in v1.74.2
GetInstalled gets all installed modules from <downloaded>/modules dir
func (*Installer) IsEmbeddedPresent ¶ added in v1.76.3
IsEmbeddedPresent reports whether an embedded copy of the module is shipped on the filesystem. While it is present, the module search path resolves the module to its embedded copy, so a downloaded module of the same name must not be activated (only staged).
Embedded modules are shipped with an optional weight prefix in their directory name (e.g. 040-node-manager), while module holds the bare name (node-manager), so the lookup must strip the prefix instead of stat'ing the bare name directly.
func (*Installer) Restore ¶
func (i *Installer) Restore(ctx context.Context, ms *v1alpha1.ModuleSource, module, version string) error
Restore ensures the module image is present, verified, and mounted.
func (*Installer) SetClusterUUID ¶
func (*Installer) Stage ¶ added in v1.76.3
Stage materializes a module on the filesystem from a temp dir without activating it (no symlink/mount), so an embedded copy of the same name keeps serving the module until Deckhouse drops the embedded copy on upgrade.
func (*Installer) StageFromRegistry ¶ added in v1.76.3
func (i *Installer) StageFromRegistry(ctx context.Context, source *v1alpha1.ModuleSource, module, version string) error
StageFromRegistry materializes a module on the filesystem from the registry without activating it (no symlink/mount).