add DryRun API Client with delagation pattern

Signed-off-by: Guillaume Lours <705411+glours@users.noreply.github.com>
This commit is contained in:
Guillaume Lours 2023-01-12 21:44:27 +01:00
parent fbf845c5f8
commit 13ef440d6a
2 changed files with 1152 additions and 0 deletions

1140
pkg/api/dryrunclient.go Normal file

File diff suppressed because it is too large Load Diff

View File

@ -107,6 +107,18 @@ func (mr *MockServiceMockRecorder) Down(ctx, projectName, options interface{}) *
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Down", reflect.TypeOf((*MockService)(nil).Down), ctx, projectName, options)
}
// DryRunMode mocks base method.
func (m *MockService) DryRunMode(dryRun bool) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "DryRunMode", dryRun)
}
// DryRunMode indicates an expected call of DryRunMode.
func (mr *MockServiceMockRecorder) DryRunMode(dryRun interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DryRunMode", reflect.TypeOf((*MockService)(nil).DryRunMode), dryRun)
}
// Events mocks base method.
func (m *MockService) Events(ctx context.Context, projectName string, options api.EventsOptions) error {
m.ctrl.T.Helper()