(name, address, pluginSpecDir string, proto protocol)
| 46 | } |
| 47 | |
| 48 | func writeSpecFile(name, address, pluginSpecDir string, proto protocol) (string, error) { |
| 49 | specFileDir := filepath.Join(pluginSpecDir, name+".spec") |
| 50 | |
| 51 | url := string(proto) + "://" + address |
| 52 | if err := os.WriteFile(specFileDir, []byte(url), 0644); err != nil { |
| 53 | return "", err |
| 54 | } |
| 55 | |
| 56 | return specFileDir, nil |
| 57 | } |
no test coverage detected
searching dependent graphs…