MCPcopy Index your code
hub / github.com/containerd/containerd / List

Method List

core/mount/proxy/proxy.go:121–141  ·  view source on GitHub ↗
(ctx context.Context, filters ...string)

Source from the content-addressed store, hash-verified

119}
120
121func (pm *proxyMounts) List(ctx context.Context, filters ...string) ([]mount.ActivationInfo, error) {
122 l, err := pm.client.List(ctx, &mounts.ListRequest{
123 Filters: filters,
124 })
125 if err != nil {
126 return nil, errgrpc.ToNative(err)
127 }
128
129 var infos []mount.ActivationInfo
130 for {
131 a, err := l.Recv()
132 if err != nil {
133 if err == io.EOF {
134 break
135 }
136 return nil, errgrpc.ToNative(err)
137 }
138 infos = append(infos, ActivationInfoFromProto(a.Info))
139 }
140 return infos, nil
141}
142
143type convertClient struct {
144 mounts.MountsClient

Callers

nothing calls this directly

Calls 3

ActivationInfoFromProtoFunction · 0.85
ListMethod · 0.65
RecvMethod · 0.65

Tested by

no test coverage detected