reused package errdefs for not supported err
Signed-off-by: xin.li <xin.li@daocloud.io>
This commit is contained in:
parent
8d9af708d7
commit
12359559d1
@ -18,41 +18,41 @@ package shim
|
||||
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"io"
|
||||
"net"
|
||||
"os"
|
||||
|
||||
"github.com/containerd/containerd/errdefs"
|
||||
"github.com/containerd/ttrpc"
|
||||
"github.com/sirupsen/logrus"
|
||||
)
|
||||
|
||||
func setupSignals(config Config) (chan os.Signal, error) {
|
||||
return nil, errors.New("not supported")
|
||||
return nil, errdefs.ErrNotImplemented
|
||||
}
|
||||
|
||||
func newServer(opts ...ttrpc.ServerOpt) (*ttrpc.Server, error) {
|
||||
return nil, errors.New("not supported")
|
||||
return nil, errdefs.ErrNotImplemented
|
||||
}
|
||||
|
||||
func subreaper() error {
|
||||
return errors.New("not supported")
|
||||
return errdefs.ErrNotImplemented
|
||||
}
|
||||
|
||||
func setupDumpStacks(dump chan<- os.Signal) {
|
||||
}
|
||||
|
||||
func serveListener(path string) (net.Listener, error) {
|
||||
return nil, errors.New("not supported")
|
||||
return nil, errdefs.ErrNotImplemented
|
||||
}
|
||||
|
||||
func reap(ctx context.Context, logger *logrus.Entry, signals chan os.Signal) error {
|
||||
return errors.New("not supported")
|
||||
return errdefs.ErrNotImplemented
|
||||
}
|
||||
|
||||
func handleExitSignals(ctx context.Context, logger *logrus.Entry, cancel context.CancelFunc) {
|
||||
}
|
||||
|
||||
func openLog(ctx context.Context, _ string) (io.Writer, error) {
|
||||
return nil, errors.New("not supported")
|
||||
return nil, errdefs.ErrNotImplemented
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user