Documentation ¶
Index ¶
- Constants
- func AssertUserLogSliceEqual(t *testing.T, exp, act UserLogSlice)
- func AssertUserLogSliceEqualSort(t *testing.T, exp, act UserLogSlice)
- func GetPidLoginuid(pid int32) (uint32, error)
- func LogUserCmd(msg string, result uint)
- func LogUserConfig(msg string, result bool)
- type Audit
- type Auditer
- type LogType
- type TestAudit
- type UserLog
- type UserLogSlice
Constants ¶
View Source
const ( LOG_TYPE_USER_CFG = iota LOG_TYPE_USER_CMD = iota )
Variables ¶
This section is empty.
Functions ¶
func AssertUserLogSliceEqual ¶
func AssertUserLogSliceEqual(t *testing.T, exp, act UserLogSlice)
func AssertUserLogSliceEqualSort ¶
func AssertUserLogSliceEqualSort(t *testing.T, exp, act UserLogSlice)
func GetPidLoginuid ¶
func LogUserCmd ¶
func LogUserConfig ¶
Types ¶
type TestAudit ¶
type TestAudit struct { Auditer // contains filtered or unexported fields }
func NewTestAudit ¶
func NewTestAudit() *TestAudit
func (*TestAudit) ClearUserLogs ¶
func (a *TestAudit) ClearUserLogs()
func (*TestAudit) GetUserLogs ¶
func (a *TestAudit) GetUserLogs() UserLogSlice
func (*TestAudit) LogUserCmd ¶
func (*TestAudit) LogUserConfig ¶
type UserLogSlice ¶
type UserLogSlice []UserLog
func (UserLogSlice) Len ¶
func (s UserLogSlice) Len() int
func (UserLogSlice) Less ¶
func (s UserLogSlice) Less(i, j int) bool
func (UserLogSlice) Swap ¶
func (s UserLogSlice) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.