MCPcopy
hub / github.com/containerd/containerd / Update

Method Update

core/mount/proxy/proxy.go:103–119  ·  view source on GitHub ↗
(ctx context.Context, info mount.ActivationInfo, fieldpaths ...string)

Source from the content-addressed store, hash-verified

101}
102
103func (pm *proxyMounts) Update(ctx context.Context, info mount.ActivationInfo, fieldpaths ...string) (mount.ActivationInfo, error) {
104 var updateMask *ptypes.FieldMask
105 if len(fieldpaths) > 0 {
106 updateMask = &ptypes.FieldMask{
107 Paths: fieldpaths,
108 }
109 }
110
111 a, err := pm.client.Update(ctx, &mounts.UpdateRequest{
112 Info: ActivationInfoToProto(info),
113 UpdateMask: updateMask,
114 })
115 if err != nil {
116 return mount.ActivationInfo{}, errgrpc.ToNative(err)
117 }
118 return ActivationInfoFromProto(a.Info), nil
119}
120
121func (pm *proxyMounts) List(ctx context.Context, filters ...string) ([]mount.ActivationInfo, error) {
122 l, err := pm.client.List(ctx, &mounts.ListRequest{

Callers

nothing calls this directly

Calls 3

ActivationInfoToProtoFunction · 0.85
ActivationInfoFromProtoFunction · 0.85
UpdateMethod · 0.65

Tested by

no test coverage detected