Documentation ¶
Index ¶
- func AddPackageFunctionNodesToGraph(serviceName string, serviceVersion string, ...)
- func CreateClusterVerisonNode(clusterVersion string)
- func CreateCompileTimePaths(edges []serviceparser.CompileEdge, serviceName string)
- func CreateDependencyNodes(serviceName, serviceVersion string, ic []serviceparser.ImportContainer)
- func CreateFunctionNodes(serviceName string, packagename string, functionNames []string) string
- func CreateNewServiceVersionNode(clusterVersion, serviceName, version string)
- func GetCompileTimePathsAffectedByPR(points *serviceparser.TouchPoints) []map[string]interface{}
- func GetRunTimePathsAffectedByPR(points *serviceparser.TouchPoints) []map[string]interface{}
- func NewPackageNodeQuery(serviceName, serviceVersion, packagename string) string
- func ReadFile(filepath string) string
- func RunGroovyScript(scriptPath string)
- func RunQuery(query string) map[string]interface{}
- func RunQueryUnMarshaled(query string) string
- type PRPayload
- type PrConfidence
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddPackageFunctionNodesToGraph ¶
func AddPackageFunctionNodesToGraph(serviceName string, serviceVersion string, components *serviceparser.ServiceComponents)
AddPackageFunctionNodesToGraph as advertised, adds a package node and its corresponding functions to the graph.
func CreateClusterVerisonNode ¶
func CreateClusterVerisonNode(clusterVersion string)
CreateClusterVerisonNode creates the top level cluster version node CALL THIS JUST ONCE PER RUN OF THIS SCRIPT, THAT IS HOW THIS CODE IS DESIGNED.
func CreateCompileTimePaths ¶
func CreateCompileTimePaths(edges []serviceparser.CompileEdge, serviceName string)
CreateCompileTimePaths creates compile time paths from the callgraph output.
func CreateDependencyNodes ¶
func CreateDependencyNodes(serviceName, serviceVersion string, ic []serviceparser.ImportContainer)
func CreateFunctionNodes ¶
CreateFunctionNodes adds function nodes to the graph and an edge between it and it's parent service and it's package DO NOT CALL NewPackageNodeQuery BEFORE YOU'VE ENTERED ALL THE NODES FOR A PACKAGE
func CreateNewServiceVersionNode ¶
func CreateNewServiceVersionNode(clusterVersion, serviceName, version string)
CreateNewServiceVersionNode creates a new service node for a codebase. DO NOT CALL THIS FUNCTION WITHOUT A CLUSTER VERSION NODE IN CONTEXT
func GetCompileTimePathsAffectedByPR ¶
func GetCompileTimePathsAffectedByPR(points *serviceparser.TouchPoints) []map[string]interface{}
func GetRunTimePathsAffectedByPR ¶
func GetRunTimePathsAffectedByPR(points *serviceparser.TouchPoints) []map[string]interface{}
func NewPackageNodeQuery ¶
NewPackageNodeQuery creates a new package node and joins it using an edge to the parent service node.
func RunGroovyScript ¶
func RunGroovyScript(scriptPath string)
RunGroovyScript takes the path to a groovy script and runs it at the Gremlin console.
func RunQueryUnMarshaled ¶
RunQuery runs the specified gremling query and returns its result unmarshaled.
Types ¶
type PrConfidence ¶
type PrConfidence struct { ConfidenceScore float64 `json:"confidence_score"` PrTitle string `json:"pr_title"` TouchPoints serviceparser.TouchPoints `json:"touch_points"` CompilePaths []map[string]interface{} `json:"compile_paths"` CompilePathCount int `json:"compile_path_count"` RunTimePaths []map[string]interface{} `json:"run_time_paths"` RuntimePathCount int `json:"runtime_path_count"` }
func GetPRConfidenceScore ¶
func GetPRConfidenceScore(points *serviceparser.TouchPoints) PrConfidence