MCPcopy
hub / github.com/containerd/containerd / Close

Method Close

integration/remote/remote_runtime.go:103–116  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

101}
102
103func (r *RuntimeService) Close(ctx context.Context) error {
104 if r == nil {
105 return nil
106 }
107
108 var err error
109 if r.runtimeService != nil {
110 err = r.runtimeService.Close(ctx)
111 }
112 if r.runtimeConn != nil {
113 err = errors.Join(err, r.runtimeConn.Close())
114 }
115 return err
116}
117
118func (r *RuntimeService) Version(apiVersion string, _ ...grpc.CallOption) (*runtimeapi.VersionResponse, error) {
119 return r.runtimeService.Version(context.Background(), apiVersion)

Callers 3

criRuntimeServiceMethod · 0.95
criTestFunction · 0.95

Calls 1

CloseMethod · 0.65

Tested by 2

criRuntimeServiceMethod · 0.76