gouick/helpers/dependencies/interface.go
Matthieu 'JP' DERASSE 660a4ef162
Some checks failed
continuous-integration/drone/push Build is failing
fix(lint): Continue to apply linter recommandation
2022-08-03 11:17:15 +00:00

20 lines
596 B
Go

package dependencies
import "git.home.m-and-m.ovh/mderasse/gouick/helpers/models"
// DependencyInterface is the interface that need to be respected for a dependency.
type DependencyInterface interface {
CanBeInstalled() bool
DescribeInstall(path string) string
DescribePostInstall(path string) string
GetBinaryPath() (string, error)
GetInstallDirectory() (string, error)
GetName() models.DependencyName
GetMinimumVersion() string
GetVersion() (string, error)
Install(path string) error
PostInstall(path string) error
IsInstalled() (bool, error)
IsVersionSupported() (bool, error)
}