Versions in this module Expand all Collapse all v1 v1.20.0 Jul 24, 2021 v1.5.0 Jul 20, 2021 Changes in this version + func AddImport(fset *token.FileSet, f *ast.File, ipath string) (added bool) + func Copy(src, dst string, copyMode bool) error + func CopyFile(srcFile, destFile string) error + func CreateVersionFile(cmdPath, currentVersion string) error + func DeleteFile(path string) error + func DeleteImport(fset *token.FileSet, f *ast.File, path string) (deleted bool) + func DirExists(path string) bool + func ExecCmd(cmd *exec.Cmd, workingDir string) error + func FileExists(path string) bool + func FindGoModPackageSrc(pkg string, version string, latest bool) (srcPath, srcVer string, err error) + func FindOldPackageSrc(pkg string) (srcPath, srcVer string, err error) + func GetCLIInfo() (string, string, error) + func GetContribType(depManager DepManager, ref string) (string, error) + func GetGoPath() string + func GetPackageVersionFromGit(dir string) string + func GetPackageVersionFromSource(pkg string) string + func IsPkgNotFoundError(err error) bool + func IsRemote(path string) bool + func LoadLocalFile(path string) (string, error) + func LoadRemoteFile(sourceURL string) (string, error) + func Rename(srcPath string) error + func ReplaceEnvValue(env []string, envKey string, newValue string) []string + func SetVerbose(enable bool) + func Verbose() bool + type AppImportDetails struct + ContribDesc *FlogoContribDescriptor + HasAliasRef bool + HasDirectRef bool + Imp Import + TopLevel bool + func (d *AppImportDetails) IsCoreContrib() bool + func (d *AppImportDetails) Referenced() bool + type AppImports struct + func GetAppImports(appJsonFile string, depManager DepManager, resolveContribs bool) (*AppImports, error) + func (ai *AppImports) GetAllImportDetails() []*AppImportDetails + func (ai *AppImports) GetAllImports() []Import + func (ai *AppImports) GetOrphanedReferences() []string + type DepManager interface + AddDependency func(flogoImport Import) error + AddReplacedContribForBuild func() error + GetAllImports func() (map[string]Import, error) + GetPath func(flogoImport Import) (string, error) + Init func() error + InstallReplacedPkg func(string, string) error + func NewDepManager(sourceDir string) DepManager + type EngineImportDetails struct + HasAliasRef bool + HasDirectRef bool + Imp Import + ServiceRef bool + TopLevel bool + type EngineImports struct + func GetEngineImports(engJsonFile string, depManager DepManager) (*EngineImports, error) + func (ai *EngineImports) GetAllImportDetails() []*EngineImportDetails + func (ai *EngineImports) GetAllImports() []Import + func (ai *EngineImports) GetOrphanedReferences() []string + type EngineServiceDetails struct + Ref string + type FlogoAppDescriptor struct + AppModel string + Description string + Imports []string + Name string + Triggers []*FlogoTriggerConfig + Type string + Version string + func ParseAppDescriptor(appJson string) (*FlogoAppDescriptor, error) + type FlogoContribBundleDescriptor struct + Contribs []string + Description string + Name string + type FlogoContribDescriptor struct + Description string + Homepage string + IsLegacy bool + Name string + Ref string + Shim string + Type string + Version string + func GetContribDescriptor(contribPath string) (*FlogoContribDescriptor, error) + func GetContribDescriptorFromImport(depManager DepManager, contribImport Import) (*FlogoContribDescriptor, error) + func ReadContribDescriptor(descriptorFile string) (*FlogoContribDescriptor, error) + func (d *FlogoContribDescriptor) GetContribType() string + type FlogoImport struct + func (flogoImport *FlogoImport) Alias() string + func (flogoImport *FlogoImport) CanonicalAlias() string + func (flogoImport *FlogoImport) CanonicalImport() string + func (flogoImport *FlogoImport) GoGetImportPath() string + func (flogoImport *FlogoImport) GoImportPath() string + func (flogoImport *FlogoImport) GoModImportPath() string + func (flogoImport *FlogoImport) IsClassic() bool + func (flogoImport *FlogoImport) ModulePath() string + func (flogoImport *FlogoImport) RelativeImportPath() string + func (flogoImport *FlogoImport) String() string + func (flogoImport *FlogoImport) Version() string + type FlogoTriggerConfig struct + Id string + Ref string + Type string + type Import interface + Alias func() string + CanonicalAlias func() string + CanonicalImport func() string + GoGetImportPath func() string + GoImportPath func() string + GoModImportPath func() string + IsClassic func() bool + ModulePath func() string + RelativeImportPath func() string + Version func() string + func NewFlogoImport(modulePath, relativeImportPath, version, alias string) Import + func NewFlogoImportFromPath(flogoImportPath string) (Import, error) + func NewFlogoImportWithVersion(imp Import, version string) Import + func ParseImport(flogoImport string) (Import, error) + type Imports []Import + func ParseImports(flogoImports []string) (Imports, error) + type ModDepManager struct + func (m *ModDepManager) AddDependency(flogoImport Import) error + func (m *ModDepManager) AddReplacedContribForBuild() error + func (m *ModDepManager) GetAllImports() (map[string]Import, error) + func (m *ModDepManager) GetPath(flogoImport Import) (string, error) + func (m *ModDepManager) Init() error + func (m *ModDepManager) InstallReplacedPkg(pkg1 string, pkg2 string) error + func (m *ModDepManager) RemoveImport(flogoImport Import) error + type PartialAppDescriptor struct + Actions []interface{} + AppModel string + Imports []string + Resources []interface{} + Triggers []interface{} + type PartialEngineDescriptor struct + Imports []string + Services []*EngineServiceDetails + type Resp struct + Name string