Documentation ¶
Index ¶
- func NewNoAuthDB() data.Database
- type NoAuth
- func (noAuth *NoAuth) AddARPScanInterfacePrivilege(username string, i string) (bool, error)
- func (noAuth *NoAuth) AddARPSpoofInterfacePrivilege(username string, i string) (bool, error)
- func (noAuth *NoAuth) AddCaptureInterfacePrivilege(username string, i string) (bool, error)
- func (noAuth *NoAuth) CheckIfUserCaptureNameWasAlreadyTaken(username string, name string) (bool, error)
- func (noAuth *NoAuth) CreateUser(username string) (bool, error)
- func (noAuth *NoAuth) DeleteARPScanInterfacePrivilege(username string, i string) (bool, error)
- func (noAuth *NoAuth) DeleteARPSpoofInterfacePrivilege(username string, i string) (bool, error)
- func (noAuth *NoAuth) DeleteCaptureInterfacePrivilege(username string, i string) (bool, error)
- func (noAuth *NoAuth) GetUserByUsername(_ string) (bool, *objects.User, error)
- func (noAuth *NoAuth) GetUserInterfacePermissions(username string) (succeed bool, user *objects.User, ...)
- func (noAuth *NoAuth) ListUserARPScans(username string) (bool, []*objects.ARPScanSession, error)
- func (noAuth *NoAuth) ListUserCaptures(username string) (bool, []*objects.CaptureSession, error)
- func (noAuth *NoAuth) ListUsers(username string) ([]*objects.User, error)
- func (noAuth *NoAuth) QueryCapture(username, captureName string) (succeed bool, captureSession *objects.CaptureSession, ...)
- func (noAuth *NoAuth) SaveARPScan(username string, scanName string, interfaceName string, script string, ...) (bool, error)
- func (noAuth *NoAuth) SaveImportCapture(username string, name string, description string, script string, ...) (bool, error)
- func (noAuth *NoAuth) SaveInterfaceCapture(username, captureName, interfaceName, description, script string, ...) (bool, error)
- func (noAuth *NoAuth) UpdatePassword(_, _, _ string) (bool, error)
- func (noAuth *NoAuth) UpdatePasswordAndSetExpiration(_, _ string, _ time.Duration) (bool, error)
- func (noAuth *NoAuth) UpdateSecurityQuestion(_, _, _, _ string) (bool, error)
- func (noAuth *NoAuth) UpdateUserStatus(username string, isAdmin, isEnabled bool) (succeed bool, updateError error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewNoAuthDB ¶
Types ¶
type NoAuth ¶
type NoAuth struct { }
func (*NoAuth) AddARPScanInterfacePrivilege ¶
func (*NoAuth) AddARPSpoofInterfacePrivilege ¶
func (*NoAuth) AddCaptureInterfacePrivilege ¶
func (*NoAuth) CheckIfUserCaptureNameWasAlreadyTaken ¶
func (*NoAuth) DeleteARPScanInterfacePrivilege ¶
func (*NoAuth) DeleteARPSpoofInterfacePrivilege ¶
func (*NoAuth) DeleteCaptureInterfacePrivilege ¶
func (*NoAuth) GetUserByUsername ¶
func (*NoAuth) GetUserInterfacePermissions ¶
func (noAuth *NoAuth) GetUserInterfacePermissions(username string) (succeed bool, user *objects.User, captureInterfaces map[string]*objects.CapturePermission, arpScanInterfaces map[string]*objects.ARPScanPermission, arpSpoofInterfaces map[string]*objects.ARPSpoofPermission, err error)
func (*NoAuth) ListUserARPScans ¶
func (*NoAuth) ListUserCaptures ¶
func (*NoAuth) QueryCapture ¶
func (*NoAuth) SaveARPScan ¶
func (*NoAuth) SaveImportCapture ¶
func (noAuth *NoAuth) SaveImportCapture(username string, name string, description string, script string, topologyOptions interface{}, hostCountOptions interface{}, layer4Options interface{}, streamTypeCountOptions interface{}, packets []gopacket.Packet, streams []capture.Data, pcap []byte) (bool, error)
func (*NoAuth) SaveInterfaceCapture ¶
func (noAuth *NoAuth) SaveInterfaceCapture(username, captureName, interfaceName, description, script string, promiscuous bool, topology, hostPacketCount, layer4Count, streamTypeCount interface{}, packets []gopacket.Packet, streams []capture.Data, pcapContents []byte, start, finish time.Time) (bool, error)
func (*NoAuth) UpdatePasswordAndSetExpiration ¶
func (*NoAuth) UpdateSecurityQuestion ¶
Click to show internal directories.
Click to hide internal directories.