()
| 67 | } |
| 68 | |
| 69 | func (e *External) ExecutablePath() (string, error) { |
| 70 | execPath := e.ProviderExecutable |
| 71 | if execPath == "" { |
| 72 | execPath = filepath.Join(e.ProviderDir, "garm-external-provider") |
| 73 | } |
| 74 | |
| 75 | if !filepath.IsAbs(execPath) { |
| 76 | return "", fmt.Errorf("executable path must be an absolute path") |
| 77 | } |
| 78 | return execPath, nil |
| 79 | } |
| 80 | |
| 81 | func (e *External) Validate() error { |
| 82 | if e.ConfigFile != "" { |
no outgoing calls