(ctx context.Context, info mount.ActivationInfo, fieldpaths ...string)
| 101 | } |
| 102 | |
| 103 | func (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 | |
| 121 | func (pm *proxyMounts) List(ctx context.Context, filters ...string) ([]mount.ActivationInfo, error) { |
| 122 | l, err := pm.client.List(ctx, &mounts.ListRequest{ |
nothing calls this directly
no test coverage detected