feat: invokable scripts (#387)

* basic list, create, and invoke working

* all commands working

* added support for create script body from file and invoke params from file

* linter cleanup

* update defaults to existing parameters if not provided

* updated generated mock files, added mock files for scripts, added basic script create test

* added mock script list

* cleanup pass, fixed not using params in list call

* added update mock test

* fixed mock tests requiring go 1.18

* updated openapi, integrated overrides upstream, added new override to fix codegen bug

* added nil check

* fixed routes
This commit is contained in:
Andrew Depke
2022-06-22 14:08:55 -06:00
committed by GitHub
parent a68106ee88
commit 760f07ed9e
31 changed files with 3207 additions and 337 deletions

View File

@ -36,34 +36,6 @@ func (m *MockWriteApi) EXPECT() *MockWriteApiMockRecorder {
return m.recorder
}
// OnlyCloud mocks base method.
func (m *MockWriteApi) OnlyCloud() api.WriteApi {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "OnlyCloud")
ret0, _ := ret[0].(api.WriteApi)
return ret0
}
// OnlyCloud indicates an expected call of OnlyCloud.
func (mr *MockWriteApiMockRecorder) OnlyCloud() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OnlyCloud", reflect.TypeOf((*MockWriteApi)(nil).OnlyCloud))
}
// OnlyOSS mocks base method.
func (m *MockWriteApi) OnlyOSS() api.WriteApi {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "OnlyOSS")
ret0, _ := ret[0].(api.WriteApi)
return ret0
}
// OnlyOSS indicates an expected call of OnlyOSS.
func (mr *MockWriteApiMockRecorder) OnlyOSS() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OnlyOSS", reflect.TypeOf((*MockWriteApi)(nil).OnlyOSS))
}
// PostWrite mocks base method.
func (m *MockWriteApi) PostWrite(arg0 context.Context) api.ApiPostWriteRequest {
m.ctrl.T.Helper()