Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IntegrityChecker ¶
type IntegrityChecker struct {
Hash string
}
IntegrityChecker verifies configuration integrity
func NewIntegrityChecker ¶
func NewIntegrityChecker() *IntegrityChecker
NewIntegrityChecker creates a new integrity checker
func (*IntegrityChecker) ComputeHash ¶
func (ic *IntegrityChecker) ComputeHash(version string, data map[string]interface{}, metadata map[string]string) (string, error)
ComputeHash computes the SHA256 hash of the configuration data
type IntegrityError ¶
IntegrityError represents an integrity verification failure
func NewIntegrityError ¶
func NewIntegrityError(message string, hash string, stored string) *IntegrityError
NewIntegrityError creates a new integrity error
func (*IntegrityError) Error ¶
func (e *IntegrityError) Error() string
Error implements the error interface
Click to show internal directories.
Click to hide internal directories.