Documentation ¶
Overview ¶
Package mock_adminactions is a generated GoMock package.
Index ¶
- type MockAzureActions
- func (m *MockAzureActions) AppLensGetDetector(arg0 context.Context, arg1 string) ([]byte, error)
- func (m *MockAzureActions) AppLensListDetectors(arg0 context.Context) ([]byte, error)
- func (m *MockAzureActions) EXPECT() *MockAzureActionsMockRecorder
- func (m *MockAzureActions) GroupResourceList(arg0 context.Context) ([]features.GenericResourceExpanded, error)
- func (m *MockAzureActions) NICReconcileFailedState(arg0 context.Context, arg1 string) error
- func (m *MockAzureActions) ResourceDeleteAndWait(arg0 context.Context, arg1 string) error
- func (m *MockAzureActions) ResourceGroupHasVM(arg0 context.Context, arg1 string) (bool, error)
- func (m *MockAzureActions) ResourcesList(arg0 context.Context, arg1 []features.GenericResourceExpanded, ...) error
- func (m *MockAzureActions) VMRedeployAndWait(arg0 context.Context, arg1 string) error
- func (m *MockAzureActions) VMResize(arg0 context.Context, arg1, arg2 string) error
- func (m *MockAzureActions) VMSerialConsole(arg0 context.Context, arg1 http.ResponseWriter, arg2 *logrus.Entry, ...) error
- func (m *MockAzureActions) VMSizeList(arg0 context.Context) ([]compute.ResourceSku, error)
- func (m *MockAzureActions) VMStartAndWait(arg0 context.Context, arg1 string) error
- func (m *MockAzureActions) VMStopAndWait(arg0 context.Context, arg1 string, arg2 bool) error
- func (m *MockAzureActions) WriteToStream(arg0 context.Context, arg1 io.WriteCloser) error
- type MockAzureActionsMockRecorder
- func (mr *MockAzureActionsMockRecorder) AppLensGetDetector(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockAzureActionsMockRecorder) AppLensListDetectors(arg0 interface{}) *gomock.Call
- func (mr *MockAzureActionsMockRecorder) GroupResourceList(arg0 interface{}) *gomock.Call
- func (mr *MockAzureActionsMockRecorder) NICReconcileFailedState(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockAzureActionsMockRecorder) ResourceDeleteAndWait(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockAzureActionsMockRecorder) ResourceGroupHasVM(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockAzureActionsMockRecorder) ResourcesList(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockAzureActionsMockRecorder) VMRedeployAndWait(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockAzureActionsMockRecorder) VMResize(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockAzureActionsMockRecorder) VMSerialConsole(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockAzureActionsMockRecorder) VMSizeList(arg0 interface{}) *gomock.Call
- func (mr *MockAzureActionsMockRecorder) VMStartAndWait(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockAzureActionsMockRecorder) VMStopAndWait(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockAzureActionsMockRecorder) WriteToStream(arg0, arg1 interface{}) *gomock.Call
- type MockKubeActions
- func (m *MockKubeActions) ApproveAllCsrs(arg0 context.Context) error
- func (m *MockKubeActions) ApproveCsr(arg0 context.Context, arg1 string) error
- func (m *MockKubeActions) CordonNode(arg0 context.Context, arg1 string, arg2 bool) error
- func (m *MockKubeActions) DrainNode(arg0 context.Context, arg1 string) error
- func (m *MockKubeActions) EXPECT() *MockKubeActionsMockRecorder
- func (m *MockKubeActions) KubeCreateOrUpdate(arg0 context.Context, arg1 *unstructured.Unstructured) error
- func (m *MockKubeActions) KubeDelete(arg0 context.Context, arg1, arg2, arg3 string, arg4 bool, ...) error
- func (m *MockKubeActions) KubeGet(arg0 context.Context, arg1, arg2, arg3 string) ([]byte, error)
- func (m *MockKubeActions) KubeGetPodLogs(arg0 context.Context, arg1, arg2, arg3 string) ([]byte, error)
- func (m *MockKubeActions) KubeList(arg0 context.Context, arg1, arg2 string) ([]byte, error)
- func (m *MockKubeActions) KubeWatch(arg0 context.Context, arg1 *unstructured.Unstructured, arg2 string) (watch.Interface, error)
- func (m *MockKubeActions) ResolveGVR(arg0, arg1 string) (schema.GroupVersionResource, error)
- type MockKubeActionsMockRecorder
- func (mr *MockKubeActionsMockRecorder) ApproveAllCsrs(arg0 interface{}) *gomock.Call
- func (mr *MockKubeActionsMockRecorder) ApproveCsr(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockKubeActionsMockRecorder) CordonNode(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockKubeActionsMockRecorder) DrainNode(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockKubeActionsMockRecorder) KubeCreateOrUpdate(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockKubeActionsMockRecorder) KubeDelete(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call
- func (mr *MockKubeActionsMockRecorder) KubeGet(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockKubeActionsMockRecorder) KubeGetPodLogs(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockKubeActionsMockRecorder) KubeList(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockKubeActionsMockRecorder) KubeWatch(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockKubeActionsMockRecorder) ResolveGVR(arg0, arg1 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAzureActions ¶
type MockAzureActions struct {
// contains filtered or unexported fields
}
MockAzureActions is a mock of AzureActions interface.
func NewMockAzureActions ¶
func NewMockAzureActions(ctrl *gomock.Controller) *MockAzureActions
NewMockAzureActions creates a new mock instance.
func (*MockAzureActions) AppLensGetDetector ¶
AppLensGetDetector mocks base method.
func (*MockAzureActions) AppLensListDetectors ¶
func (m *MockAzureActions) AppLensListDetectors(arg0 context.Context) ([]byte, error)
AppLensListDetectors mocks base method.
func (*MockAzureActions) EXPECT ¶
func (m *MockAzureActions) EXPECT() *MockAzureActionsMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAzureActions) GroupResourceList ¶
func (m *MockAzureActions) GroupResourceList(arg0 context.Context) ([]features.GenericResourceExpanded, error)
GroupResourceList mocks base method.
func (*MockAzureActions) NICReconcileFailedState ¶
func (m *MockAzureActions) NICReconcileFailedState(arg0 context.Context, arg1 string) error
NICReconcileFailedState mocks base method.
func (*MockAzureActions) ResourceDeleteAndWait ¶
func (m *MockAzureActions) ResourceDeleteAndWait(arg0 context.Context, arg1 string) error
ResourceDeleteAndWait mocks base method.
func (*MockAzureActions) ResourceGroupHasVM ¶
ResourceGroupHasVM mocks base method.
func (*MockAzureActions) ResourcesList ¶
func (m *MockAzureActions) ResourcesList(arg0 context.Context, arg1 []features.GenericResourceExpanded, arg2 io.WriteCloser) error
ResourcesList mocks base method.
func (*MockAzureActions) VMRedeployAndWait ¶
func (m *MockAzureActions) VMRedeployAndWait(arg0 context.Context, arg1 string) error
VMRedeployAndWait mocks base method.
func (*MockAzureActions) VMResize ¶
func (m *MockAzureActions) VMResize(arg0 context.Context, arg1, arg2 string) error
VMResize mocks base method.
func (*MockAzureActions) VMSerialConsole ¶
func (m *MockAzureActions) VMSerialConsole(arg0 context.Context, arg1 http.ResponseWriter, arg2 *logrus.Entry, arg3 string) error
VMSerialConsole mocks base method.
func (*MockAzureActions) VMSizeList ¶
func (m *MockAzureActions) VMSizeList(arg0 context.Context) ([]compute.ResourceSku, error)
VMSizeList mocks base method.
func (*MockAzureActions) VMStartAndWait ¶
func (m *MockAzureActions) VMStartAndWait(arg0 context.Context, arg1 string) error
VMStartAndWait mocks base method.
func (*MockAzureActions) VMStopAndWait ¶
VMStopAndWait mocks base method.
func (*MockAzureActions) WriteToStream ¶
func (m *MockAzureActions) WriteToStream(arg0 context.Context, arg1 io.WriteCloser) error
WriteToStream mocks base method.
type MockAzureActionsMockRecorder ¶
type MockAzureActionsMockRecorder struct {
// contains filtered or unexported fields
}
MockAzureActionsMockRecorder is the mock recorder for MockAzureActions.
func (*MockAzureActionsMockRecorder) AppLensGetDetector ¶
func (mr *MockAzureActionsMockRecorder) AppLensGetDetector(arg0, arg1 interface{}) *gomock.Call
AppLensGetDetector indicates an expected call of AppLensGetDetector.
func (*MockAzureActionsMockRecorder) AppLensListDetectors ¶
func (mr *MockAzureActionsMockRecorder) AppLensListDetectors(arg0 interface{}) *gomock.Call
AppLensListDetectors indicates an expected call of AppLensListDetectors.
func (*MockAzureActionsMockRecorder) GroupResourceList ¶
func (mr *MockAzureActionsMockRecorder) GroupResourceList(arg0 interface{}) *gomock.Call
GroupResourceList indicates an expected call of GroupResourceList.
func (*MockAzureActionsMockRecorder) NICReconcileFailedState ¶
func (mr *MockAzureActionsMockRecorder) NICReconcileFailedState(arg0, arg1 interface{}) *gomock.Call
NICReconcileFailedState indicates an expected call of NICReconcileFailedState.
func (*MockAzureActionsMockRecorder) ResourceDeleteAndWait ¶
func (mr *MockAzureActionsMockRecorder) ResourceDeleteAndWait(arg0, arg1 interface{}) *gomock.Call
ResourceDeleteAndWait indicates an expected call of ResourceDeleteAndWait.
func (*MockAzureActionsMockRecorder) ResourceGroupHasVM ¶
func (mr *MockAzureActionsMockRecorder) ResourceGroupHasVM(arg0, arg1 interface{}) *gomock.Call
ResourceGroupHasVM indicates an expected call of ResourceGroupHasVM.
func (*MockAzureActionsMockRecorder) ResourcesList ¶
func (mr *MockAzureActionsMockRecorder) ResourcesList(arg0, arg1, arg2 interface{}) *gomock.Call
ResourcesList indicates an expected call of ResourcesList.
func (*MockAzureActionsMockRecorder) VMRedeployAndWait ¶
func (mr *MockAzureActionsMockRecorder) VMRedeployAndWait(arg0, arg1 interface{}) *gomock.Call
VMRedeployAndWait indicates an expected call of VMRedeployAndWait.
func (*MockAzureActionsMockRecorder) VMResize ¶
func (mr *MockAzureActionsMockRecorder) VMResize(arg0, arg1, arg2 interface{}) *gomock.Call
VMResize indicates an expected call of VMResize.
func (*MockAzureActionsMockRecorder) VMSerialConsole ¶
func (mr *MockAzureActionsMockRecorder) VMSerialConsole(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
VMSerialConsole indicates an expected call of VMSerialConsole.
func (*MockAzureActionsMockRecorder) VMSizeList ¶
func (mr *MockAzureActionsMockRecorder) VMSizeList(arg0 interface{}) *gomock.Call
VMSizeList indicates an expected call of VMSizeList.
func (*MockAzureActionsMockRecorder) VMStartAndWait ¶
func (mr *MockAzureActionsMockRecorder) VMStartAndWait(arg0, arg1 interface{}) *gomock.Call
VMStartAndWait indicates an expected call of VMStartAndWait.
func (*MockAzureActionsMockRecorder) VMStopAndWait ¶
func (mr *MockAzureActionsMockRecorder) VMStopAndWait(arg0, arg1, arg2 interface{}) *gomock.Call
VMStopAndWait indicates an expected call of VMStopAndWait.
func (*MockAzureActionsMockRecorder) WriteToStream ¶
func (mr *MockAzureActionsMockRecorder) WriteToStream(arg0, arg1 interface{}) *gomock.Call
WriteToStream indicates an expected call of WriteToStream.
type MockKubeActions ¶
type MockKubeActions struct {
// contains filtered or unexported fields
}
MockKubeActions is a mock of KubeActions interface.
func NewMockKubeActions ¶
func NewMockKubeActions(ctrl *gomock.Controller) *MockKubeActions
NewMockKubeActions creates a new mock instance.
func (*MockKubeActions) ApproveAllCsrs ¶
func (m *MockKubeActions) ApproveAllCsrs(arg0 context.Context) error
ApproveAllCsrs mocks base method.
func (*MockKubeActions) ApproveCsr ¶
func (m *MockKubeActions) ApproveCsr(arg0 context.Context, arg1 string) error
ApproveCsr mocks base method.
func (*MockKubeActions) CordonNode ¶
CordonNode mocks base method.
func (*MockKubeActions) DrainNode ¶
func (m *MockKubeActions) DrainNode(arg0 context.Context, arg1 string) error
DrainNode mocks base method.
func (*MockKubeActions) EXPECT ¶
func (m *MockKubeActions) EXPECT() *MockKubeActionsMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockKubeActions) KubeCreateOrUpdate ¶
func (m *MockKubeActions) KubeCreateOrUpdate(arg0 context.Context, arg1 *unstructured.Unstructured) error
KubeCreateOrUpdate mocks base method.
func (*MockKubeActions) KubeDelete ¶
func (m *MockKubeActions) KubeDelete(arg0 context.Context, arg1, arg2, arg3 string, arg4 bool, arg5 *v1.DeletionPropagation) error
KubeDelete mocks base method.
func (*MockKubeActions) KubeGetPodLogs ¶
func (m *MockKubeActions) KubeGetPodLogs(arg0 context.Context, arg1, arg2, arg3 string) ([]byte, error)
KubeGetPodLogs mocks base method.
func (*MockKubeActions) KubeWatch ¶
func (m *MockKubeActions) KubeWatch(arg0 context.Context, arg1 *unstructured.Unstructured, arg2 string) (watch.Interface, error)
KubeWatch mocks base method.
func (*MockKubeActions) ResolveGVR ¶
func (m *MockKubeActions) ResolveGVR(arg0, arg1 string) (schema.GroupVersionResource, error)
ResolveGVR mocks base method.
type MockKubeActionsMockRecorder ¶
type MockKubeActionsMockRecorder struct {
// contains filtered or unexported fields
}
MockKubeActionsMockRecorder is the mock recorder for MockKubeActions.
func (*MockKubeActionsMockRecorder) ApproveAllCsrs ¶
func (mr *MockKubeActionsMockRecorder) ApproveAllCsrs(arg0 interface{}) *gomock.Call
ApproveAllCsrs indicates an expected call of ApproveAllCsrs.
func (*MockKubeActionsMockRecorder) ApproveCsr ¶
func (mr *MockKubeActionsMockRecorder) ApproveCsr(arg0, arg1 interface{}) *gomock.Call
ApproveCsr indicates an expected call of ApproveCsr.
func (*MockKubeActionsMockRecorder) CordonNode ¶
func (mr *MockKubeActionsMockRecorder) CordonNode(arg0, arg1, arg2 interface{}) *gomock.Call
CordonNode indicates an expected call of CordonNode.
func (*MockKubeActionsMockRecorder) DrainNode ¶
func (mr *MockKubeActionsMockRecorder) DrainNode(arg0, arg1 interface{}) *gomock.Call
DrainNode indicates an expected call of DrainNode.
func (*MockKubeActionsMockRecorder) KubeCreateOrUpdate ¶
func (mr *MockKubeActionsMockRecorder) KubeCreateOrUpdate(arg0, arg1 interface{}) *gomock.Call
KubeCreateOrUpdate indicates an expected call of KubeCreateOrUpdate.
func (*MockKubeActionsMockRecorder) KubeDelete ¶
func (mr *MockKubeActionsMockRecorder) KubeDelete(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call
KubeDelete indicates an expected call of KubeDelete.
func (*MockKubeActionsMockRecorder) KubeGet ¶
func (mr *MockKubeActionsMockRecorder) KubeGet(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
KubeGet indicates an expected call of KubeGet.
func (*MockKubeActionsMockRecorder) KubeGetPodLogs ¶
func (mr *MockKubeActionsMockRecorder) KubeGetPodLogs(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
KubeGetPodLogs indicates an expected call of KubeGetPodLogs.
func (*MockKubeActionsMockRecorder) KubeList ¶
func (mr *MockKubeActionsMockRecorder) KubeList(arg0, arg1, arg2 interface{}) *gomock.Call
KubeList indicates an expected call of KubeList.
func (*MockKubeActionsMockRecorder) KubeWatch ¶
func (mr *MockKubeActionsMockRecorder) KubeWatch(arg0, arg1, arg2 interface{}) *gomock.Call
KubeWatch indicates an expected call of KubeWatch.
func (*MockKubeActionsMockRecorder) ResolveGVR ¶
func (mr *MockKubeActionsMockRecorder) ResolveGVR(arg0, arg1 interface{}) *gomock.Call
ResolveGVR indicates an expected call of ResolveGVR.