MCPcopy
hub / github.com/alexei-led/pumba / ContainerExecCreate

Method ContainerExecCreate

mocks/APIClient.go:982–1007  ·  view source on GitHub ↗

ContainerExecCreate provides a mock function with given fields: ctx, _a1, options

(ctx context.Context, _a1 string, options container.ExecOptions)

Source from the content-addressed store, hash-verified

980
981// ContainerExecCreate provides a mock function with given fields: ctx, _a1, options
982func (_m *APIClient) ContainerExecCreate(ctx context.Context, _a1 string, options container.ExecOptions) (container.ExecCreateResponse, error) {
983 ret := _m.Called(ctx, _a1, options)
984
985 if len(ret) == 0 {
986 panic("no return value specified for ContainerExecCreate")
987 }
988
989 var r0 container.ExecCreateResponse
990 var r1 error
991 if rf, ok := ret.Get(0).(func(context.Context, string, container.ExecOptions) (container.ExecCreateResponse, error)); ok {
992 return rf(ctx, _a1, options)
993 }
994 if rf, ok := ret.Get(0).(func(context.Context, string, container.ExecOptions) container.ExecCreateResponse); ok {
995 r0 = rf(ctx, _a1, options)
996 } else {
997 r0 = ret.Get(0).(container.ExecCreateResponse)
998 }
999
1000 if rf, ok := ret.Get(1).(func(context.Context, string, container.ExecOptions) error); ok {
1001 r1 = rf(ctx, _a1, options)
1002 } else {
1003 r1 = ret.Error(1)
1004 }
1005
1006 return r0, r1
1007}
1008
1009// APIClient_ContainerExecCreate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ContainerExecCreate'
1010type APIClient_ContainerExecCreate_Call struct {

Calls

no outgoing calls