mock.gen.go 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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. )
  14. // MockClient is a mock of Client interface.
  15. type MockClient struct {
  16. ctrl *gomock.Controller
  17. recorder *MockClientMockRecorder
  18. }
  19. // MockClientMockRecorder is the mock recorder for MockClient.
  20. type MockClientMockRecorder struct {
  21. mock *MockClient
  22. }
  23. // NewMockClient creates a new mock instance.
  24. func NewMockClient(ctrl *gomock.Controller) *MockClient {
  25. mock := &MockClient{ctrl: ctrl}
  26. mock.recorder = &MockClientMockRecorder{mock}
  27. return mock
  28. }
  29. // EXPECT returns an object that allows the caller to indicate expected use.
  30. func (m *MockClient) EXPECT() *MockClientMockRecorder {
  31. return m.recorder
  32. }
  33. // CreateOrUpdateDeployment mocks base method.
  34. func (m *MockClient) CreateOrUpdateDeployment(arg0 context.Context, arg1 *v1.BlueGreen, arg2 v1.BlueOrGreen, arg3 v10.PodSpec) error {
  35. m.ctrl.T.Helper()
  36. ret := m.ctrl.Call(m, "CreateOrUpdateDeployment", arg0, arg1, arg2, arg3)
  37. ret0, _ := ret[0].(error)
  38. return ret0
  39. }
  40. // CreateOrUpdateDeployment indicates an expected call of CreateOrUpdateDeployment.
  41. func (mr *MockClientMockRecorder) CreateOrUpdateDeployment(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
  42. mr.mock.ctrl.T.Helper()
  43. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateOrUpdateDeployment", reflect.TypeOf((*MockClient)(nil).CreateOrUpdateDeployment), arg0, arg1, arg2, arg3)
  44. }
  45. // CreateOrUpdateService mocks base method.
  46. func (m *MockClient) CreateOrUpdateService(arg0 context.Context, arg1 *v1.BlueGreen) error {
  47. m.ctrl.T.Helper()
  48. ret := m.ctrl.Call(m, "CreateOrUpdateService", arg0, arg1)
  49. ret0, _ := ret[0].(error)
  50. return ret0
  51. }
  52. // CreateOrUpdateService indicates an expected call of CreateOrUpdateService.
  53. func (mr *MockClientMockRecorder) CreateOrUpdateService(arg0, arg1 interface{}) *gomock.Call {
  54. mr.mock.ctrl.T.Helper()
  55. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateOrUpdateService", reflect.TypeOf((*MockClient)(nil).CreateOrUpdateService), arg0, arg1)
  56. }
  57. // Get mocks base method.
  58. func (m *MockClient) Get(arg0 context.Context, arg1 types.NamespacedName, arg2 client.Object) error {
  59. m.ctrl.T.Helper()
  60. ret := m.ctrl.Call(m, "Get", arg0, arg1, arg2)
  61. ret0, _ := ret[0].(error)
  62. return ret0
  63. }
  64. // Get indicates an expected call of Get.
  65. func (mr *MockClientMockRecorder) Get(arg0, arg1, arg2 interface{}) *gomock.Call {
  66. mr.mock.ctrl.T.Helper()
  67. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockClient)(nil).Get), arg0, arg1, arg2)
  68. }
  69. // List mocks base method.
  70. func (m *MockClient) List(arg0 context.Context, arg1 client.ObjectList, arg2 ...client.ListOption) error {
  71. m.ctrl.T.Helper()
  72. varargs := []interface{}{arg0, arg1}
  73. for _, a := range arg2 {
  74. varargs = append(varargs, a)
  75. }
  76. ret := m.ctrl.Call(m, "List", varargs...)
  77. ret0, _ := ret[0].(error)
  78. return ret0
  79. }
  80. // List indicates an expected call of List.
  81. func (mr *MockClientMockRecorder) List(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
  82. mr.mock.ctrl.T.Helper()
  83. varargs := append([]interface{}{arg0, arg1}, arg2...)
  84. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockClient)(nil).List), varargs...)
  85. }
  86. // UpdateStatus mocks base method.
  87. func (m *MockClient) UpdateStatus(arg0 context.Context, arg1 *v1.BlueGreen) error {
  88. m.ctrl.T.Helper()
  89. ret := m.ctrl.Call(m, "UpdateStatus", arg0, arg1)
  90. ret0, _ := ret[0].(error)
  91. return ret0
  92. }
  93. // UpdateStatus indicates an expected call of UpdateStatus.
  94. func (mr *MockClientMockRecorder) UpdateStatus(arg0, arg1 interface{}) *gomock.Call {
  95. mr.mock.ctrl.T.Helper()
  96. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateStatus", reflect.TypeOf((*MockClient)(nil).UpdateStatus), arg0, arg1)
  97. }