(ctx context.Context, name string)
| 804 | } |
| 805 | |
| 806 | func (mm *mountManager) Info(ctx context.Context, name string) (mount.ActivationInfo, error) { |
| 807 | namespace, err := namespaces.NamespaceRequired(ctx) |
| 808 | if err != nil { |
| 809 | return mount.ActivationInfo{}, err |
| 810 | } |
| 811 | var info mount.ActivationInfo |
| 812 | if err := mm.db.View(func(tx *bolt.Tx) error { |
| 813 | bkt := getBucket(tx, []byte("v1"), []byte(namespace), bucketKeyMounts, []byte(name)) |
| 814 | if bkt == nil { |
| 815 | return fmt.Errorf("mount %q %w", name, errdefs.ErrNotFound) |
| 816 | } |
| 817 | var err error |
| 818 | info, err = readActivationInfo(name, bkt) |
| 819 | return err |
| 820 | }); err != nil { |
| 821 | return mount.ActivationInfo{}, err |
| 822 | } |
| 823 | return info, nil |
| 824 | } |
| 825 | |
| 826 | func (mm *mountManager) Update(context.Context, mount.ActivationInfo, ...string) (mount.ActivationInfo, error) { |
| 827 | return mount.ActivationInfo{}, errdefs.ErrNotImplemented |
nothing calls this directly
no test coverage detected