mocks

package
v0.0.0-...-a954c3e Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockCLI

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

MockCLI is a mock of CLI interface.

func NewMockCLI

func NewMockCLI(ctrl *gomock.Controller) *MockCLI

NewMockCLI creates a new mock instance.

func (*MockCLI) EXPECT

func (m *MockCLI) EXPECT() *MockCLIMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockCLI) RunCommand

func (m *MockCLI) RunCommand(arg0 context.Context, arg1 map[string]string, arg2 int, arg3, arg4 string, arg5 ...string) (int, error)

RunCommand mocks base method.

func (*MockCLI) RunCommandWithStdErr

func (m *MockCLI) RunCommandWithStdErr(arg0 context.Context, arg1 map[string]string, arg2 int, arg3, arg4 string, arg5 ...string) (int, []string, error)

RunCommandWithStdErr mocks base method.

func (*MockCLI) RunCommandWithStdOut

func (m *MockCLI) RunCommandWithStdOut(arg0 context.Context, arg1 map[string]string, arg2 int, arg3, arg4 string, arg5 ...string) (int, []string, error)

RunCommandWithStdOut mocks base method.

func (*MockCLI) RunCommandWithStdOutStdErr

func (m *MockCLI) RunCommandWithStdOutStdErr(arg0 context.Context, arg1 map[string]string, arg2 int, arg3, arg4 string, arg5 ...string) (int, []string, []string, error)

RunCommandWithStdOutStdErr mocks base method.

type MockCLIMockRecorder

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

MockCLIMockRecorder is the mock recorder for MockCLI.

func (*MockCLIMockRecorder) RunCommand

func (mr *MockCLIMockRecorder) RunCommand(arg0, arg1, arg2, arg3, arg4 interface{}, arg5 ...interface{}) *gomock.Call

RunCommand indicates an expected call of RunCommand.

func (*MockCLIMockRecorder) RunCommandWithStdErr

func (mr *MockCLIMockRecorder) RunCommandWithStdErr(arg0, arg1, arg2, arg3, arg4 interface{}, arg5 ...interface{}) *gomock.Call

RunCommandWithStdErr indicates an expected call of RunCommandWithStdErr.

func (*MockCLIMockRecorder) RunCommandWithStdOut

func (mr *MockCLIMockRecorder) RunCommandWithStdOut(arg0, arg1, arg2, arg3, arg4 interface{}, arg5 ...interface{}) *gomock.Call

RunCommandWithStdOut indicates an expected call of RunCommandWithStdOut.

func (*MockCLIMockRecorder) RunCommandWithStdOutStdErr

func (mr *MockCLIMockRecorder) RunCommandWithStdOutStdErr(arg0, arg1, arg2, arg3, arg4 interface{}, arg5 ...interface{}) *gomock.Call

RunCommandWithStdOutStdErr indicates an expected call of RunCommandWithStdOutStdErr.

type MockContainerUtils

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

MockContainerUtils is a mock of ContainerUtils interface.

func NewMockContainerUtils

func NewMockContainerUtils(ctrl *gomock.Controller) *MockContainerUtils

NewMockContainerUtils creates a new mock instance.

func (*MockContainerUtils) CreateContainer

func (m *MockContainerUtils) CreateContainer(ctx context.Context, containerName, containerImage string) (containerd.Container, error)

CreateContainer mocks base method.

func (*MockContainerUtils) DestroyContainersInNamespace

func (m *MockContainerUtils) DestroyContainersInNamespace(ctx context.Context, namespace string) error

DestroyContainersInNamespace mocks base method.

func (*MockContainerUtils) DestroyContainersInNamespacesList

func (m *MockContainerUtils) DestroyContainersInNamespacesList(ctx context.Context, namespaces []string) error

DestroyContainersInNamespacesList mocks base method.

func (*MockContainerUtils) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockContainerUtils) EnsureContainerDestroyed

func (m *MockContainerUtils) EnsureContainerDestroyed(arg0 context.Context, arg1, arg2 string) error

EnsureContainerDestroyed mocks base method.

func (*MockContainerUtils) EnsureContainerStoppedOrNonExistent

func (m *MockContainerUtils) EnsureContainerStoppedOrNonExistent(arg0 context.Context, arg1 string) error

EnsureContainerStoppedOrNonExistent mocks base method.

func (*MockContainerUtils) EnsureContainersDestroyed

func (m *MockContainerUtils) EnsureContainersDestroyed(ctx context.Context, containers []containerd.Container, timeoutStr string) error

EnsureContainersDestroyed mocks base method.

func (*MockContainerUtils) EnsureFreshContainerRunning

func (m *MockContainerUtils) EnsureFreshContainerRunning(arg0 context.Context, arg1, arg2 string) error

EnsureFreshContainerRunning mocks base method.

func (*MockContainerUtils) GetContainerWithGivenName

func (m *MockContainerUtils) GetContainerWithGivenName(ctx context.Context, containerName string) (containerd.Container, error)

GetContainerWithGivenName mocks base method.

func (*MockContainerUtils) GetContainersInNamespace

func (m *MockContainerUtils) GetContainersInNamespace(ctx context.Context, namespace string) ([]containerd.Container, error)

GetContainersInNamespace mocks base method.

func (*MockContainerUtils) RemoveContainer

func (m *MockContainerUtils) RemoveContainer(ctx context.Context, container containerd.Container, force bool) error

RemoveContainer mocks base method.

func (*MockContainerUtils) StopContainer

func (m *MockContainerUtils) StopContainer(ctx context.Context, container containerd.Container, timeoutStr string) error

StopContainer mocks base method.

type MockContainerUtilsMockRecorder

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

MockContainerUtilsMockRecorder is the mock recorder for MockContainerUtils.

func (*MockContainerUtilsMockRecorder) CreateContainer

func (mr *MockContainerUtilsMockRecorder) CreateContainer(ctx, containerName, containerImage interface{}) *gomock.Call

CreateContainer indicates an expected call of CreateContainer.

func (*MockContainerUtilsMockRecorder) DestroyContainersInNamespace

func (mr *MockContainerUtilsMockRecorder) DestroyContainersInNamespace(ctx, namespace interface{}) *gomock.Call

DestroyContainersInNamespace indicates an expected call of DestroyContainersInNamespace.

func (*MockContainerUtilsMockRecorder) DestroyContainersInNamespacesList

func (mr *MockContainerUtilsMockRecorder) DestroyContainersInNamespacesList(ctx, namespaces interface{}) *gomock.Call

DestroyContainersInNamespacesList indicates an expected call of DestroyContainersInNamespacesList.

func (*MockContainerUtilsMockRecorder) EnsureContainerDestroyed

func (mr *MockContainerUtilsMockRecorder) EnsureContainerDestroyed(arg0, arg1, arg2 interface{}) *gomock.Call

EnsureContainerDestroyed indicates an expected call of EnsureContainerDestroyed.

func (*MockContainerUtilsMockRecorder) EnsureContainerStoppedOrNonExistent

func (mr *MockContainerUtilsMockRecorder) EnsureContainerStoppedOrNonExistent(arg0, arg1 interface{}) *gomock.Call

EnsureContainerStoppedOrNonExistent indicates an expected call of EnsureContainerStoppedOrNonExistent.

func (*MockContainerUtilsMockRecorder) EnsureContainersDestroyed

func (mr *MockContainerUtilsMockRecorder) EnsureContainersDestroyed(ctx, containers, timeoutStr interface{}) *gomock.Call

EnsureContainersDestroyed indicates an expected call of EnsureContainersDestroyed.

func (*MockContainerUtilsMockRecorder) EnsureFreshContainerRunning

func (mr *MockContainerUtilsMockRecorder) EnsureFreshContainerRunning(arg0, arg1, arg2 interface{}) *gomock.Call

EnsureFreshContainerRunning indicates an expected call of EnsureFreshContainerRunning.

func (*MockContainerUtilsMockRecorder) GetContainerWithGivenName

func (mr *MockContainerUtilsMockRecorder) GetContainerWithGivenName(ctx, containerName interface{}) *gomock.Call

GetContainerWithGivenName indicates an expected call of GetContainerWithGivenName.

func (*MockContainerUtilsMockRecorder) GetContainersInNamespace

func (mr *MockContainerUtilsMockRecorder) GetContainersInNamespace(ctx, namespace interface{}) *gomock.Call

GetContainersInNamespace indicates an expected call of GetContainersInNamespace.

func (*MockContainerUtilsMockRecorder) RemoveContainer

func (mr *MockContainerUtilsMockRecorder) RemoveContainer(ctx, container, force interface{}) *gomock.Call

RemoveContainer indicates an expected call of RemoveContainer.

func (*MockContainerUtilsMockRecorder) StopContainer

func (mr *MockContainerUtilsMockRecorder) StopContainer(ctx, container, timeoutStr interface{}) *gomock.Call

StopContainer indicates an expected call of StopContainer.

type MockExtensionFile

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

MockExtensionFile is a mock of ExtensionFile interface.

func NewMockExtensionFile

func NewMockExtensionFile(ctrl *gomock.Controller) *MockExtensionFile

NewMockExtensionFile creates a new mock instance.

func (*MockExtensionFile) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockExtensionFile) Load

func (m *MockExtensionFile) Load() error

Load mocks base method.

func (*MockExtensionFile) Write

func (m *MockExtensionFile) Write()

Write mocks base method.

type MockExtensionFileMockRecorder

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

MockExtensionFileMockRecorder is the mock recorder for MockExtensionFile.

func (*MockExtensionFileMockRecorder) Load

Load indicates an expected call of Load.

func (*MockExtensionFileMockRecorder) Write

Write indicates an expected call of Write.

type MockFileInterface

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

MockFileInterface is a mock of FileInterface interface.

func NewMockFileInterface

func NewMockFileInterface(ctrl *gomock.Controller) *MockFileInterface

NewMockFileInterface creates a new mock instance.

func (*MockFileInterface) CopyFile

func (m *MockFileInterface) CopyFile(arg0, arg1 string) error

CopyFile mocks base method.

func (*MockFileInterface) DeleteFile

func (m *MockFileInterface) DeleteFile(arg0 string) error

DeleteFile mocks base method.

func (*MockFileInterface) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockFileInterface) Extract

func (m *MockFileInterface) Extract(arg0, arg1 string) error

Extract mocks base method.

func (*MockFileInterface) GenerateChecksum

func (m *MockFileInterface) GenerateChecksum(arg0 string) error

GenerateChecksum mocks base method.

func (*MockFileInterface) GenerateHashForDir

func (m *MockFileInterface) GenerateHashForDir(arg0 string) ([]string, error)

GenerateHashForDir mocks base method.

func (*MockFileInterface) GenerateHashForFile

func (m *MockFileInterface) GenerateHashForFile(arg0 string) (string, error)

GenerateHashForFile mocks base method.

func (*MockFileInterface) GetFileInfo

func (m *MockFileInterface) GetFileInfo(arg0 string) (os.FileInfo, error)

GetFileInfo mocks base method.

func (*MockFileInterface) ListFiles

func (m *MockFileInterface) ListFiles(arg0 string) ([]string, error)

ListFiles mocks base method.

func (*MockFileInterface) ListFilesWithPatterns

func (m *MockFileInterface) ListFilesWithPatterns(arg0 string, arg1 []string) ([]string, error)

ListFilesWithPatterns mocks base method.

func (*MockFileInterface) NewYamlFromTemplateYaml

func (m *MockFileInterface) NewYamlFromTemplateYaml(arg0, arg1 string, arg2 interface{}) error

NewYamlFromTemplateYaml mocks base method.

func (*MockFileInterface) ReadFile

func (m *MockFileInterface) ReadFile(arg0 string) ([]byte, error)

ReadFile mocks base method.

func (*MockFileInterface) ReadFileByLine

func (m *MockFileInterface) ReadFileByLine(arg0 string) ([]string, error)

ReadFileByLine mocks base method.

func (*MockFileInterface) ReadJSONFile

func (m *MockFileInterface) ReadJSONFile(arg0 string, arg1 interface{}) error

ReadJSONFile mocks base method.

func (*MockFileInterface) RenameAndMoveFile

func (m *MockFileInterface) RenameAndMoveFile(arg0, arg1 string) error

RenameAndMoveFile mocks base method.

func (*MockFileInterface) TouchFile

func (m *MockFileInterface) TouchFile(arg0 string) error

TouchFile mocks base method.

func (*MockFileInterface) VerifyChecksum

func (m *MockFileInterface) VerifyChecksum(arg0 string) (bool, error)

VerifyChecksum mocks base method.

func (*MockFileInterface) WriteToFile

func (m *MockFileInterface) WriteToFile(arg0 string, arg1 interface{}, arg2 bool) error

WriteToFile mocks base method.

func (*MockFileInterface) WriteToFileWithBase64Decoding

func (m *MockFileInterface) WriteToFileWithBase64Decoding(arg0, arg1 string) error

WriteToFileWithBase64Decoding mocks base method.

type MockFileInterfaceMockRecorder

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

MockFileInterfaceMockRecorder is the mock recorder for MockFileInterface.

func (*MockFileInterfaceMockRecorder) CopyFile

func (mr *MockFileInterfaceMockRecorder) CopyFile(arg0, arg1 interface{}) *gomock.Call

CopyFile indicates an expected call of CopyFile.

func (*MockFileInterfaceMockRecorder) DeleteFile

func (mr *MockFileInterfaceMockRecorder) DeleteFile(arg0 interface{}) *gomock.Call

DeleteFile indicates an expected call of DeleteFile.

func (*MockFileInterfaceMockRecorder) Extract

func (mr *MockFileInterfaceMockRecorder) Extract(arg0, arg1 interface{}) *gomock.Call

Extract indicates an expected call of Extract.

func (*MockFileInterfaceMockRecorder) GenerateChecksum

func (mr *MockFileInterfaceMockRecorder) GenerateChecksum(arg0 interface{}) *gomock.Call

GenerateChecksum indicates an expected call of GenerateChecksum.

func (*MockFileInterfaceMockRecorder) GenerateHashForDir

func (mr *MockFileInterfaceMockRecorder) GenerateHashForDir(arg0 interface{}) *gomock.Call

GenerateHashForDir indicates an expected call of GenerateHashForDir.

func (*MockFileInterfaceMockRecorder) GenerateHashForFile

func (mr *MockFileInterfaceMockRecorder) GenerateHashForFile(arg0 interface{}) *gomock.Call

GenerateHashForFile indicates an expected call of GenerateHashForFile.

func (*MockFileInterfaceMockRecorder) GetFileInfo

func (mr *MockFileInterfaceMockRecorder) GetFileInfo(arg0 interface{}) *gomock.Call

GetFileInfo indicates an expected call of GetFileInfo.

func (*MockFileInterfaceMockRecorder) ListFiles

func (mr *MockFileInterfaceMockRecorder) ListFiles(arg0 interface{}) *gomock.Call

ListFiles indicates an expected call of ListFiles.

func (*MockFileInterfaceMockRecorder) ListFilesWithPatterns

func (mr *MockFileInterfaceMockRecorder) ListFilesWithPatterns(arg0, arg1 interface{}) *gomock.Call

ListFilesWithPatterns indicates an expected call of ListFilesWithPatterns.

func (*MockFileInterfaceMockRecorder) NewYamlFromTemplateYaml

func (mr *MockFileInterfaceMockRecorder) NewYamlFromTemplateYaml(arg0, arg1, arg2 interface{}) *gomock.Call

NewYamlFromTemplateYaml indicates an expected call of NewYamlFromTemplateYaml.

func (*MockFileInterfaceMockRecorder) ReadFile

func (mr *MockFileInterfaceMockRecorder) ReadFile(arg0 interface{}) *gomock.Call

ReadFile indicates an expected call of ReadFile.

func (*MockFileInterfaceMockRecorder) ReadFileByLine

func (mr *MockFileInterfaceMockRecorder) ReadFileByLine(arg0 interface{}) *gomock.Call

ReadFileByLine indicates an expected call of ReadFileByLine.

func (*MockFileInterfaceMockRecorder) ReadJSONFile

func (mr *MockFileInterfaceMockRecorder) ReadJSONFile(arg0, arg1 interface{}) *gomock.Call

ReadJSONFile indicates an expected call of ReadJSONFile.

func (*MockFileInterfaceMockRecorder) RenameAndMoveFile

func (mr *MockFileInterfaceMockRecorder) RenameAndMoveFile(arg0, arg1 interface{}) *gomock.Call

RenameAndMoveFile indicates an expected call of RenameAndMoveFile.

func (*MockFileInterfaceMockRecorder) TouchFile

func (mr *MockFileInterfaceMockRecorder) TouchFile(arg0 interface{}) *gomock.Call

TouchFile indicates an expected call of TouchFile.

func (*MockFileInterfaceMockRecorder) VerifyChecksum

func (mr *MockFileInterfaceMockRecorder) VerifyChecksum(arg0 interface{}) *gomock.Call

VerifyChecksum indicates an expected call of VerifyChecksum.

func (*MockFileInterfaceMockRecorder) WriteToFile

func (mr *MockFileInterfaceMockRecorder) WriteToFile(arg0, arg1, arg2 interface{}) *gomock.Call

WriteToFile indicates an expected call of WriteToFile.

func (*MockFileInterfaceMockRecorder) WriteToFileWithBase64Decoding

func (mr *MockFileInterfaceMockRecorder) WriteToFileWithBase64Decoding(arg0, arg1 interface{}) *gomock.Call

WriteToFileWithBase64Decoding indicates an expected call of WriteToFileWithBase64Decoding.

type MockImageUtils

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

MockImageUtils is a mock of ImageUtils interface.

func NewMockImageUtils

func NewMockImageUtils(ctrl *gomock.Controller) *MockImageUtils

NewMockImageUtils creates a new mock instance.

func (*MockImageUtils) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockImageUtils) LoadImagesFromDir

func (m *MockImageUtils) LoadImagesFromDir(arg0 context.Context, arg1, arg2 string) error

LoadImagesFromDir mocks base method.

func (*MockImageUtils) LoadImagesFromFile

func (m *MockImageUtils) LoadImagesFromFile(arg0 context.Context, arg1 string) error

LoadImagesFromFile mocks base method.

type MockImageUtilsMockRecorder

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

MockImageUtilsMockRecorder is the mock recorder for MockImageUtils.

func (*MockImageUtilsMockRecorder) LoadImagesFromDir

func (mr *MockImageUtilsMockRecorder) LoadImagesFromDir(arg0, arg1, arg2 interface{}) *gomock.Call

LoadImagesFromDir indicates an expected call of LoadImagesFromDir.

func (*MockImageUtilsMockRecorder) LoadImagesFromFile

func (mr *MockImageUtilsMockRecorder) LoadImagesFromFile(arg0, arg1 interface{}) *gomock.Call

LoadImagesFromFile indicates an expected call of LoadImagesFromFile.

type MockKubeletUtilsInterface

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

MockKubeletUtilsInterface is a mock of KubeletUtilsInterface interface.

func NewMockKubeletUtilsInterface

func NewMockKubeletUtilsInterface(ctrl *gomock.Controller) *MockKubeletUtilsInterface

NewMockKubeletUtilsInterface creates a new mock instance.

func (*MockKubeletUtilsInterface) ConfigureKubeletHttpProxy

func (m *MockKubeletUtilsInterface) ConfigureKubeletHttpProxy()

ConfigureKubeletHttpProxy mocks base method.

func (*MockKubeletUtilsInterface) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockKubeletUtilsInterface) EnsureDirReadableByPf9

func (m *MockKubeletUtilsInterface) EnsureDirReadableByPf9(arg0 string) error

EnsureDirReadableByPf9 mocks base method.

func (*MockKubeletUtilsInterface) EnsureKubeletRunning

func (m *MockKubeletUtilsInterface) EnsureKubeletRunning(arg0 config.Config) error

EnsureKubeletRunning mocks base method.

func (*MockKubeletUtilsInterface) EnsureKubeletStopped

func (m *MockKubeletUtilsInterface) EnsureKubeletStopped() error

EnsureKubeletStopped mocks base method.

func (*MockKubeletUtilsInterface) FetchAwsAz

func (m *MockKubeletUtilsInterface) FetchAwsAz() (string, error)

FetchAwsAz mocks base method.

func (*MockKubeletUtilsInterface) FetchAwsInstanceId

func (m *MockKubeletUtilsInterface) FetchAwsInstanceId() (string, error)

FetchAwsInstanceId mocks base method.

func (*MockKubeletUtilsInterface) GenerateKubeletSystemdUnit

func (m *MockKubeletUtilsInterface) GenerateKubeletSystemdUnit(arg0 string) error

GenerateKubeletSystemdUnit mocks base method.

func (*MockKubeletUtilsInterface) IsKubeletRunning

func (m *MockKubeletUtilsInterface) IsKubeletRunning() bool

IsKubeletRunning mocks base method.

func (*MockKubeletUtilsInterface) KubeletSetup

func (m *MockKubeletUtilsInterface) KubeletSetup(arg0 string) error

KubeletSetup mocks base method.

func (*MockKubeletUtilsInterface) KubeletStart

func (m *MockKubeletUtilsInterface) KubeletStart() error

KubeletStart mocks base method.

func (*MockKubeletUtilsInterface) KubeletStop

func (m *MockKubeletUtilsInterface) KubeletStop() error

KubeletStop mocks base method.

func (*MockKubeletUtilsInterface) PrepareKubeletBootstrapConfig

func (m *MockKubeletUtilsInterface) PrepareKubeletBootstrapConfig(cfg config.Config) error

PrepareKubeletBootstrapConfig mocks base method.

func (*MockKubeletUtilsInterface) TrimSans

func (m *MockKubeletUtilsInterface) TrimSans(arg0 string) string

TrimSans mocks base method.

type MockKubeletUtilsInterfaceMockRecorder

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

MockKubeletUtilsInterfaceMockRecorder is the mock recorder for MockKubeletUtilsInterface.

func (*MockKubeletUtilsInterfaceMockRecorder) ConfigureKubeletHttpProxy

func (mr *MockKubeletUtilsInterfaceMockRecorder) ConfigureKubeletHttpProxy() *gomock.Call

ConfigureKubeletHttpProxy indicates an expected call of ConfigureKubeletHttpProxy.

func (*MockKubeletUtilsInterfaceMockRecorder) EnsureDirReadableByPf9

func (mr *MockKubeletUtilsInterfaceMockRecorder) EnsureDirReadableByPf9(arg0 interface{}) *gomock.Call

EnsureDirReadableByPf9 indicates an expected call of EnsureDirReadableByPf9.

func (*MockKubeletUtilsInterfaceMockRecorder) EnsureKubeletRunning

func (mr *MockKubeletUtilsInterfaceMockRecorder) EnsureKubeletRunning(arg0 interface{}) *gomock.Call

EnsureKubeletRunning indicates an expected call of EnsureKubeletRunning.

func (*MockKubeletUtilsInterfaceMockRecorder) EnsureKubeletStopped

func (mr *MockKubeletUtilsInterfaceMockRecorder) EnsureKubeletStopped() *gomock.Call

EnsureKubeletStopped indicates an expected call of EnsureKubeletStopped.

func (*MockKubeletUtilsInterfaceMockRecorder) FetchAwsAz

FetchAwsAz indicates an expected call of FetchAwsAz.

func (*MockKubeletUtilsInterfaceMockRecorder) FetchAwsInstanceId

func (mr *MockKubeletUtilsInterfaceMockRecorder) FetchAwsInstanceId() *gomock.Call

FetchAwsInstanceId indicates an expected call of FetchAwsInstanceId.

func (*MockKubeletUtilsInterfaceMockRecorder) GenerateKubeletSystemdUnit

func (mr *MockKubeletUtilsInterfaceMockRecorder) GenerateKubeletSystemdUnit(arg0 interface{}) *gomock.Call

GenerateKubeletSystemdUnit indicates an expected call of GenerateKubeletSystemdUnit.

func (*MockKubeletUtilsInterfaceMockRecorder) IsKubeletRunning

func (mr *MockKubeletUtilsInterfaceMockRecorder) IsKubeletRunning() *gomock.Call

IsKubeletRunning indicates an expected call of IsKubeletRunning.

func (*MockKubeletUtilsInterfaceMockRecorder) KubeletSetup

func (mr *MockKubeletUtilsInterfaceMockRecorder) KubeletSetup(arg0 interface{}) *gomock.Call

KubeletSetup indicates an expected call of KubeletSetup.

func (*MockKubeletUtilsInterfaceMockRecorder) KubeletStart

KubeletStart indicates an expected call of KubeletStart.

func (*MockKubeletUtilsInterfaceMockRecorder) KubeletStop

KubeletStop indicates an expected call of KubeletStop.

func (*MockKubeletUtilsInterfaceMockRecorder) PrepareKubeletBootstrapConfig

func (mr *MockKubeletUtilsInterfaceMockRecorder) PrepareKubeletBootstrapConfig(cfg interface{}) *gomock.Call

PrepareKubeletBootstrapConfig indicates an expected call of PrepareKubeletBootstrapConfig.

func (*MockKubeletUtilsInterfaceMockRecorder) TrimSans

func (mr *MockKubeletUtilsInterfaceMockRecorder) TrimSans(arg0 interface{}) *gomock.Call

TrimSans indicates an expected call of TrimSans.

type MockNetInterface

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

MockNetInterface is a mock of NetInterface interface.

func NewMockNetInterface

func NewMockNetInterface(ctrl *gomock.Controller) *MockNetInterface

NewMockNetInterface creates a new mock instance.

func (*MockNetInterface) AddrConv

func (m *MockNetInterface) AddrConv(arg0 string, arg1 int) (string, error)

AddrConv mocks base method.

func (*MockNetInterface) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockNetInterface) GetHostPrimaryIp

func (m *MockNetInterface) GetHostPrimaryIp(arg0 int) (string, error)

GetHostPrimaryIp mocks base method.

func (*MockNetInterface) GetNodeIP

func (m *MockNetInterface) GetNodeIP(arg0 bool) (string, error)

GetNodeIP mocks base method.

func (*MockNetInterface) GetNodeIdentifier

func (m *MockNetInterface) GetNodeIdentifier(arg0 config.Config) (string, error)

GetNodeIdentifier mocks base method.

func (*MockNetInterface) IpForHttp

func (m *MockNetInterface) IpForHttp(arg0 string) (string, error)

IpForHttp mocks base method.

type MockNetInterfaceMockRecorder

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

MockNetInterfaceMockRecorder is the mock recorder for MockNetInterface.

func (*MockNetInterfaceMockRecorder) AddrConv

func (mr *MockNetInterfaceMockRecorder) AddrConv(arg0, arg1 interface{}) *gomock.Call

AddrConv indicates an expected call of AddrConv.

func (*MockNetInterfaceMockRecorder) GetHostPrimaryIp

func (mr *MockNetInterfaceMockRecorder) GetHostPrimaryIp(arg0 interface{}) *gomock.Call

GetHostPrimaryIp indicates an expected call of GetHostPrimaryIp.

func (*MockNetInterfaceMockRecorder) GetNodeIP

func (mr *MockNetInterfaceMockRecorder) GetNodeIP(arg0 interface{}) *gomock.Call

GetNodeIP indicates an expected call of GetNodeIP.

func (*MockNetInterfaceMockRecorder) GetNodeIdentifier

func (mr *MockNetInterfaceMockRecorder) GetNodeIdentifier(arg0 interface{}) *gomock.Call

GetNodeIdentifier indicates an expected call of GetNodeIdentifier.

func (*MockNetInterfaceMockRecorder) IpForHttp

func (mr *MockNetInterfaceMockRecorder) IpForHttp(arg0 interface{}) *gomock.Call

IpForHttp indicates an expected call of IpForHttp.

type MockPhaseInterface

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

MockPhaseInterface is a mock of PhaseInterface interface.

func NewMockPhaseInterface

func NewMockPhaseInterface(ctrl *gomock.Controller) *MockPhaseInterface

NewMockPhaseInterface creates a new mock instance.

func (*MockPhaseInterface) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockPhaseInterface) GetHostPhase

func (m *MockPhaseInterface) GetHostPhase() v1alpha1.HostPhase

GetHostPhase mocks base method.

func (*MockPhaseInterface) GetOrder

func (m *MockPhaseInterface) GetOrder() int

GetOrder mocks base method.

func (*MockPhaseInterface) GetPhaseName

func (m *MockPhaseInterface) GetPhaseName() string

GetPhaseName mocks base method.

func (*MockPhaseInterface) Start

func (m *MockPhaseInterface) Start(arg0 context.Context, arg1 config.Config) error

Start mocks base method.

func (*MockPhaseInterface) Status

func (m *MockPhaseInterface) Status(arg0 context.Context, arg1 config.Config) error

Status mocks base method.

func (*MockPhaseInterface) Stop

func (m *MockPhaseInterface) Stop(arg0 context.Context, arg1 config.Config) error

Stop mocks base method.

type MockPhaseInterfaceMockRecorder

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

MockPhaseInterfaceMockRecorder is the mock recorder for MockPhaseInterface.

func (*MockPhaseInterfaceMockRecorder) GetHostPhase

func (mr *MockPhaseInterfaceMockRecorder) GetHostPhase() *gomock.Call

GetHostPhase indicates an expected call of GetHostPhase.

func (*MockPhaseInterfaceMockRecorder) GetOrder

func (mr *MockPhaseInterfaceMockRecorder) GetOrder() *gomock.Call

GetOrder indicates an expected call of GetOrder.

func (*MockPhaseInterfaceMockRecorder) GetPhaseName

func (mr *MockPhaseInterfaceMockRecorder) GetPhaseName() *gomock.Call

GetPhaseName indicates an expected call of GetPhaseName.

func (*MockPhaseInterfaceMockRecorder) Start

func (mr *MockPhaseInterfaceMockRecorder) Start(arg0, arg1 interface{}) *gomock.Call

Start indicates an expected call of Start.

func (*MockPhaseInterfaceMockRecorder) Status

func (mr *MockPhaseInterfaceMockRecorder) Status(arg0, arg1 interface{}) *gomock.Call

Status indicates an expected call of Status.

func (*MockPhaseInterfaceMockRecorder) Stop

func (mr *MockPhaseInterfaceMockRecorder) Stop(arg0, arg1 interface{}) *gomock.Call

Stop indicates an expected call of Stop.

type MockServiceUtil

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

MockServiceUtil is a mock of ServiceUtil interface.

func NewMockServiceUtil

func NewMockServiceUtil(ctrl *gomock.Controller) *MockServiceUtil

NewMockServiceUtil creates a new mock instance.

func (*MockServiceUtil) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockServiceUtil) RunAction

func (m *MockServiceUtil) RunAction(ctx context.Context, action string) ([]string, error)

RunAction mocks base method.

type MockServiceUtilMockRecorder

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

MockServiceUtilMockRecorder is the mock recorder for MockServiceUtil.

func (*MockServiceUtilMockRecorder) RunAction

func (mr *MockServiceUtilMockRecorder) RunAction(ctx, action interface{}) *gomock.Call

RunAction indicates an expected call of RunAction.

type MockUtils

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

MockUtils is a mock of Utils interface.

func NewMockUtils

func NewMockUtils(ctrl *gomock.Controller) *MockUtils

NewMockUtils creates a new mock instance.

func (*MockUtils) AddAnnotationsToNode

func (m *MockUtils) AddAnnotationsToNode(arg0 context.Context, arg1 string, arg2 map[string]string) error

AddAnnotationsToNode mocks base method.

func (*MockUtils) AddLabelsToNode

func (m *MockUtils) AddLabelsToNode(arg0 context.Context, arg1 string, arg2 map[string]string) error

AddLabelsToNode mocks base method.

func (*MockUtils) AddTaintsToNode

func (m *MockUtils) AddTaintsToNode(arg0 context.Context, arg1 string, arg2 []*v1.Taint) error

AddTaintsToNode mocks base method.

func (*MockUtils) ApplyYamlConfigFiles

func (m *MockUtils) ApplyYamlConfigFiles(arg0 []string) error

ApplyYamlConfigFiles mocks base method.

func (*MockUtils) DrainNodeFromApiServer

func (m *MockUtils) DrainNodeFromApiServer(arg0 context.Context, arg1 string) error

DrainNodeFromApiServer mocks base method.

func (*MockUtils) EXPECT

func (m *MockUtils) EXPECT() *MockUtilsMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockUtils) EnsureAppCatalog

func (m *MockUtils) EnsureAppCatalog() error

EnsureAppCatalog mocks base method.

func (*MockUtils) EnsureDns

func (m *MockUtils) EnsureDns(arg0 config.Config) error

EnsureDns mocks base method.

func (*MockUtils) GetNodeFromK8sApi

func (m *MockUtils) GetNodeFromK8sApi(arg0 context.Context, arg1 string) (*v1.Node, error)

GetNodeFromK8sApi mocks base method.

func (*MockUtils) IsInterfaceNil

func (m *MockUtils) IsInterfaceNil() bool

IsInterfaceNil mocks base method.

func (*MockUtils) K8sApiAvailable

func (m *MockUtils) K8sApiAvailable(arg0 config.Config) error

K8sApiAvailable mocks base method.

func (*MockUtils) PreventAutoReattach

func (m *MockUtils) PreventAutoReattach() error

PreventAutoReattach mocks base method.

func (*MockUtils) RemoveAnnotationsFromNode

func (m *MockUtils) RemoveAnnotationsFromNode(arg0 context.Context, arg1 string, arg2 []string) error

RemoveAnnotationsFromNode mocks base method.

func (*MockUtils) UncordonNode

func (m *MockUtils) UncordonNode(arg0 context.Context, arg1 string) error

UncordonNode mocks base method.

func (*MockUtils) WriteCloudProviderConfig

func (m *MockUtils) WriteCloudProviderConfig(arg0 config.Config) error

WriteCloudProviderConfig mocks base method.

type MockUtilsMockRecorder

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

MockUtilsMockRecorder is the mock recorder for MockUtils.

func (*MockUtilsMockRecorder) AddAnnotationsToNode

func (mr *MockUtilsMockRecorder) AddAnnotationsToNode(arg0, arg1, arg2 interface{}) *gomock.Call

AddAnnotationsToNode indicates an expected call of AddAnnotationsToNode.

func (*MockUtilsMockRecorder) AddLabelsToNode

func (mr *MockUtilsMockRecorder) AddLabelsToNode(arg0, arg1, arg2 interface{}) *gomock.Call

AddLabelsToNode indicates an expected call of AddLabelsToNode.

func (*MockUtilsMockRecorder) AddTaintsToNode

func (mr *MockUtilsMockRecorder) AddTaintsToNode(arg0, arg1, arg2 interface{}) *gomock.Call

AddTaintsToNode indicates an expected call of AddTaintsToNode.

func (*MockUtilsMockRecorder) ApplyYamlConfigFiles

func (mr *MockUtilsMockRecorder) ApplyYamlConfigFiles(arg0 interface{}) *gomock.Call

ApplyYamlConfigFiles indicates an expected call of ApplyYamlConfigFiles.

func (*MockUtilsMockRecorder) DrainNodeFromApiServer

func (mr *MockUtilsMockRecorder) DrainNodeFromApiServer(arg0, arg1 interface{}) *gomock.Call

DrainNodeFromApiServer indicates an expected call of DrainNodeFromApiServer.

func (*MockUtilsMockRecorder) EnsureAppCatalog

func (mr *MockUtilsMockRecorder) EnsureAppCatalog() *gomock.Call

EnsureAppCatalog indicates an expected call of EnsureAppCatalog.

func (*MockUtilsMockRecorder) EnsureDns

func (mr *MockUtilsMockRecorder) EnsureDns(arg0 interface{}) *gomock.Call

EnsureDns indicates an expected call of EnsureDns.

func (*MockUtilsMockRecorder) GetNodeFromK8sApi

func (mr *MockUtilsMockRecorder) GetNodeFromK8sApi(arg0, arg1 interface{}) *gomock.Call

GetNodeFromK8sApi indicates an expected call of GetNodeFromK8sApi.

func (*MockUtilsMockRecorder) IsInterfaceNil

func (mr *MockUtilsMockRecorder) IsInterfaceNil() *gomock.Call

IsInterfaceNil indicates an expected call of IsInterfaceNil.

func (*MockUtilsMockRecorder) K8sApiAvailable

func (mr *MockUtilsMockRecorder) K8sApiAvailable(arg0 interface{}) *gomock.Call

K8sApiAvailable indicates an expected call of K8sApiAvailable.

func (*MockUtilsMockRecorder) PreventAutoReattach

func (mr *MockUtilsMockRecorder) PreventAutoReattach() *gomock.Call

PreventAutoReattach indicates an expected call of PreventAutoReattach.

func (*MockUtilsMockRecorder) RemoveAnnotationsFromNode

func (mr *MockUtilsMockRecorder) RemoveAnnotationsFromNode(arg0, arg1, arg2 interface{}) *gomock.Call

RemoveAnnotationsFromNode indicates an expected call of RemoveAnnotationsFromNode.

func (*MockUtilsMockRecorder) UncordonNode

func (mr *MockUtilsMockRecorder) UncordonNode(arg0, arg1 interface{}) *gomock.Call

UncordonNode indicates an expected call of UncordonNode.

func (*MockUtilsMockRecorder) WriteCloudProviderConfig

func (mr *MockUtilsMockRecorder) WriteCloudProviderConfig(arg0 interface{}) *gomock.Call

WriteCloudProviderConfig indicates an expected call of WriteCloudProviderConfig.

Jump to

Keyboard shortcuts

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