fake

package
v2.21.1 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationInstallerLogger

type ApplicationInstallerLogger struct {
}

ApplicationInstallerLogger is a fake ApplicationInstaller that just logs actions. it's used for the development of the controller.

func (ApplicationInstallerLogger) Apply

func (ApplicationInstallerLogger) Delete

func (ApplicationInstallerLogger) DonwloadSource

func (a ApplicationInstallerLogger) DonwloadSource(ctx context.Context, log *zap.SugaredLogger, seedClient ctrlruntimeclient.Client, applicationInstallation *appskubermaticv1.ApplicationInstallation, downloadDest string) (string, error)

func (ApplicationInstallerLogger) GetAppCache

func (a ApplicationInstallerLogger) GetAppCache() string

type ApplicationInstallerRecorder

type ApplicationInstallerRecorder struct {
	// DownloadEvents stores the call to download function. Key is the name of the applicationInstallation.
	DownloadEvents sync.Map

	// ApplyEvents stores the call to apply function. Key is the name of the applicationInstallation.
	ApplyEvents sync.Map

	// DeleteEvents stores the call to delete function. Key is the name of the applicationInstallation.
	DeleteEvents sync.Map
}

ApplicationInstallerRecorder is a fake ApplicationInstaller that records calls to apply and delete for testing assertions.

func (*ApplicationInstallerRecorder) Apply

func (*ApplicationInstallerRecorder) Delete

func (*ApplicationInstallerRecorder) DonwloadSource

func (a *ApplicationInstallerRecorder) DonwloadSource(ctx context.Context, log *zap.SugaredLogger, seedClient ctrlruntimeclient.Client, applicationInstallation *appskubermaticv1.ApplicationInstallation, downloadDest string) (string, error)

func (*ApplicationInstallerRecorder) GetAppCache

func (a *ApplicationInstallerRecorder) GetAppCache() string

Jump to

Keyboard shortcuts

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