Documentation ¶
Index ¶
- Constants
- func BuildDependencyTree(depTreeParams DepTreeParams, tech techutils.Technology) ([]*xrayUtils.GraphNode, map[string]*xray.DepTreeNode, error)
- func GetMavenPluginInstallationGoals(pluginPath string) []string
- func GetModuleTreeAndDependencies(module *moduleDepTree) (*xrayUtils.GraphNode, map[string]*xray.DepTreeNode)
- type DepTreeManager
- type DepTreeParams
- type MavenDepTreeCmd
- type MavenDepTreeManager
- func (mdt *MavenDepTreeManager) CreateTempDirWithSettingsXmlIfNeeded() (tempDirPath string, clearMavenDepTreeRun func() error, err error)
- func (mdt *MavenDepTreeManager) GetSettingsXmlPath() string
- func (mdt *MavenDepTreeManager) RunMavenDepTree() (depTreeOutput string, clearMavenDepTreeRun func() error, err error)
- func (mdt *MavenDepTreeManager) RunMvnCmd(goals []string) (cmdOutput []byte, err error)
- func (mdt *MavenDepTreeManager) SetSettingsXmlPath(settingsXmlPath string)
Constants ¶
View Source
const (
GavPackageTypeIdentifier = "gav://"
)
Variables ¶
This section is empty.
Functions ¶
func BuildDependencyTree ¶
func BuildDependencyTree(depTreeParams DepTreeParams, tech techutils.Technology) ([]*xrayUtils.GraphNode, map[string]*xray.DepTreeNode, error)
func GetModuleTreeAndDependencies ¶
func GetModuleTreeAndDependencies(module *moduleDepTree) (*xrayUtils.GraphNode, map[string]*xray.DepTreeNode)
Returns a dependency tree and a flat list of the module's dependencies for the given module
Types ¶
type DepTreeManager ¶
type DepTreeManager struct {
// contains filtered or unexported fields
}
func NewDepTreeManager ¶
func NewDepTreeManager(params *DepTreeParams) DepTreeManager
func (*DepTreeManager) GetDepsRepo ¶
func (dtm *DepTreeManager) GetDepsRepo() string
type DepTreeParams ¶
type MavenDepTreeCmd ¶
type MavenDepTreeCmd string
const ( Projects MavenDepTreeCmd = "projects" Tree MavenDepTreeCmd = "tree" )
type MavenDepTreeManager ¶
type MavenDepTreeManager struct { DepTreeManager // contains filtered or unexported fields }
func NewMavenDepTreeManager ¶
func NewMavenDepTreeManager(params *DepTreeParams, cmdName MavenDepTreeCmd) *MavenDepTreeManager
func (*MavenDepTreeManager) CreateTempDirWithSettingsXmlIfNeeded ¶
func (mdt *MavenDepTreeManager) CreateTempDirWithSettingsXmlIfNeeded() (tempDirPath string, clearMavenDepTreeRun func() error, err error)
Creates a temporary directory. If Artifactory resolution repo is provided, a settings.xml file with the provided server and repository will be created inside the temprary directory.
func (*MavenDepTreeManager) GetSettingsXmlPath ¶
func (mdt *MavenDepTreeManager) GetSettingsXmlPath() string
func (*MavenDepTreeManager) RunMavenDepTree ¶
func (mdt *MavenDepTreeManager) RunMavenDepTree() (depTreeOutput string, clearMavenDepTreeRun func() error, err error)
Runs maven-dep-tree according to cmdName. Returns the plugin output along with a function pointer to revert the plugin side effects. If a non-nil clearMavenDepTreeRun pointer is returnes it means we had no error during the entire function execution
func (*MavenDepTreeManager) RunMvnCmd ¶
func (mdt *MavenDepTreeManager) RunMvnCmd(goals []string) (cmdOutput []byte, err error)
func (*MavenDepTreeManager) SetSettingsXmlPath ¶
func (mdt *MavenDepTreeManager) SetSettingsXmlPath(settingsXmlPath string)
Click to show internal directories.
Click to hide internal directories.