plugin/executor/containerd/containerd.go
Function New
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func New(ctx context.Context, rootDir string, cli *containerd.Client, ns string, exitHandler ExitHandler, shim string, shimOpts interface{}) (*Executor, error) {
Method Executor.Restore
has 8 return statements (exceeds 4 allowed). Open
Open
func (e *Executor) Restore(id string, stdout, stderr io.WriteCloser) (bool, error) {
ctx := context.Background()
p := c8dPlugin{log: log.G(ctx).WithField("plugin", id)}
ctr, err := e.client.LoadContainer(ctx, id)
if err != nil {