MCPcopy
hub / github.com/containerd/containerd / criRuntimeService

Method criRuntimeService

integration/release_upgrade_linux_test.go:893–900  ·  view source on GitHub ↗

criRuntimeService returns a CRI runtime client based on the grpc address.

(t *testing.T)

Source from the content-addressed store, hash-verified

891
892// criRuntimeService returns a CRI runtime client based on the grpc address.
893func (p *ctrdProc) criRuntimeService(t *testing.T) *remote.RuntimeService {
894 service, err := remote.NewRuntimeService(p.grpcAddress(), 1*time.Minute)
895 require.NoError(t, err)
896 t.Cleanup(func() {
897 assert.NoError(t, service.Close(context.Background()))
898 })
899 return service
900}
901
902// criImageService returns a CRI image client based on the grpc address.
903func (p *ctrdProc) criImageService(t *testing.T) *remote.ImageService {

Callers 7

TestIssue10467Function · 0.80
checkLoopbackResultFunction · 0.80
TestOOMEventMonitorFunction · 0.80
TestReload100PodsFunction · 0.80

Calls 4

grpcAddressMethod · 0.95
CloseMethod · 0.95
NewRuntimeServiceFunction · 0.92
CleanupMethod · 0.65

Tested by

no test coverage detected