Documentation
¶
Index ¶
- type Installer
- func (i *Installer) Download(ctx context.Context, source *v1alpha1.ModuleSource, module, version string) (string, error)
- func (i *Installer) GetImageDigest(ctx context.Context, source *v1alpha1.ModuleSource, module, 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, source *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 {
InstallFunc func(ctx context.Context, module, version, tempModulePath string) error
StageFunc func(ctx context.Context, module, version, tempModulePath string) error
StageFromRegistryFunc func(ctx context.Context, source *v1alpha1.ModuleSource, module, version string) error
RestoreFunc func(ctx context.Context, source *v1alpha1.ModuleSource, module, version string) error
IsEmbeddedPresentFunc func(module string) bool
UninstallFunc func(ctx context.Context, module string) error
DownloadFunc func(ctx context.Context, source *v1alpha1.ModuleSource, module, version string) (string, error)
GetImageDigestFunc func(ctx context.Context, source *v1alpha1.ModuleSource, module, version string) (string, error)
GetInstalledFunc func() (map[string]struct{}, error)
SetClusterUUIDFunc func(id string)
}
Installer is a configurable mock. Any *Func field left nil falls back to the default behavior, so a zero-value &Installer{} keeps the historical stub semantics used across the existing tests.
func (*Installer) GetImageDigest ¶ added in v1.76.3
func (*Installer) GetInstalled ¶ added in v1.76.3
func (*Installer) IsEmbeddedPresent ¶ added in v1.76.3
func (*Installer) SetClusterUUID ¶ added in v1.76.3
func (*Installer) StageFromRegistry ¶ added in v1.76.3
Click to show internal directories.
Click to hide internal directories.