Documentation ¶
Overview ¶
Package mock_cluster is a generated GoMock package.
Package mock_cluster is a generated GoMock package.
Index ¶
- type MockHasher
- type MockHasherMockRecorder
- type MockUpgrader
- func (m *MockUpgrader) BackupCluster(arg0 context.Context, arg1 string) error
- func (m *MockUpgrader) CreateOrUpdateConfigStorageAccount(arg0 context.Context, arg1 *api.OpenShiftManagedCluster) error
- func (m *MockUpgrader) CreateOrUpdateSyncPod(arg0 context.Context, arg1 *api.OpenShiftManagedCluster) error
- func (m *MockUpgrader) DeleteMaster(arg0 string) error
- func (m *MockUpgrader) DrainAndDeleteWorker(arg0 context.Context, arg1 string) error
- func (m *MockUpgrader) EXPECT() *MockUpgraderMockRecorder
- func (m *MockUpgrader) EnrichCSFromVault(arg0 context.Context, arg1 *api.OpenShiftManagedCluster) error
- func (m *MockUpgrader) EnrichCSStorageAccountKeys(arg0 context.Context, arg1 *api.OpenShiftManagedCluster) error
- func (m *MockUpgrader) EnsureSyncPod(arg0 context.Context, arg1 string, arg2 []byte) error
- func (m *MockUpgrader) EtcdBlobExists(arg0 context.Context, arg1 string) error
- func (m *MockUpgrader) EtcdRestoreDeleteMasterScaleSet(arg0 context.Context, arg1 *api.OpenShiftManagedCluster) *api.PluginError
- func (m *MockUpgrader) EtcdRestoreDeleteMasterScaleSetHashes(arg0 context.Context, arg1 *api.OpenShiftManagedCluster) *api.PluginError
- func (m *MockUpgrader) GetControlPlanePods(arg0 context.Context) ([]v1.Pod, error)
- func (m *MockUpgrader) HealthCheck(arg0 context.Context, arg1 *api.OpenShiftManagedCluster) *api.PluginError
- func (m *MockUpgrader) InitializeUpdateBlob(arg0 *api.OpenShiftManagedCluster, arg1 string) error
- func (m *MockUpgrader) ListVMHostnames(arg0 context.Context, arg1 *api.OpenShiftManagedCluster) ([]string, error)
- func (m *MockUpgrader) Reimage(arg0 context.Context, arg1 *api.OpenShiftManagedCluster, arg2, arg3 string) error
- func (m *MockUpgrader) ResetUpdateBlob(arg0 *api.OpenShiftManagedCluster) error
- func (m *MockUpgrader) RunCommand(arg0 context.Context, arg1 *api.OpenShiftManagedCluster, ...) error
- func (m *MockUpgrader) SortedAgentPoolProfilesForRole(arg0 *api.OpenShiftManagedCluster, arg1 api.AgentPoolProfileRole) []api.AgentPoolProfile
- func (m *MockUpgrader) UpdateMasterAgentPool(arg0 context.Context, arg1 *api.OpenShiftManagedCluster, ...) *api.PluginError
- func (m *MockUpgrader) UpdateWorkerAgentPool(arg0 context.Context, arg1 *api.OpenShiftManagedCluster, ...) *api.PluginError
- func (m *MockUpgrader) WaitForHealthzStatusOk(arg0 context.Context, arg1 *api.OpenShiftManagedCluster) error
- func (m *MockUpgrader) WaitForNodesInAgentPoolProfile(arg0 context.Context, arg1 *api.OpenShiftManagedCluster, ...) error
- func (m *MockUpgrader) WaitForReadyMaster(arg0 context.Context, arg1 string) error
- func (m *MockUpgrader) WaitForReadySyncPod(arg0 context.Context) error
- func (m *MockUpgrader) WaitForReadyWorker(arg0 context.Context, arg1 string) error
- func (m *MockUpgrader) WriteStartupBlobs(arg0 *api.OpenShiftManagedCluster) error
- type MockUpgraderMockRecorder
- func (mr *MockUpgraderMockRecorder) BackupCluster(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockUpgraderMockRecorder) CreateOrUpdateConfigStorageAccount(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockUpgraderMockRecorder) CreateOrUpdateSyncPod(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockUpgraderMockRecorder) DeleteMaster(arg0 interface{}) *gomock.Call
- func (mr *MockUpgraderMockRecorder) DrainAndDeleteWorker(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockUpgraderMockRecorder) EnrichCSFromVault(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockUpgraderMockRecorder) EnrichCSStorageAccountKeys(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockUpgraderMockRecorder) EnsureSyncPod(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockUpgraderMockRecorder) EtcdBlobExists(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockUpgraderMockRecorder) EtcdRestoreDeleteMasterScaleSet(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockUpgraderMockRecorder) EtcdRestoreDeleteMasterScaleSetHashes(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockUpgraderMockRecorder) GetControlPlanePods(arg0 interface{}) *gomock.Call
- func (mr *MockUpgraderMockRecorder) HealthCheck(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockUpgraderMockRecorder) InitializeUpdateBlob(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockUpgraderMockRecorder) ListVMHostnames(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockUpgraderMockRecorder) Reimage(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockUpgraderMockRecorder) ResetUpdateBlob(arg0 interface{}) *gomock.Call
- func (mr *MockUpgraderMockRecorder) RunCommand(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
- func (mr *MockUpgraderMockRecorder) SortedAgentPoolProfilesForRole(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockUpgraderMockRecorder) UpdateMasterAgentPool(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockUpgraderMockRecorder) UpdateWorkerAgentPool(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockUpgraderMockRecorder) WaitForHealthzStatusOk(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockUpgraderMockRecorder) WaitForNodesInAgentPoolProfile(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockUpgraderMockRecorder) WaitForReadyMaster(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockUpgraderMockRecorder) WaitForReadySyncPod(arg0 interface{}) *gomock.Call
- func (mr *MockUpgraderMockRecorder) WaitForReadyWorker(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockUpgraderMockRecorder) WriteStartupBlobs(arg0 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockHasher ¶
type MockHasher struct {
// contains filtered or unexported fields
}
MockHasher is a mock of Hasher interface
func NewMockHasher ¶
func NewMockHasher(ctrl *gomock.Controller) *MockHasher
NewMockHasher creates a new mock instance
func (*MockHasher) EXPECT ¶
func (m *MockHasher) EXPECT() *MockHasherMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockHasher) HashScaleSet ¶
func (m *MockHasher) HashScaleSet(arg0 *api.OpenShiftManagedCluster, arg1 *api.AgentPoolProfile) ([]byte, error)
HashScaleSet mocks base method
func (*MockHasher) HashSyncPod ¶
func (m *MockHasher) HashSyncPod(cs *api.OpenShiftManagedCluster) ([]byte, error)
HashSyncPod mocks base method
type MockHasherMockRecorder ¶
type MockHasherMockRecorder struct {
// contains filtered or unexported fields
}
MockHasherMockRecorder is the mock recorder for MockHasher
func (*MockHasherMockRecorder) HashScaleSet ¶
func (mr *MockHasherMockRecorder) HashScaleSet(arg0, arg1 interface{}) *gomock.Call
HashScaleSet indicates an expected call of HashScaleSet
func (*MockHasherMockRecorder) HashSyncPod ¶
func (mr *MockHasherMockRecorder) HashSyncPod(cs interface{}) *gomock.Call
HashSyncPod indicates an expected call of HashSyncPod
type MockUpgrader ¶
type MockUpgrader struct {
// contains filtered or unexported fields
}
MockUpgrader is a mock of Upgrader interface
func NewMockUpgrader ¶
func NewMockUpgrader(ctrl *gomock.Controller) *MockUpgrader
NewMockUpgrader creates a new mock instance
func (*MockUpgrader) BackupCluster ¶
func (m *MockUpgrader) BackupCluster(arg0 context.Context, arg1 string) error
BackupCluster mocks base method
func (*MockUpgrader) CreateOrUpdateConfigStorageAccount ¶
func (m *MockUpgrader) CreateOrUpdateConfigStorageAccount(arg0 context.Context, arg1 *api.OpenShiftManagedCluster) error
CreateOrUpdateConfigStorageAccount mocks base method
func (*MockUpgrader) CreateOrUpdateSyncPod ¶
func (m *MockUpgrader) CreateOrUpdateSyncPod(arg0 context.Context, arg1 *api.OpenShiftManagedCluster) error
CreateOrUpdateSyncPod mocks base method
func (*MockUpgrader) DeleteMaster ¶
func (m *MockUpgrader) DeleteMaster(arg0 string) error
DeleteMaster mocks base method
func (*MockUpgrader) DrainAndDeleteWorker ¶
func (m *MockUpgrader) DrainAndDeleteWorker(arg0 context.Context, arg1 string) error
DrainAndDeleteWorker mocks base method
func (*MockUpgrader) EXPECT ¶
func (m *MockUpgrader) EXPECT() *MockUpgraderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockUpgrader) EnrichCSFromVault ¶
func (m *MockUpgrader) EnrichCSFromVault(arg0 context.Context, arg1 *api.OpenShiftManagedCluster) error
EnrichCSFromVault mocks base method
func (*MockUpgrader) EnrichCSStorageAccountKeys ¶
func (m *MockUpgrader) EnrichCSStorageAccountKeys(arg0 context.Context, arg1 *api.OpenShiftManagedCluster) error
EnrichCSStorageAccountKeys mocks base method
func (*MockUpgrader) EnsureSyncPod ¶
EnsureSyncPod mocks base method
func (*MockUpgrader) EtcdBlobExists ¶
func (m *MockUpgrader) EtcdBlobExists(arg0 context.Context, arg1 string) error
EtcdBlobExists mocks base method
func (*MockUpgrader) EtcdRestoreDeleteMasterScaleSet ¶
func (m *MockUpgrader) EtcdRestoreDeleteMasterScaleSet(arg0 context.Context, arg1 *api.OpenShiftManagedCluster) *api.PluginError
EtcdRestoreDeleteMasterScaleSet mocks base method
func (*MockUpgrader) EtcdRestoreDeleteMasterScaleSetHashes ¶
func (m *MockUpgrader) EtcdRestoreDeleteMasterScaleSetHashes(arg0 context.Context, arg1 *api.OpenShiftManagedCluster) *api.PluginError
EtcdRestoreDeleteMasterScaleSetHashes mocks base method
func (*MockUpgrader) GetControlPlanePods ¶
GetControlPlanePods mocks base method
func (*MockUpgrader) HealthCheck ¶
func (m *MockUpgrader) HealthCheck(arg0 context.Context, arg1 *api.OpenShiftManagedCluster) *api.PluginError
HealthCheck mocks base method
func (*MockUpgrader) InitializeUpdateBlob ¶
func (m *MockUpgrader) InitializeUpdateBlob(arg0 *api.OpenShiftManagedCluster, arg1 string) error
InitializeUpdateBlob mocks base method
func (*MockUpgrader) ListVMHostnames ¶
func (m *MockUpgrader) ListVMHostnames(arg0 context.Context, arg1 *api.OpenShiftManagedCluster) ([]string, error)
ListVMHostnames mocks base method
func (*MockUpgrader) Reimage ¶
func (m *MockUpgrader) Reimage(arg0 context.Context, arg1 *api.OpenShiftManagedCluster, arg2, arg3 string) error
Reimage mocks base method
func (*MockUpgrader) ResetUpdateBlob ¶
func (m *MockUpgrader) ResetUpdateBlob(arg0 *api.OpenShiftManagedCluster) error
ResetUpdateBlob mocks base method
func (*MockUpgrader) RunCommand ¶
func (m *MockUpgrader) RunCommand(arg0 context.Context, arg1 *api.OpenShiftManagedCluster, arg2, arg3, arg4 string) error
RunCommand mocks base method
func (*MockUpgrader) SortedAgentPoolProfilesForRole ¶
func (m *MockUpgrader) SortedAgentPoolProfilesForRole(arg0 *api.OpenShiftManagedCluster, arg1 api.AgentPoolProfileRole) []api.AgentPoolProfile
SortedAgentPoolProfilesForRole mocks base method
func (*MockUpgrader) UpdateMasterAgentPool ¶
func (m *MockUpgrader) UpdateMasterAgentPool(arg0 context.Context, arg1 *api.OpenShiftManagedCluster, arg2 *api.AgentPoolProfile) *api.PluginError
UpdateMasterAgentPool mocks base method
func (*MockUpgrader) UpdateWorkerAgentPool ¶
func (m *MockUpgrader) UpdateWorkerAgentPool(arg0 context.Context, arg1 *api.OpenShiftManagedCluster, arg2 *api.AgentPoolProfile, arg3 string) *api.PluginError
UpdateWorkerAgentPool mocks base method
func (*MockUpgrader) WaitForHealthzStatusOk ¶
func (m *MockUpgrader) WaitForHealthzStatusOk(arg0 context.Context, arg1 *api.OpenShiftManagedCluster) error
WaitForHealthzStatusOk mocks base method
func (*MockUpgrader) WaitForNodesInAgentPoolProfile ¶
func (m *MockUpgrader) WaitForNodesInAgentPoolProfile(arg0 context.Context, arg1 *api.OpenShiftManagedCluster, arg2 *api.AgentPoolProfile, arg3 string) error
WaitForNodesInAgentPoolProfile mocks base method
func (*MockUpgrader) WaitForReadyMaster ¶
func (m *MockUpgrader) WaitForReadyMaster(arg0 context.Context, arg1 string) error
WaitForReadyMaster mocks base method
func (*MockUpgrader) WaitForReadySyncPod ¶
func (m *MockUpgrader) WaitForReadySyncPod(arg0 context.Context) error
WaitForReadySyncPod mocks base method
func (*MockUpgrader) WaitForReadyWorker ¶
func (m *MockUpgrader) WaitForReadyWorker(arg0 context.Context, arg1 string) error
WaitForReadyWorker mocks base method
func (*MockUpgrader) WriteStartupBlobs ¶
func (m *MockUpgrader) WriteStartupBlobs(arg0 *api.OpenShiftManagedCluster) error
WriteStartupBlobs mocks base method
type MockUpgraderMockRecorder ¶
type MockUpgraderMockRecorder struct {
// contains filtered or unexported fields
}
MockUpgraderMockRecorder is the mock recorder for MockUpgrader
func (*MockUpgraderMockRecorder) BackupCluster ¶
func (mr *MockUpgraderMockRecorder) BackupCluster(arg0, arg1 interface{}) *gomock.Call
BackupCluster indicates an expected call of BackupCluster
func (*MockUpgraderMockRecorder) CreateOrUpdateConfigStorageAccount ¶
func (mr *MockUpgraderMockRecorder) CreateOrUpdateConfigStorageAccount(arg0, arg1 interface{}) *gomock.Call
CreateOrUpdateConfigStorageAccount indicates an expected call of CreateOrUpdateConfigStorageAccount
func (*MockUpgraderMockRecorder) CreateOrUpdateSyncPod ¶
func (mr *MockUpgraderMockRecorder) CreateOrUpdateSyncPod(arg0, arg1 interface{}) *gomock.Call
CreateOrUpdateSyncPod indicates an expected call of CreateOrUpdateSyncPod
func (*MockUpgraderMockRecorder) DeleteMaster ¶
func (mr *MockUpgraderMockRecorder) DeleteMaster(arg0 interface{}) *gomock.Call
DeleteMaster indicates an expected call of DeleteMaster
func (*MockUpgraderMockRecorder) DrainAndDeleteWorker ¶
func (mr *MockUpgraderMockRecorder) DrainAndDeleteWorker(arg0, arg1 interface{}) *gomock.Call
DrainAndDeleteWorker indicates an expected call of DrainAndDeleteWorker
func (*MockUpgraderMockRecorder) EnrichCSFromVault ¶
func (mr *MockUpgraderMockRecorder) EnrichCSFromVault(arg0, arg1 interface{}) *gomock.Call
EnrichCSFromVault indicates an expected call of EnrichCSFromVault
func (*MockUpgraderMockRecorder) EnrichCSStorageAccountKeys ¶
func (mr *MockUpgraderMockRecorder) EnrichCSStorageAccountKeys(arg0, arg1 interface{}) *gomock.Call
EnrichCSStorageAccountKeys indicates an expected call of EnrichCSStorageAccountKeys
func (*MockUpgraderMockRecorder) EnsureSyncPod ¶
func (mr *MockUpgraderMockRecorder) EnsureSyncPod(arg0, arg1, arg2 interface{}) *gomock.Call
EnsureSyncPod indicates an expected call of EnsureSyncPod
func (*MockUpgraderMockRecorder) EtcdBlobExists ¶
func (mr *MockUpgraderMockRecorder) EtcdBlobExists(arg0, arg1 interface{}) *gomock.Call
EtcdBlobExists indicates an expected call of EtcdBlobExists
func (*MockUpgraderMockRecorder) EtcdRestoreDeleteMasterScaleSet ¶
func (mr *MockUpgraderMockRecorder) EtcdRestoreDeleteMasterScaleSet(arg0, arg1 interface{}) *gomock.Call
EtcdRestoreDeleteMasterScaleSet indicates an expected call of EtcdRestoreDeleteMasterScaleSet
func (*MockUpgraderMockRecorder) EtcdRestoreDeleteMasterScaleSetHashes ¶
func (mr *MockUpgraderMockRecorder) EtcdRestoreDeleteMasterScaleSetHashes(arg0, arg1 interface{}) *gomock.Call
EtcdRestoreDeleteMasterScaleSetHashes indicates an expected call of EtcdRestoreDeleteMasterScaleSetHashes
func (*MockUpgraderMockRecorder) GetControlPlanePods ¶
func (mr *MockUpgraderMockRecorder) GetControlPlanePods(arg0 interface{}) *gomock.Call
GetControlPlanePods indicates an expected call of GetControlPlanePods
func (*MockUpgraderMockRecorder) HealthCheck ¶
func (mr *MockUpgraderMockRecorder) HealthCheck(arg0, arg1 interface{}) *gomock.Call
HealthCheck indicates an expected call of HealthCheck
func (*MockUpgraderMockRecorder) InitializeUpdateBlob ¶
func (mr *MockUpgraderMockRecorder) InitializeUpdateBlob(arg0, arg1 interface{}) *gomock.Call
InitializeUpdateBlob indicates an expected call of InitializeUpdateBlob
func (*MockUpgraderMockRecorder) ListVMHostnames ¶
func (mr *MockUpgraderMockRecorder) ListVMHostnames(arg0, arg1 interface{}) *gomock.Call
ListVMHostnames indicates an expected call of ListVMHostnames
func (*MockUpgraderMockRecorder) Reimage ¶
func (mr *MockUpgraderMockRecorder) Reimage(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
Reimage indicates an expected call of Reimage
func (*MockUpgraderMockRecorder) ResetUpdateBlob ¶
func (mr *MockUpgraderMockRecorder) ResetUpdateBlob(arg0 interface{}) *gomock.Call
ResetUpdateBlob indicates an expected call of ResetUpdateBlob
func (*MockUpgraderMockRecorder) RunCommand ¶
func (mr *MockUpgraderMockRecorder) RunCommand(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
RunCommand indicates an expected call of RunCommand
func (*MockUpgraderMockRecorder) SortedAgentPoolProfilesForRole ¶
func (mr *MockUpgraderMockRecorder) SortedAgentPoolProfilesForRole(arg0, arg1 interface{}) *gomock.Call
SortedAgentPoolProfilesForRole indicates an expected call of SortedAgentPoolProfilesForRole
func (*MockUpgraderMockRecorder) UpdateMasterAgentPool ¶
func (mr *MockUpgraderMockRecorder) UpdateMasterAgentPool(arg0, arg1, arg2 interface{}) *gomock.Call
UpdateMasterAgentPool indicates an expected call of UpdateMasterAgentPool
func (*MockUpgraderMockRecorder) UpdateWorkerAgentPool ¶
func (mr *MockUpgraderMockRecorder) UpdateWorkerAgentPool(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
UpdateWorkerAgentPool indicates an expected call of UpdateWorkerAgentPool
func (*MockUpgraderMockRecorder) WaitForHealthzStatusOk ¶
func (mr *MockUpgraderMockRecorder) WaitForHealthzStatusOk(arg0, arg1 interface{}) *gomock.Call
WaitForHealthzStatusOk indicates an expected call of WaitForHealthzStatusOk
func (*MockUpgraderMockRecorder) WaitForNodesInAgentPoolProfile ¶
func (mr *MockUpgraderMockRecorder) WaitForNodesInAgentPoolProfile(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
WaitForNodesInAgentPoolProfile indicates an expected call of WaitForNodesInAgentPoolProfile
func (*MockUpgraderMockRecorder) WaitForReadyMaster ¶
func (mr *MockUpgraderMockRecorder) WaitForReadyMaster(arg0, arg1 interface{}) *gomock.Call
WaitForReadyMaster indicates an expected call of WaitForReadyMaster
func (*MockUpgraderMockRecorder) WaitForReadySyncPod ¶
func (mr *MockUpgraderMockRecorder) WaitForReadySyncPod(arg0 interface{}) *gomock.Call
WaitForReadySyncPod indicates an expected call of WaitForReadySyncPod
func (*MockUpgraderMockRecorder) WaitForReadyWorker ¶
func (mr *MockUpgraderMockRecorder) WaitForReadyWorker(arg0, arg1 interface{}) *gomock.Call
WaitForReadyWorker indicates an expected call of WaitForReadyWorker
func (*MockUpgraderMockRecorder) WriteStartupBlobs ¶
func (mr *MockUpgraderMockRecorder) WriteStartupBlobs(arg0 interface{}) *gomock.Call
WriteStartupBlobs indicates an expected call of WriteStartupBlobs