MCPcopy Create free account
hub / github.com/cloudbase/garm / ExecutablePath

Method ExecutablePath

config/external.go:69–79  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

67}
68
69func (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
81func (e *External) Validate() error {
82 if e.ConfigFile != "" {

Callers 4

ValidateMethod · 0.95
NewProviderFunction · 0.80
NewProviderFunction · 0.80

Calls

no outgoing calls

Tested by 1