audit

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: May 28, 2020 License: Apache-2.0 Imports: 22 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.",
	)
)
View Source
var ErrAgentNotActive = errors.New("agent not active")

Functions

func Init

func Init(args []string)

func IsAuditD

func IsAuditD(args []string)

func QuitToStdErr

func QuitToStdErr(msg interface{})

QuitToStdErr prints an error on stderr and closes

Types

type AuditAgent

type AuditAgent interface {
	Manage(args []string) (string, error)
	InitAgent() (AuditAgent, error)
}

func NewAuditAgent

func NewAuditAgent() (AuditAgent, error)

Jump to

Keyboard shortcuts

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