Documentation ¶
Index ¶
- Variables
- func AccessedPathUri(g *rdf.Graph, pathIndex int64) rdf.Uri
- func AddAccessedPathTriples(g *rdf.Graph, accessed []AccessedPath)
- func AddArgumentTriples(g *rdf.Graph, arguments []Argument)
- func AddExecutionTriples(g *rdf.Graph, executions []Execution)
- func AddFileOpenTriples(g *rdf.Graph, fileOpens []FileOpen)
- func AddPathRoleTriples(g *rdf.Graph, pathRoles []PathRole)
- func AddProcessTriples(g *rdf.Graph, processes []Process)
- func AddRunTriples(g *rdf.Graph, trace Trace, run WorkflowRun)
- func ArgumentUri(g *rdf.Graph, executionURI rdf.Uri, id int64) rdf.Uri
- func D(id int64) string
- func E(id int64) string
- func ExecutionUri(g *rdf.Graph, id int64) rdf.Uri
- func FileAccessUri(g *rdf.Graph, processID int64, openID int64) rdf.Uri
- func GetTraceGraph(trace Trace) *rdf.Graph
- func I(id int64) string
- func O(id int64) string
- func P(id int64) string
- func PathIndex(path string) (pathIndex int64, ok bool)
- func PathRoleURI(g *rdf.Graph, id int64) rdf.Uri
- func Prepend(s string, i int64) string
- func ProcessUri(g *rdf.Graph, id int64) rdf.Uri
- func Q(s string) string
- func R(id int64) string
- func Role(path string) string
- func RunBaseUri(g *rdf.Graph, run WorkflowRun) rdf.Uri
- func TrimWorkingDirPrefix(absolutePath string) string
- func WriteAccessedPathFacts(w io.Writer, accessed []AccessedPath)
- func WriteArgumentFacts(w io.Writer, arguments []Argument)
- func WriteExecutionFacts(w io.Writer, executed []Execution)
- func WriteFileOpenFacts(w io.Writer, opens []FileOpen)
- func WritePathRoleFacts(w io.Writer, pathRoles []PathRole)
- func WriteProcessFacts(writer io.Writer, processes []Process)
- func WriteRunFacts(writer io.Writer, run WorkflowRun)
- func WriteTraceFacts(file io.Writer, trace Trace)
- type AccessedPath
- type Argument
- type Execution
- type FileOpen
- type PathRole
- type Process
- type Trace
- type WorkflowRun
Constants ¶
This section is empty.
Variables ¶
View Source
var ( MaskTimestamps = true IgnoreFirstProcessFiles = true WorkingDirPathIndex int64 )
Functions ¶
func AddAccessedPathTriples ¶ added in v0.2.6
func AddAccessedPathTriples(g *rdf.Graph, accessed []AccessedPath)
func AddArgumentTriples ¶
func AddExecutionTriples ¶
func AddFileOpenTriples ¶
func AddPathRoleTriples ¶
func AddProcessTriples ¶
func AddRunTriples ¶
func AddRunTriples(g *rdf.Graph, trace Trace, run WorkflowRun)
func GetTraceGraph ¶
func RunBaseUri ¶ added in v0.2.6
func RunBaseUri(g *rdf.Graph, run WorkflowRun) rdf.Uri
func TrimWorkingDirPrefix ¶
func WriteAccessedPathFacts ¶
func WriteAccessedPathFacts(w io.Writer, accessed []AccessedPath)
func WriteArgumentFacts ¶
func WriteExecutionFacts ¶
func WriteFileOpenFacts ¶
func WritePathRoleFacts ¶
func WriteProcessFacts ¶
func WriteRunFacts ¶
func WriteRunFacts(writer io.Writer, run WorkflowRun)
func WriteTraceFacts ¶
Types ¶
type AccessedPath ¶
type AccessedPath struct { AccessID string RunID int64 Absolute string Relative string PathIndex int64 PathRole string }
func GetAccessedPaths ¶
func GetAccessedPaths(executed []Execution, opens []FileOpen) []AccessedPath
func (AccessedPath) String ¶
func (f AccessedPath) String() string
type Argument ¶
Argument represents the arguments passed to executions recorded in the executed_files table of trace.sqlite3
func GetArguments ¶
GetArguments returns all arguments pass to execution recorded in the executed_files table of trace.sqlite3
type Execution ¶
type Execution struct { ExecID int64 Name string RunID int64 Timestamp int64 Process int64 Argv string Envp string WorkingDir string }
Execution represents a row in the executed_files table of trace.sqlite3
func GetExecutions ¶
GetExecutions returns all rows in the executed_files table of trace.sqlite3
type FileOpen ¶
type FileOpen struct { OpenID int64 RunID int64 Name string Timestamp int64 Mode int64 IsDirectory bool Process int64 }
FileOpen represents a row in the opened_files table of trace.sqlite3
func GetFileOpens ¶
GetFileOpens returns all rows in the opened_files table of trace.sqlite3
type Process ¶
type Process struct { ID int64 RunID int64 Parent sql.NullInt64 Timestamp int64 IsThread bool ExitCode int64 }
Process represents a row in the processes table of trace.sqlite3
func GetProcesses ¶
GetProcesses returns all rows in the processes table of trace.sqlite3
type Trace ¶
type Trace struct { FirstProcess int64 PathRoles []PathRole Run WorkflowRun Processes []Process Executions []Execution Arguments []Argument FileOpens []FileOpen Accesses []AccessedPath }
type WorkflowRun ¶
func NewWorkflowRun ¶
func NewWorkflowRun(runId int64, runName string) WorkflowRun
func (WorkflowRun) String ¶
func (r WorkflowRun) String() string
Click to show internal directories.
Click to hide internal directories.