Documentation ¶
Index ¶
- type Workspace
- func (w *Workspace) Close()
- func (w *Workspace) GetChildControls() []*modconfig.Control
- func (w *Workspace) GetMod(modName string) *modconfig.Mod
- func (w *Workspace) GetNamedQuery(queryName string) (*modconfig.Query, bool)
- func (w *Workspace) GetNamedQueryMap() map[string]*modconfig.Query
- func (w *Workspace) GetResourceMaps() *modconfig.WorkspaceResourceMaps
- func (w *Workspace) LoadExclusions() error
- func (w *Workspace) Mods() []*modconfig.Mod
- 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 // contains filtered or unexported fields }
func (*Workspace) GetChildControls ¶ added in v0.5.0
GetChildControls builds a flat list of all controls in the worlspace, including dependencies
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) GetNamedQuery ¶
func (*Workspace) GetNamedQueryMap ¶
func (*Workspace) GetResourceMaps ¶ added in v0.5.0
func (w *Workspace) GetResourceMaps() *modconfig.WorkspaceResourceMaps
func (*Workspace) LoadExclusions ¶
Click to show internal directories.
Click to hide internal directories.