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

Method ReadOnly

core/mount/mount.go:92–94  ·  view source on GitHub ↗

ReadOnly returns a boolean value indicating whether this mount has the "ro" option set.

()

Source from the content-addressed store, hash-verified

90// ReadOnly returns a boolean value indicating whether this mount has the "ro"
91// option set.
92func (m *Mount) ReadOnly() bool {
93 return slices.Contains(m.Options, "ro")
94}
95
96// Mount to the provided target path.
97func (m *Mount) Mount(target string) error {

Callers 2

mountMethod · 0.95
mountsToLayerAndParentsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected