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 (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"errors"
|
|
||||||
"io"
|
"io"
|
||||||
"net"
|
"net"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
|
"github.com/containerd/containerd/errdefs"
|
||||||
"github.com/containerd/ttrpc"
|
"github.com/containerd/ttrpc"
|
||||||
"github.com/sirupsen/logrus"
|
"github.com/sirupsen/logrus"
|
||||||
)
|
)
|
||||||
|
|
||||||
func setupSignals(config Config) (chan os.Signal, error) {
|
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) {
|
func newServer(opts ...ttrpc.ServerOpt) (*ttrpc.Server, error) {
|
||||||
return nil, errors.New("not supported")
|
return nil, errdefs.ErrNotImplemented
|
||||||
}
|
}
|
||||||
|
|
||||||
func subreaper() error {
|
func subreaper() error {
|
||||||
return errors.New("not supported")
|
return errdefs.ErrNotImplemented
|
||||||
}
|
}
|
||||||
|
|
||||||
func setupDumpStacks(dump chan<- os.Signal) {
|
func setupDumpStacks(dump chan<- os.Signal) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func serveListener(path string) (net.Listener, error) {
|
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 {
|
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 handleExitSignals(ctx context.Context, logger *logrus.Entry, cancel context.CancelFunc) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func openLog(ctx context.Context, _ string) (io.Writer, error) {
|
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