Mount to the provided target path.
(target string)
| 95 | |
| 96 | // Mount to the provided target path. |
| 97 | func (m *Mount) Mount(target string) error { |
| 98 | target, err := fs.RootPath(target, m.Target) |
| 99 | if err != nil { |
| 100 | return fmt.Errorf("failed to join path %q with root %q: %w", m.Target, target, err) |
| 101 | } |
| 102 | return m.mount(target) |
| 103 | } |
| 104 | |
| 105 | // readonlyMounts modifies the received mount options |
| 106 | // to make them readonly |