ScriptHandler provides an interface for various scripts source handlers.
| 23 | |
| 24 | // ScriptHandler provides an interface for various scripts source handlers. |
| 25 | type ScriptHandler interface { |
| 26 | Get(script string) *api.InstallResult |
| 27 | Install(*api.InstallResult) error |
| 28 | SetDestinationDir(string) |
| 29 | String() string |
| 30 | } |
| 31 | |
| 32 | // URLScriptHandler handles script download using URL. |
| 33 | type URLScriptHandler struct { |
no outgoing calls
no test coverage detected