audit

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommandArgs

func CommandArgs(fp string) ([]string, error)

CommandArgs returns the original commands from the first line of a file

func OutputAuditLog

func OutputAuditLog(dir string, data []byte) error

OutputAuditLog outputs audit log.

func ShowAuditList

func ShowAuditList(dir string) error

ShowAuditList show the audit list.

func ShowAuditLog

func ShowAuditLog(dir string, auditID string) error

ShowAuditLog show the audit with the specified auditID

Types

type Item

type Item struct {
	ID      string `json:"id"`
	Time    string `json:"time"`
	Command string `json:"command"`
}

Item represents a single audit item

func GetAuditList

func GetAuditList(dir string) ([]Item, error)

GetAuditList get the audit item list

Jump to

Keyboard shortcuts

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