mock.gen.go 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. // Code generated by MockGen. DO NOT EDIT.
  2. // Source: github.com/kakao/bluegreen/controllers/bluegreen (interfaces: Client)
  3. // Package bluegreen is a generated GoMock package.
  4. package bluegreen
  5. import (
  6. context "context"
  7. reflect "reflect"
  8. gomock "github.com/golang/mock/gomock"
  9. v1 "github.com/kakao/bluegreen/api/v1"
  10. v10 "k8s.io/api/core/v1"
  11. types "k8s.io/apimachinery/pkg/types"
  12. client "sigs.k8s.io/controller-runtime/pkg/client"
  13. reconcile "sigs.k8s.io/controller-runtime/pkg/reconcile"
  14. )
  15. // MockClient is a mock of Client interface.
  16. type MockClient struct {
  17. ctrl *gomock.Controller
  18. recorder *MockClientMockRecorder
  19. }
  20. // MockClientMockRecorder is the mock recorder for MockClient.
  21. type MockClientMockRecorder struct {
  22. mock *MockClient
  23. }
  24. // NewMockClient creates a new mock instance.
  25. func NewMockClient(ctrl *gomock.Controller) *MockClient {
  26. mock := &MockClient{ctrl: ctrl}
  27. mock.recorder = &MockClientMockRecorder{mock}
  28. return mock
  29. }
  30. // EXPECT returns an object that allows the caller to indicate expected use.
  31. func (m *MockClient) EXPECT() *MockClientMockRecorder {
  32. return m.recorder
  33. }
  34. // CreateOrUpdateDeployment mocks base method.
  35. func (m *MockClient) CreateOrUpdateDeployment(arg0 context.Context, arg1 *v1.BlueGreen, arg2 v1.BlueOrGreen, arg3 v10.PodSpec) error {
  36. m.ctrl.T.Helper()
  37. ret := m.ctrl.Call(m, "CreateOrUpdateDeployment", arg0, arg1, arg2, arg3)
  38. ret0, _ := ret[0].(error)
  39. return ret0
  40. }
  41. // CreateOrUpdateDeployment indicates an expected call of CreateOrUpdateDeployment.
  42. func (mr *MockClientMockRecorder) CreateOrUpdateDeployment(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
  43. mr.mock.ctrl.T.Helper()
  44. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateOrUpdateDeployment", reflect.TypeOf((*MockClient)(nil).CreateOrUpdateDeployment), arg0, arg1, arg2, arg3)
  45. }
  46. // CreateOrUpdateService mocks base method.
  47. func (m *MockClient) CreateOrUpdateService(arg0 context.Context, arg1 *v1.BlueGreen) error {
  48. m.ctrl.T.Helper()
  49. ret := m.ctrl.Call(m, "CreateOrUpdateService", arg0, arg1)
  50. ret0, _ := ret[0].(error)
  51. return ret0
  52. }
  53. // CreateOrUpdateService indicates an expected call of CreateOrUpdateService.
  54. func (mr *MockClientMockRecorder) CreateOrUpdateService(arg0, arg1 interface{}) *gomock.Call {
  55. mr.mock.ctrl.T.Helper()
  56. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateOrUpdateService", reflect.TypeOf((*MockClient)(nil).CreateOrUpdateService), arg0, arg1)
  57. }
  58. // Get mocks base method.
  59. func (m *MockClient) Get(arg0 context.Context, arg1 types.NamespacedName, arg2 client.Object) error {
  60. m.ctrl.T.Helper()
  61. ret := m.ctrl.Call(m, "Get", arg0, arg1, arg2)
  62. ret0, _ := ret[0].(error)
  63. return ret0
  64. }
  65. // Get indicates an expected call of Get.
  66. func (mr *MockClientMockRecorder) Get(arg0, arg1, arg2 interface{}) *gomock.Call {
  67. mr.mock.ctrl.T.Helper()
  68. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockClient)(nil).Get), arg0, arg1, arg2)
  69. }
  70. // List mocks base method.
  71. func (m *MockClient) List(arg0 context.Context, arg1 client.ObjectList, arg2 ...client.ListOption) error {
  72. m.ctrl.T.Helper()
  73. varargs := []interface{}{arg0, arg1}
  74. for _, a := range arg2 {
  75. varargs = append(varargs, a)
  76. }
  77. ret := m.ctrl.Call(m, "List", varargs...)
  78. ret0, _ := ret[0].(error)
  79. return ret0
  80. }
  81. // List indicates an expected call of List.
  82. func (mr *MockClientMockRecorder) List(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
  83. mr.mock.ctrl.T.Helper()
  84. varargs := append([]interface{}{arg0, arg1}, arg2...)
  85. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockClient)(nil).List), varargs...)
  86. }
  87. // UpdateStatus mocks base method.
  88. func (m *MockClient) UpdateStatus(arg0 context.Context, arg1 reconcile.Request, arg2 v1.BlueGreenStatus) error {
  89. m.ctrl.T.Helper()
  90. ret := m.ctrl.Call(m, "UpdateStatus", arg0, arg1, arg2)
  91. ret0, _ := ret[0].(error)
  92. return ret0
  93. }
  94. // UpdateStatus indicates an expected call of UpdateStatus.
  95. func (mr *MockClientMockRecorder) UpdateStatus(arg0, arg1, arg2 interface{}) *gomock.Call {
  96. mr.mock.ctrl.T.Helper()
  97. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateStatus", reflect.TypeOf((*MockClient)(nil).UpdateStatus), arg0, arg1, arg2)
  98. }