MCPcopy
hub / github.com/hardentools/hardentools / Harden

Method Harden

harden_interface.go:41–49  ·  view source on GitHub ↗

Harden hardens (if harden == true) or restores (if harden == false) MultiHardenInterfaces.

(harden bool)

Source from the content-addressed store, hash-verified

39// Harden hardens (if harden == true) or restores (if harden == false)
40// MultiHardenInterfaces.
41func (mhInterfaces *MultiHardenInterfaces) Harden(harden bool) error {
42 for _, mhInterface := range mhInterfaces.hardenInterfaces {
43 err := mhInterface.Harden(harden)
44 if err != nil {
45 return err
46 }
47 }
48 return nil
49}
50
51// IsHardened verifies if all MultiHardenInterfaces members are hardened.
52func (mhInterfaces *MultiHardenInterfaces) IsHardened() bool {

Callers

nothing calls this directly

Calls 1

HardenMethod · 0.65

Tested by

no test coverage detected