Skip to content

Commit 5ca56dd

Browse files
committed
Remove deprecated funcs from restart package
Signed-off-by: Maksym Pavlenko <[email protected]>
1 parent 653b808 commit 5ca56dd

File tree

1 file changed

+0
-27
lines changed

1 file changed

+0
-27
lines changed

core/runtime/restart/restart.go

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ import (
3838

3939
containerd "github.com/containerd/containerd/v2/client"
4040
"github.com/containerd/containerd/v2/core/containers"
41-
"github.com/containerd/containerd/v2/pkg/cio"
4241
"github.com/containerd/log"
4342
)
4443

@@ -157,32 +156,6 @@ func WithLogURIString(uriString string) func(context.Context, *containerd.Client
157156
}
158157
}
159158

160-
// WithBinaryLogURI sets the binary-type log uri for a container.
161-
//
162-
// Deprecated(in release 1.5): use WithLogURI
163-
func WithBinaryLogURI(binary string, args map[string]string) func(context.Context, *containerd.Client, *containers.Container) error {
164-
uri, err := cio.LogURIGenerator("binary", binary, args)
165-
if err != nil {
166-
return func(context.Context, *containerd.Client, *containers.Container) error {
167-
return err
168-
}
169-
}
170-
return WithLogURI(uri)
171-
}
172-
173-
// WithFileLogURI sets the file-type log uri for a container.
174-
//
175-
// Deprecated(in release 1.5): use WithLogURI
176-
func WithFileLogURI(path string) func(context.Context, *containerd.Client, *containers.Container) error {
177-
uri, err := cio.LogURIGenerator("file", path, nil)
178-
if err != nil {
179-
return func(context.Context, *containerd.Client, *containers.Container) error {
180-
return err
181-
}
182-
}
183-
return WithLogURI(uri)
184-
}
185-
186159
// WithStatus sets the status for a container
187160
func WithStatus(status containerd.ProcessStatus) func(context.Context, *containerd.Client, *containers.Container) error {
188161
return func(_ context.Context, _ *containerd.Client, c *containers.Container) error {

0 commit comments

Comments
 (0)