audit

package
v1.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 20, 2023 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AuditResultPerServer = newAuditGaugeVec(
		"audit_result_per_server",
		"Latest audit result (1 = ok, 0 = tampered).",
	)
	AuditCurrRootPerServer = newAuditGaugeVec(
		"audit_curr_root_per_server",
		"Current root index used for the latest audit.",
	)
	AuditRunAtPerServer = newAuditGaugeVec(
		"audit_run_at_per_server",
		"Timestamp in unix seconds at which latest audit run.",
	)
	AuditPrevRootPerServer = newAuditGaugeVec(
		"audit_prev_root_per_server",
		"Previous root index used for the latest audit.",
	)
)

Audit metrics

View Source
var ErrAgentNotActive = errors.New("agent not active")

ErrAgentNotActive ...

Functions

func Init

func Init(args []string, cmd *cobra.Command) (err error)

Init ...

Types

type AuditAgent

type AuditAgent interface {
	Manage(args []string, cmd *cobra.Command) (string, error)
	InitAgent() (AuditAgent, error)
}

AuditAgent ...

func NewAuditAgent

func NewAuditAgent() (AuditAgent, error)

NewAuditAgent ...

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL