|
@@ -39,7 +39,7 @@ type ServiceProxy struct {
|
|
|
ConvertFn func(ctx context.Context, project *types.Project, options ConvertOptions) ([]byte, error)
|
|
ConvertFn func(ctx context.Context, project *types.Project, options ConvertOptions) ([]byte, error)
|
|
|
KillFn func(ctx context.Context, project *types.Project, options KillOptions) error
|
|
KillFn func(ctx context.Context, project *types.Project, options KillOptions) error
|
|
|
RunOneOffContainerFn func(ctx context.Context, project *types.Project, opts RunOptions) (int, error)
|
|
RunOneOffContainerFn func(ctx context.Context, project *types.Project, opts RunOptions) (int, error)
|
|
|
- RemoveFn func(ctx context.Context, project *types.Project, options RemoveOptions) error
|
|
|
|
|
|
|
+ RemoveFn func(ctx context.Context, project string, options RemoveOptions) error
|
|
|
ExecFn func(ctx context.Context, project string, opts RunOptions) (int, error)
|
|
ExecFn func(ctx context.Context, project string, opts RunOptions) (int, error)
|
|
|
CopyFn func(ctx context.Context, project string, options CopyOptions) error
|
|
CopyFn func(ctx context.Context, project string, options CopyOptions) error
|
|
|
PauseFn func(ctx context.Context, project string, options PauseOptions) error
|
|
PauseFn func(ctx context.Context, project string, options PauseOptions) error
|
|
@@ -241,13 +241,10 @@ func (s *ServiceProxy) RunOneOffContainer(ctx context.Context, project *types.Pr
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// Remove implements Service interface
|
|
// Remove implements Service interface
|
|
|
-func (s *ServiceProxy) Remove(ctx context.Context, project *types.Project, options RemoveOptions) error {
|
|
|
|
|
|
|
+func (s *ServiceProxy) Remove(ctx context.Context, project string, options RemoveOptions) error {
|
|
|
if s.RemoveFn == nil {
|
|
if s.RemoveFn == nil {
|
|
|
return ErrNotImplemented
|
|
return ErrNotImplemented
|
|
|
}
|
|
}
|
|
|
- for _, i := range s.interceptors {
|
|
|
|
|
- i(ctx, project)
|
|
|
|
|
- }
|
|
|
|
|
return s.RemoveFn(ctx, project, options)
|
|
return s.RemoveFn(ctx, project, options)
|
|
|
}
|
|
}
|
|
|
|
|
|