MCPcopy
hub / github.com/containerd/containerd / criImageService

Method criImageService

integration/release_upgrade_linux_test.go:903–910  ·  view source on GitHub ↗

criImageService returns a CRI image client based on the grpc address.

(t *testing.T)

Source from the content-addressed store, hash-verified

901
902// criImageService returns a CRI image client based on the grpc address.
903func (p *ctrdProc) criImageService(t *testing.T) *remote.ImageService {
904 service, err := remote.NewImageService(p.grpcAddress(), 1*time.Minute)
905 require.NoError(t, err)
906 t.Cleanup(func() {
907 assert.NoError(t, service.Close(context.Background()))
908 })
909 return service
910}
911
912// newCtrdProc is to start containerd process.
913func newCtrdProc(t *testing.T, ctrdBin string, ctrdWorkDir string, envs []string) *ctrdProc {

Calls 4

grpcAddressMethod · 0.95
CloseMethod · 0.95
NewImageServiceFunction · 0.92
CleanupMethod · 0.65

Tested by

no test coverage detected