Skip to content

Commit

Permalink
Merge pull request containerd#9803 from mxpv/depr
Browse files Browse the repository at this point in the history
Remove deprecated functions and packages
  • Loading branch information
dims authored Feb 11, 2024
2 parents bb45ce1 + 48c8c5f commit 2c7520d
Show file tree
Hide file tree
Showing 10 changed files with 0 additions and 524 deletions.
9 changes: 0 additions & 9 deletions client/signals.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,3 @@ func GetOCIStopSignal(ctx context.Context, image Image, defaultSignal string) (s

return config.StopSignal, nil
}

// ParseSignal parses a given string into a syscall.Signal
// the rawSignal can be a string with "SIG" prefix,
// or a signal number in string format.
//
// Deprecated: Use github.com/moby/sys/signal instead.
func ParseSignal(rawSignal string) (syscall.Signal, error) {
return signal.ParseSignal(rawSignal)
}
27 changes: 0 additions & 27 deletions core/runtime/restart/restart.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ import (

containerd "github.com/containerd/containerd/v2/client"
"github.com/containerd/containerd/v2/core/containers"
"github.com/containerd/containerd/v2/pkg/cio"
"github.com/containerd/log"
)

Expand Down Expand Up @@ -157,32 +156,6 @@ func WithLogURIString(uriString string) func(context.Context, *containerd.Client
}
}

// WithBinaryLogURI sets the binary-type log uri for a container.
//
// Deprecated(in release 1.5): use WithLogURI
func WithBinaryLogURI(binary string, args map[string]string) func(context.Context, *containerd.Client, *containers.Container) error {
uri, err := cio.LogURIGenerator("binary", binary, args)
if err != nil {
return func(context.Context, *containerd.Client, *containers.Container) error {
return err
}
}
return WithLogURI(uri)
}

// WithFileLogURI sets the file-type log uri for a container.
//
// Deprecated(in release 1.5): use WithLogURI
func WithFileLogURI(path string) func(context.Context, *containerd.Client, *containers.Container) error {
uri, err := cio.LogURIGenerator("file", path, nil)
if err != nil {
return func(context.Context, *containerd.Client, *containers.Container) error {
return err
}
}
return WithLogURI(uri)
}

// WithStatus sets the status for a container
func WithStatus(status containerd.ProcessStatus) func(context.Context, *containerd.Client, *containers.Container) error {
return func(_ context.Context, _ *containerd.Client, c *containers.Container) error {
Expand Down
48 changes: 0 additions & 48 deletions integration/client/signals_test.go

This file was deleted.

4 changes: 0 additions & 4 deletions pkg/dialer/dialer.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,6 @@ func ContextDialer(ctx context.Context, address string) (net.Conn, error) {
return timeoutDialer(address, 0)
}

// Dialer returns a GRPC net.Conn connected to the provided address
// Deprecated: use ContextDialer and grpc.WithContextDialer.
var Dialer = timeoutDialer

func timeoutDialer(address string, timeout time.Duration) (net.Conn, error) {
var (
stopC = make(chan struct{})
Expand Down
50 changes: 0 additions & 50 deletions pkg/reference/docker/helpers_deprecated.go

This file was deleted.

55 changes: 0 additions & 55 deletions pkg/reference/docker/normalize_deprecated.go

This file was deleted.

Loading

0 comments on commit 2c7520d

Please sign in to comment.