(sp *specs.Spec)
| 891 | } |
| 892 | |
| 893 | func groupAddFromNative(sp *specs.Spec) ([]string, error) { |
| 894 | res := []string{} |
| 895 | if sp.Process != nil && sp.Process.User.AdditionalGids != nil { |
| 896 | for _, gid := range sp.Process.User.AdditionalGids { |
| 897 | if gid != 0 { |
| 898 | res = append(res, strconv.FormatUint(uint64(gid), 10)) |
| 899 | } |
| 900 | } |
| 901 | } |
| 902 | return res, nil |
| 903 | } |
| 904 | |
| 905 | func convertToNatPort(portMappings []cni.PortMapping) (*nat.PortMap, error) { |
| 906 | portMap := make(nat.PortMap) |
no outgoing calls
no test coverage detected
searching dependent graphs…