2022-07-15 11:49:53 +00:00
|
|
|
package dependencies
|
|
|
|
|
2022-11-26 22:36:00 +00:00
|
|
|
import "git.dev.m-and-m.ovh/mderasse/gouick/models"
|
2022-08-03 11:17:15 +00:00
|
|
|
|
|
|
|
// DependencyInterface is the interface that need to be respected for a dependency.
|
2022-07-25 20:19:38 +00:00
|
|
|
type DependencyInterface interface {
|
2022-07-16 15:46:09 +00:00
|
|
|
CanBeInstalled() bool
|
2022-07-15 11:49:53 +00:00
|
|
|
DescribeInstall(path string) string
|
2022-07-15 22:16:59 +00:00
|
|
|
DescribePostInstall(path string) string
|
2022-07-15 11:49:53 +00:00
|
|
|
GetBinaryPath() (string, error)
|
|
|
|
GetInstallDirectory() (string, error)
|
2022-08-03 11:17:15 +00:00
|
|
|
GetName() models.DependencyName
|
2022-07-15 11:49:53 +00:00
|
|
|
GetMinimumVersion() string
|
|
|
|
GetVersion() (string, error)
|
|
|
|
Install(path string) error
|
2022-07-15 22:16:59 +00:00
|
|
|
PostInstall(path string) error
|
2022-07-15 11:49:53 +00:00
|
|
|
IsInstalled() (bool, error)
|
|
|
|
IsVersionSupported() (bool, error)
|
|
|
|
}
|