Documentation ¶
Index ¶
- type Workspace
- func (w *Workspace) CheckRequiredPluginsInstalled() error
- func (w *Workspace) Close()
- func (w *Workspace) GetChildControls() []*modconfig.Control
- func (w *Workspace) GetControl(controlName string) (*modconfig.Control, bool)
- func (w *Workspace) GetControlMap() map[string]*modconfig.Control
- func (w *Workspace) GetMod(modName string) *modconfig.Mod
- func (w *Workspace) GetQuery(queryName string) (*modconfig.Query, bool)
- func (w *Workspace) GetQueryMap() map[string]*modconfig.Query
- func (w *Workspace) GetResourceMaps() *modconfig.WorkspaceResourceMaps
- func (w *Workspace) GetSortedBenchmarksAndControlNames() []string
- func (w *Workspace) GetSortedNamedQueryNames() []string
- func (w *Workspace) LoadExclusions() error
- func (w *Workspace) Mods() []*modconfig.Mod
- func (w *Workspace) PublishReportEvent(e reportevents.ReportEvent)
- func (w *Workspace) RegisterReportEventHandler(handler reportevents.ReportEventHandler)
- func (w *Workspace) SetupWatcher(client *db.Client) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Workspace ¶
type Workspace struct { Path string Mod *modconfig.Mod // maps of mod resources from this mod and ALL DEPENDENCIES, keyed by long and short names QueryMap map[string]*modconfig.Query ControlMap map[string]*modconfig.Control BenchmarkMap map[string]*modconfig.Benchmark ModMap map[string]*modconfig.Mod ReportMap map[string]*modconfig.Report PanelMap map[string]*modconfig.Panel // contains filtered or unexported fields }
func (*Workspace) CheckRequiredPluginsInstalled ¶ added in v0.6.0
func (*Workspace) GetChildControls ¶ added in v0.5.0
GetChildControls builds a flat list of all controls in the worlspace, including dependencies
func (*Workspace) GetControl ¶ added in v0.6.1
func (*Workspace) GetControlMap ¶ added in v0.6.1
func (*Workspace) GetMod ¶ added in v0.5.0
GetMod attempts to return the mod with a name matching 'modName' It first checks the workspace mod, then checks all mod dependencies
func (*Workspace) GetQueryMap ¶ added in v0.6.1
func (*Workspace) GetResourceMaps ¶ added in v0.5.0
func (w *Workspace) GetResourceMaps() *modconfig.WorkspaceResourceMaps
func (*Workspace) GetSortedBenchmarksAndControlNames ¶ added in v0.6.0
func (*Workspace) GetSortedNamedQueryNames ¶ added in v0.6.0
func (*Workspace) LoadExclusions ¶
func (*Workspace) Mods ¶ added in v0.5.0
Mods returns a flat list of all mods - the workspace mod and depdnency mods
func (*Workspace) PublishReportEvent ¶ added in v0.7.1
func (w *Workspace) PublishReportEvent(e reportevents.ReportEvent)
func (*Workspace) RegisterReportEventHandler ¶ added in v0.7.1
func (w *Workspace) RegisterReportEventHandler(handler reportevents.ReportEventHandler)
Click to show internal directories.
Click to hide internal directories.