data

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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DatabaseAdminFeatures

type DatabaseAdminFeatures interface {
	UpdatePasswordAndSetExpiration(username, newPassword string, duration time.Duration) (bool, error)
	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)
	ListUsers(username string) ([]*objects.User, error)
	CreateUser(username string) (bool, error)
	GetUserByUsername(username string) (bool, *objects.User, error)
	UpdateUserStatus(username string, isAdmin, isEnabled bool) (succeed bool, updateError error)
	DeleteCaptureInterfacePrivilege(username, i string) (bool, error)
	DeleteARPScanInterfacePrivilege(username, i string) (bool, error)
	DeleteARPSpoofInterfacePrivilege(username, i string) (bool, error)
	AddCaptureInterfacePrivilege(username, i string) (bool, error)
	AddARPScanInterfacePrivilege(username, i string) (bool, error)
	AddARPSpoofInterfacePrivilege(username, i string) (bool, error)
	ListAllARPScans() (bool, []*objects.ARPScanSessionAdminView, error)
	ListAllCaptures() (bool, []*objects.CaptureSessionAdminView, error)
}

type DatabaseGlobalFeatures

type DatabaseGlobalFeatures interface {
	UpdatePassword(username, oldPassword, newPassword string) (bool, error)
	UpdateSecurityQuestion(username, password, newQuestion, newQuestionAnswer string) (bool, error)
}

type DatabaseUserFeatures

type DatabaseUserFeatures interface {
	ListUserCaptures(username string) (bool, []*objects.CaptureSession, error)
	SaveInterfaceCapture(username, captureName, interfaceName, description, script string, promiscuous bool, topologyOptions, hostPacketCountOptions, layer4CountOptions, streamTypeCountOptions interface{}, packets []gopacket.Packet, streams []capture.Data, pcapContents []byte, start, finish time.Time) (bool, error)
	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)
	QueryCapture(username, captureName string) (succeed bool, captureSession *objects.CaptureSession, packets []map[string]interface{}, streams []capture.Data, queryError error)
	ListUserARPScans(username string) (bool, []*objects.ARPScanSession, error)
	SaveARPScan(username string, scanName string, interfaceName string, script string, hosts interface{}, start time.Time, finish time.Time) (bool, error)
	QueryARPScan(username string, scanName string) (bool, *objects.ARPScanSession, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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