audit

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateManifest

func GenerateManifest(writer io.Writer, db *sql.DB) error

Types

type AuditInput

type AuditInput map[string]manifest.Spec

type AuditResult

type AuditResult struct {
	Hosts           map[string]HostResult
	ExtraHosts      []string
	MissingHostType []string
}

func Audit

func Audit(db *sql.DB, m manifest.Manifest) (AuditResult, error)

func (AuditResult) OK

func (r AuditResult) OK() bool

type HostResult

type HostResult struct {
	MismatchedProcesses []MismatchedProcess
	MissingProcesses    []string
	UnexpectedPorts     []Port
	MissingPorts        []Port
}

func (HostResult) OK

func (hr HostResult) OK() bool

type MismatchedProcess

type MismatchedProcess struct {
	Command string

	Field    string
	Actual   string
	Expected string
}

type Port

type Port int

Jump to

Keyboard shortcuts

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