mocks

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: May 11, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

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 MockProviderKubectlClient

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

MockProviderKubectlClient is a mock of ProviderKubectlClient interface.

func NewMockProviderKubectlClient

func NewMockProviderKubectlClient(ctrl *gomock.Controller) *MockProviderKubectlClient

NewMockProviderKubectlClient creates a new mock instance.

func (*MockProviderKubectlClient) ApplyKubeSpec added in v0.9.0

func (m *MockProviderKubectlClient) ApplyKubeSpec(arg0 context.Context, arg1 *types.Cluster, arg2 string) error

ApplyKubeSpec mocks base method.

func (*MockProviderKubectlClient) ApplyKubeSpecFromBytesForce added in v0.9.0

func (m *MockProviderKubectlClient) ApplyKubeSpecFromBytesForce(arg0 context.Context, arg1 *types.Cluster, arg2 []byte) error

ApplyKubeSpecFromBytesForce mocks base method.

func (*MockProviderKubectlClient) DeleteEksaDatacenterConfig

func (m *MockProviderKubectlClient) DeleteEksaDatacenterConfig(arg0 context.Context, arg1, arg2, arg3, arg4 string) error

DeleteEksaDatacenterConfig mocks base method.

func (*MockProviderKubectlClient) DeleteEksaMachineConfig

func (m *MockProviderKubectlClient) DeleteEksaMachineConfig(arg0 context.Context, arg1, arg2, arg3, arg4 string) error

DeleteEksaMachineConfig mocks base method.

func (*MockProviderKubectlClient) EXPECT

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

func (*MockProviderKubectlClient) GetBmcsPowerState added in v0.9.0

func (m *MockProviderKubectlClient) GetBmcsPowerState(arg0 context.Context, arg1 []string, arg2, arg3 string) ([]string, error)

GetBmcsPowerState mocks base method.

func (*MockProviderKubectlClient) GetEksaCluster added in v0.9.0

func (m *MockProviderKubectlClient) GetEksaCluster(arg0 context.Context, arg1 *types.Cluster, arg2 string) (*v1alpha1.Cluster, error)

GetEksaCluster mocks base method.

func (*MockProviderKubectlClient) GetEksaTinkerbellDatacenterConfig added in v0.9.0

func (m *MockProviderKubectlClient) GetEksaTinkerbellDatacenterConfig(arg0 context.Context, arg1, arg2, arg3 string) (*v1alpha1.TinkerbellDatacenterConfig, error)

GetEksaTinkerbellDatacenterConfig mocks base method.

func (*MockProviderKubectlClient) GetEksaTinkerbellMachineConfig added in v0.9.0

func (m *MockProviderKubectlClient) GetEksaTinkerbellMachineConfig(arg0 context.Context, arg1, arg2, arg3 string) (*v1alpha1.TinkerbellMachineConfig, error)

GetEksaTinkerbellMachineConfig mocks base method.

func (*MockProviderKubectlClient) GetEtcdadmCluster added in v0.9.0

func (m *MockProviderKubectlClient) GetEtcdadmCluster(arg0 context.Context, arg1 *types.Cluster, arg2 string, arg3 ...executables.KubectlOpt) (*v1beta1.EtcdadmCluster, error)

GetEtcdadmCluster mocks base method.

func (*MockProviderKubectlClient) GetHardwareWithLabel added in v0.9.0

func (m *MockProviderKubectlClient) GetHardwareWithLabel(arg0 context.Context, arg1, arg2, arg3 string) ([]v1alpha10.Hardware, error)

GetHardwareWithLabel mocks base method.

func (*MockProviderKubectlClient) GetKubeadmControlPlane added in v0.9.0

func (m *MockProviderKubectlClient) GetKubeadmControlPlane(arg0 context.Context, arg1 *types.Cluster, arg2 string, arg3 ...executables.KubectlOpt) (*v1beta11.KubeadmControlPlane, error)

GetKubeadmControlPlane mocks base method.

func (*MockProviderKubectlClient) GetMachineDeployment added in v0.7.1

func (m *MockProviderKubectlClient) GetMachineDeployment(arg0 context.Context, arg1 string, arg2 ...executables.KubectlOpt) (*v1beta10.MachineDeployment, error)

GetMachineDeployment mocks base method.

func (*MockProviderKubectlClient) GetSecret added in v0.9.0

func (m *MockProviderKubectlClient) GetSecret(arg0 context.Context, arg1 string, arg2 ...executables.KubectlOpt) (*v10.Secret, error)

GetSecret mocks base method.

func (*MockProviderKubectlClient) UpdateAnnotation added in v0.9.0

func (m *MockProviderKubectlClient) UpdateAnnotation(arg0 context.Context, arg1, arg2 string, arg3 map[string]string, arg4 ...executables.KubectlOpt) error

UpdateAnnotation mocks base method.

func (*MockProviderKubectlClient) WaitForDeployment added in v0.9.0

func (m *MockProviderKubectlClient) WaitForDeployment(arg0 context.Context, arg1 *types.Cluster, arg2, arg3, arg4, arg5 string) error

WaitForDeployment mocks base method.

type MockProviderKubectlClientMockRecorder

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

MockProviderKubectlClientMockRecorder is the mock recorder for MockProviderKubectlClient.

func (*MockProviderKubectlClientMockRecorder) ApplyKubeSpec added in v0.9.0

func (mr *MockProviderKubectlClientMockRecorder) ApplyKubeSpec(arg0, arg1, arg2 interface{}) *gomock.Call

ApplyKubeSpec indicates an expected call of ApplyKubeSpec.

func (*MockProviderKubectlClientMockRecorder) ApplyKubeSpecFromBytesForce added in v0.9.0

func (mr *MockProviderKubectlClientMockRecorder) ApplyKubeSpecFromBytesForce(arg0, arg1, arg2 interface{}) *gomock.Call

ApplyKubeSpecFromBytesForce indicates an expected call of ApplyKubeSpecFromBytesForce.

func (*MockProviderKubectlClientMockRecorder) DeleteEksaDatacenterConfig

func (mr *MockProviderKubectlClientMockRecorder) DeleteEksaDatacenterConfig(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call

DeleteEksaDatacenterConfig indicates an expected call of DeleteEksaDatacenterConfig.

func (*MockProviderKubectlClientMockRecorder) DeleteEksaMachineConfig

func (mr *MockProviderKubectlClientMockRecorder) DeleteEksaMachineConfig(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call

DeleteEksaMachineConfig indicates an expected call of DeleteEksaMachineConfig.

func (*MockProviderKubectlClientMockRecorder) GetBmcsPowerState added in v0.9.0

func (mr *MockProviderKubectlClientMockRecorder) GetBmcsPowerState(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

GetBmcsPowerState indicates an expected call of GetBmcsPowerState.

func (*MockProviderKubectlClientMockRecorder) GetEksaCluster added in v0.9.0

func (mr *MockProviderKubectlClientMockRecorder) GetEksaCluster(arg0, arg1, arg2 interface{}) *gomock.Call

GetEksaCluster indicates an expected call of GetEksaCluster.

func (*MockProviderKubectlClientMockRecorder) GetEksaTinkerbellDatacenterConfig added in v0.9.0

func (mr *MockProviderKubectlClientMockRecorder) GetEksaTinkerbellDatacenterConfig(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

GetEksaTinkerbellDatacenterConfig indicates an expected call of GetEksaTinkerbellDatacenterConfig.

func (*MockProviderKubectlClientMockRecorder) GetEksaTinkerbellMachineConfig added in v0.9.0

func (mr *MockProviderKubectlClientMockRecorder) GetEksaTinkerbellMachineConfig(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

GetEksaTinkerbellMachineConfig indicates an expected call of GetEksaTinkerbellMachineConfig.

func (*MockProviderKubectlClientMockRecorder) GetEtcdadmCluster added in v0.9.0

func (mr *MockProviderKubectlClientMockRecorder) GetEtcdadmCluster(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call

GetEtcdadmCluster indicates an expected call of GetEtcdadmCluster.

func (*MockProviderKubectlClientMockRecorder) GetHardwareWithLabel added in v0.9.0

func (mr *MockProviderKubectlClientMockRecorder) GetHardwareWithLabel(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

GetHardwareWithLabel indicates an expected call of GetHardwareWithLabel.

func (*MockProviderKubectlClientMockRecorder) GetKubeadmControlPlane added in v0.9.0

func (mr *MockProviderKubectlClientMockRecorder) GetKubeadmControlPlane(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call

GetKubeadmControlPlane indicates an expected call of GetKubeadmControlPlane.

func (*MockProviderKubectlClientMockRecorder) GetMachineDeployment added in v0.7.1

func (mr *MockProviderKubectlClientMockRecorder) GetMachineDeployment(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

GetMachineDeployment indicates an expected call of GetMachineDeployment.

func (*MockProviderKubectlClientMockRecorder) GetSecret added in v0.9.0

func (mr *MockProviderKubectlClientMockRecorder) GetSecret(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

GetSecret indicates an expected call of GetSecret.

func (*MockProviderKubectlClientMockRecorder) UpdateAnnotation added in v0.9.0

func (mr *MockProviderKubectlClientMockRecorder) UpdateAnnotation(arg0, arg1, arg2, arg3 interface{}, arg4 ...interface{}) *gomock.Call

UpdateAnnotation indicates an expected call of UpdateAnnotation.

func (*MockProviderKubectlClientMockRecorder) WaitForDeployment added in v0.9.0

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

WaitForDeployment indicates an expected call of WaitForDeployment.

type MockProviderPbnjClient added in v0.8.0

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

MockProviderPbnjClient is a mock of ProviderPbnjClient interface.

func NewMockProviderPbnjClient added in v0.8.0

func NewMockProviderPbnjClient(ctrl *gomock.Controller) *MockProviderPbnjClient

NewMockProviderPbnjClient creates a new mock instance.

func (*MockProviderPbnjClient) EXPECT added in v0.8.0

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

func (*MockProviderPbnjClient) GetPowerState added in v0.8.0

GetPowerState mocks base method.

func (*MockProviderPbnjClient) PowerOff added in v0.9.0

PowerOff mocks base method.

func (*MockProviderPbnjClient) PowerOn added in v0.9.0

PowerOn mocks base method.

func (*MockProviderPbnjClient) SetBootDevice added in v0.9.0

func (m *MockProviderPbnjClient) SetBootDevice(arg0 context.Context, arg1 pbnj.BmcSecretConfig, arg2 v1.BootDevice) error

SetBootDevice mocks base method.

type MockProviderPbnjClientMockRecorder added in v0.8.0

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

MockProviderPbnjClientMockRecorder is the mock recorder for MockProviderPbnjClient.

func (*MockProviderPbnjClientMockRecorder) GetPowerState added in v0.8.0

func (mr *MockProviderPbnjClientMockRecorder) GetPowerState(arg0, arg1 interface{}) *gomock.Call

GetPowerState indicates an expected call of GetPowerState.

func (*MockProviderPbnjClientMockRecorder) PowerOff added in v0.9.0

func (mr *MockProviderPbnjClientMockRecorder) PowerOff(arg0, arg1 interface{}) *gomock.Call

PowerOff indicates an expected call of PowerOff.

func (*MockProviderPbnjClientMockRecorder) PowerOn added in v0.9.0

func (mr *MockProviderPbnjClientMockRecorder) PowerOn(arg0, arg1 interface{}) *gomock.Call

PowerOn indicates an expected call of PowerOn.

func (*MockProviderPbnjClientMockRecorder) SetBootDevice added in v0.9.0

func (mr *MockProviderPbnjClientMockRecorder) SetBootDevice(arg0, arg1, arg2 interface{}) *gomock.Call

SetBootDevice indicates an expected call of SetBootDevice.

type MockProviderTinkClient added in v0.8.0

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

MockProviderTinkClient is a mock of ProviderTinkClient interface.

func NewMockProviderTinkClient added in v0.8.0

func NewMockProviderTinkClient(ctrl *gomock.Controller) *MockProviderTinkClient

NewMockProviderTinkClient creates a new mock instance.

func (*MockProviderTinkClient) DeleteWorkflow added in v0.9.0

func (m *MockProviderTinkClient) DeleteWorkflow(arg0 context.Context, arg1 ...string) error

DeleteWorkflow mocks base method.

func (*MockProviderTinkClient) EXPECT added in v0.8.0

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

func (*MockProviderTinkClient) GetHardware added in v0.8.0

func (m *MockProviderTinkClient) GetHardware(arg0 context.Context) ([]*hardware0.Hardware, error)

GetHardware mocks base method.

func (*MockProviderTinkClient) GetHardwareByUuid added in v0.9.0

func (m *MockProviderTinkClient) GetHardwareByUuid(arg0 context.Context, arg1 string) (*hardware.Hardware, error)

GetHardwareByUuid mocks base method.

func (*MockProviderTinkClient) GetWorkflow added in v0.8.0

func (m *MockProviderTinkClient) GetWorkflow(arg0 context.Context) ([]*workflow.Workflow, error)

GetWorkflow mocks base method.

func (*MockProviderTinkClient) PushHardware added in v0.9.0

func (m *MockProviderTinkClient) PushHardware(arg0 context.Context, arg1 []byte) error

PushHardware mocks base method.

type MockProviderTinkClientMockRecorder added in v0.8.0

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

MockProviderTinkClientMockRecorder is the mock recorder for MockProviderTinkClient.

func (*MockProviderTinkClientMockRecorder) DeleteWorkflow added in v0.9.0

func (mr *MockProviderTinkClientMockRecorder) DeleteWorkflow(arg0 interface{}, arg1 ...interface{}) *gomock.Call

DeleteWorkflow indicates an expected call of DeleteWorkflow.

func (*MockProviderTinkClientMockRecorder) GetHardware added in v0.8.0

func (mr *MockProviderTinkClientMockRecorder) GetHardware(arg0 interface{}) *gomock.Call

GetHardware indicates an expected call of GetHardware.

func (*MockProviderTinkClientMockRecorder) GetHardwareByUuid added in v0.9.0

func (mr *MockProviderTinkClientMockRecorder) GetHardwareByUuid(arg0, arg1 interface{}) *gomock.Call

GetHardwareByUuid indicates an expected call of GetHardwareByUuid.

func (*MockProviderTinkClientMockRecorder) GetWorkflow added in v0.8.0

func (mr *MockProviderTinkClientMockRecorder) GetWorkflow(arg0 interface{}) *gomock.Call

GetWorkflow indicates an expected call of GetWorkflow.

func (*MockProviderTinkClientMockRecorder) PushHardware added in v0.9.0

func (mr *MockProviderTinkClientMockRecorder) PushHardware(arg0, arg1 interface{}) *gomock.Call

PushHardware indicates an expected call of PushHardware.

type MockSSHAuthKeyGenerator added in v0.8.0

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

MockSSHAuthKeyGenerator is a mock of SSHAuthKeyGenerator interface.

func NewMockSSHAuthKeyGenerator added in v0.8.0

func NewMockSSHAuthKeyGenerator(ctrl *gomock.Controller) *MockSSHAuthKeyGenerator

NewMockSSHAuthKeyGenerator creates a new mock instance.

func (*MockSSHAuthKeyGenerator) EXPECT added in v0.8.0

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

func (*MockSSHAuthKeyGenerator) GenerateSSHAuthKey added in v0.8.0

func (m *MockSSHAuthKeyGenerator) GenerateSSHAuthKey(arg0 filewriter.FileWriter) (string, error)

GenerateSSHAuthKey mocks base method.

type MockSSHAuthKeyGeneratorMockRecorder added in v0.8.0

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

MockSSHAuthKeyGeneratorMockRecorder is the mock recorder for MockSSHAuthKeyGenerator.

func (*MockSSHAuthKeyGeneratorMockRecorder) GenerateSSHAuthKey added in v0.8.0

func (mr *MockSSHAuthKeyGeneratorMockRecorder) GenerateSSHAuthKey(arg0 interface{}) *gomock.Call

GenerateSSHAuthKey indicates an expected call of GenerateSSHAuthKey.

Jump to

Keyboard shortcuts

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