...

Package properties

import "ssa/spelunker/pkg/properties"
Overview
Index

Overview ▾

Package properties This file contains methods to retrieve properties from workflows in the archive database

func GetArgument

func GetArgument(prop Property, wfId int, db *sql.DB) (string, error)

GetArgument Query the workflow arguments for a property with JSONPath

@param prop a Property with the JSONPath query @param wfId an int with the Archive or Workspaces workflow ID @param db a *sql.DB with a connection to the archive database @return A string with the property value or an error

type Property

Property The type which stores the JSONPath queries for each property If we want to be able to get a new property from the database, we simply 1. Add a command line flag to retrieve it 2. Add an enum value for it 3. Add the JSONPath query in the String method

type Property int
const (
    ResultsDir Property = 1
)

func (Property) String

func (p Property) String() string