util

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 4, 2022 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecCmd

func ExecCmd(cmd *exec.Cmd, workingDir string) error

func SetVerbose

func SetVerbose(enable bool)

func Verbose

func Verbose() bool

Types

type DepManager

type DepManager interface {
	Init() error
	AddDependency(flogoImport Import) error
	GetPath(flogoImport Import) (string, error)
	AddReplacedContribForBuild() error
	InstallReplacedPkg(string, string) error
	GetAllImports() (map[string]Import, error)
}

func NewDepManager

func NewDepManager(sourceDir string) DepManager

type ModDepManager

type ModDepManager struct {
	// contains filtered or unexported fields
}

func (*ModDepManager) AddDependency

func (m *ModDepManager) AddDependency(flogoImport Import) error

func (*ModDepManager) AddReplacedContribForBuild

func (m *ModDepManager) AddReplacedContribForBuild() error

func (*ModDepManager) GetAllImports

func (m *ModDepManager) GetAllImports() (map[string]Import, error)

func (*ModDepManager) GetPath

func (m *ModDepManager) GetPath(flogoImport Import) (string, error)

GetPath gets the path of where the

func (*ModDepManager) Init

func (m *ModDepManager) Init() error

func (*ModDepManager) InstallReplacedPkg

func (m *ModDepManager) InstallReplacedPkg(pkg1 string, pkg2 string) error

func (*ModDepManager) RemoveImport

func (m *ModDepManager) RemoveImport(flogoImport Import) error

type Resp

type Resp struct {
	Name string `json:"name"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL