MCPcopy
hub / github.com/hardentools/hardentools / HardenInterface

Interface HardenInterface

harden_interface.go:21–28  ·  view source on GitHub ↗

HardenInterface is the general interface which should be used for every harden subject.

Source from the content-addressed store, hash-verified

19// HardenInterface is the general interface which should be used for every
20// harden subject.
21type HardenInterface interface {
22 IsHardened() bool // Returns true if harden subject is already completely hardened.
23 Harden(bool) error // Hardens the harden subject if parameter is true, restores it if parameter is false.
24 Name() string // Returns short name.
25 LongName() string // Returns long name.
26 Description() string // Returns description.
27 HardenByDefault() bool // Returns if this harden subject should be hardened by default or only optional.
28}
29
30// MultiHardenInterfaces is a type for an array of HardenInterfaces.
31type MultiHardenInterfaces struct {

Callers 26

showStatusFunction · 0.65
IsHardenedMethod · 0.65
IsHardenedMethod · 0.65
IsHardenedMethod · 0.65
cmdHardenRestoreFunction · 0.65
IsHardenedMethod · 0.65
createMainGUIContentFunction · 0.65
TestIsHardenedFunction · 0.65
HardenMethod · 0.65
HardenMethod · 0.65
HardenMethod · 0.65
triggerAllFunction · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected