eventrecorder

package
v1.11.2 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2022 License: Apache-2.0 Imports: 9 Imported by: 2

Documentation

Index

Constants

View Source
const (
	AuthTypeNone = iota
	AuthTypePassword
	AuthTypeSymantecVIP
	AuthTypeU2F
	AuthTypeTOTP
)
View Source
const (
	VIPAuthTypeOTP = iota
	VIPAuthTypePush
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthInfo added in v1.4.3

type AuthInfo struct {
	AuthType    uint
	Username    string
	VIPAuthType uint8
}

type EventRecorder

type EventRecorder struct {
	AuthChannel                 chan<- *AuthInfo
	RequestEventsChannel        chan<- chan<- Events
	ServiceProviderLoginChannel chan<- *SPLoginInfo
	SshCertChannel              chan<- *ssh.Certificate
	WebLoginChannel             chan<- string
	X509CertChannel             chan<- *x509.Certificate
	// contains filtered or unexported fields
}

func New

func New(filename string, logger log.Logger) (*EventRecorder, error)

type EventType

type EventType struct {
	AuthType           uint
	CreateTime         uint64 // Seconds since Epoch.
	LifetimeSeconds    uint32
	ServiceProviderUrl string
	Ssh                bool
	WebLogin           bool
	X509               bool
	VIPAuthType        uint8
}

type Events

type Events struct {
	ComputeTime time.Duration
	Events      EventsMap
}

type EventsMap

type EventsMap map[string][]EventType // Key: username.

type SPLoginInfo added in v1.4.3

type SPLoginInfo struct {
	URL      string
	Username string
}

Jump to

Keyboard shortcuts

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