MCPcopy
hub / github.com/containerd/containerd / FromProto

Function FromProto

core/mount/mount.go:176–187  ·  view source on GitHub ↗

FromProto converts from the protobuf definition [types.Mount] to [Mount].

(mm []*types.Mount)

Source from the content-addressed store, hash-verified

174// FromProto converts from the protobuf definition [types.Mount] to
175// [Mount].
176func FromProto(mm []*types.Mount) []Mount {
177 mounts := make([]Mount, len(mm))
178 for i, m := range mm {
179 mounts[i] = Mount{
180 Type: m.Type,
181 Source: m.Source,
182 Target: m.Target,
183 Options: m.Options,
184 }
185 }
186 return mounts
187}

Callers 10

ApplyMethod · 0.92
DiffMethod · 0.92
ActivationInfoFromProtoFunction · 0.92
MountsMethod · 0.92
PrepareMethod · 0.92
ViewMethod · 0.92
CreateMethod · 0.92
ActivateMethod · 0.92
ApplyMethod · 0.92
DiffMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…