(path string)
| 976 | } |
| 977 | |
| 978 | func loadCDISpecFrom(path string) (*specs.Spec, error) { |
| 979 | data, err := os.ReadFile(path) |
| 980 | if err != nil { |
| 981 | return nil, err |
| 982 | } |
| 983 | |
| 984 | spec, err := cdi.ParseSpec(data) |
| 985 | if err != nil { |
| 986 | return nil, err |
| 987 | } |
| 988 | if spec == nil { |
| 989 | return nil, errors.New("missing data") |
| 990 | } |
| 991 | |
| 992 | return spec, nil |
| 993 | } |
| 994 | |
| 995 | func mountBind(containerPath, source, flags string) error { |
| 996 | fi, err := os.Stat(source) |
no outgoing calls
no test coverage detected
searching dependent graphs…