FromProto converts from the protobuf definition [types.Mount] to [Mount].
(mm []*types.Mount)
| 174 | // FromProto converts from the protobuf definition [types.Mount] to |
| 175 | // [Mount]. |
| 176 | func 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 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…