noauth

package
v0.1.3-alpha Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNoAuthDB

func NewNoAuthDB() data.Database

Types

type NoAuth

type NoAuth struct {
}

func (*NoAuth) AddARPScanInterfacePrivilege

func (noAuth *NoAuth) AddARPScanInterfacePrivilege(username string, i string) (bool, error)

func (*NoAuth) AddARPSpoofInterfacePrivilege

func (noAuth *NoAuth) AddARPSpoofInterfacePrivilege(username string, i string) (bool, error)

func (*NoAuth) AddCaptureInterfacePrivilege

func (noAuth *NoAuth) AddCaptureInterfacePrivilege(username string, i string) (bool, error)

func (*NoAuth) CheckIfUserCaptureNameWasAlreadyTaken

func (noAuth *NoAuth) CheckIfUserCaptureNameWasAlreadyTaken(username string, name string) (bool, error)

func (*NoAuth) CreateUser

func (noAuth *NoAuth) CreateUser(username string) (bool, error)

func (*NoAuth) DeleteARPScanInterfacePrivilege

func (noAuth *NoAuth) DeleteARPScanInterfacePrivilege(username string, i string) (bool, error)

func (*NoAuth) DeleteARPSpoofInterfacePrivilege

func (noAuth *NoAuth) DeleteARPSpoofInterfacePrivilege(username string, i string) (bool, error)

func (*NoAuth) DeleteCaptureInterfacePrivilege

func (noAuth *NoAuth) DeleteCaptureInterfacePrivilege(username string, i string) (bool, error)

func (*NoAuth) GetUserByUsername

func (noAuth *NoAuth) GetUserByUsername(_ string) (bool, *objects.User, error)

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 *NoAuth) ListUserARPScans(username string) (bool, []*objects.ARPScanSession, error)

func (*NoAuth) ListUserCaptures

func (noAuth *NoAuth) ListUserCaptures(username string) (bool, []*objects.CaptureSession, error)

func (*NoAuth) ListUsers

func (noAuth *NoAuth) ListUsers(username string) ([]*objects.User, error)

func (*NoAuth) QueryCapture

func (noAuth *NoAuth) QueryCapture(username, captureName string) (succeed bool, captureSession *objects.CaptureSession, packets []map[string]interface{}, streams []capture.Data, queryError error)

func (*NoAuth) SaveARPScan

func (noAuth *NoAuth) SaveARPScan(username string, scanName string, interfaceName string, script string, hosts map[string]arp_scanner.Host, start time.Time, finish time.Time) (bool, error)

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) UpdatePassword

func (noAuth *NoAuth) UpdatePassword(_, _, _ string) (bool, error)

func (*NoAuth) UpdatePasswordAndSetExpiration

func (noAuth *NoAuth) UpdatePasswordAndSetExpiration(_, _ string, _ time.Duration) (bool, error)

func (*NoAuth) UpdateSecurityQuestion

func (noAuth *NoAuth) UpdateSecurityQuestion(_, _, _, _ string) (bool, error)

func (*NoAuth) UpdateUserStatus

func (noAuth *NoAuth) UpdateUserStatus(username string, isAdmin, isEnabled bool) (succeed bool, updateError error)

Jump to

Keyboard shortcuts

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