ui

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2022 License: BSD-3-Clause Imports: 30 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

InterfaceIp : Bind to this Interface

View Source
var PathsforGenericPages map[string]string = map[string]string{
	"in-scope":           "In Scope",
	"out-of-scope":       "Out of Scope",
	"not-accepted-vulns": "Not Accepted Vuls",
	"active-subs":        "Active Subs",
	"all-subs":           "All Subs",
	"other-assets":       "Other Assets",
	"all-urls":           "All URLs",
	"active-urls":        "Active URLs",
	"notes":              "Notes",
	"findings":           "Findings",
	"uncertain":          "Uncertain",
}

Port ...

View Source
var ServerAlive binding.Bool = binding.NewBool()

ServerAlive ...

Functions

func AddKeyboardEvents

func AddKeyboardEvents(w fyne.Window)

AddKeyboardEvents : Adds Shortcuts

func AddPointer

func AddPointer(wx fyne.Window, ap fyne.App)

AddPointer ...

func AddRouting

func AddRouting()

AddRouting ...

func Check

func Check(port int) (status bool, err error)

Check ...

func Commit

func Commit(rw http.ResponseWriter, r *http.Request)

Commit : This is used to commit changes to mongodb ,Handle Function Would be /commit

func FyneError

func FyneError(err error)

func GenericPage

func GenericPage(rw http.ResponseWriter, r *http.Request)

GenericPage Handler : Handle Function Would be /page/pagename

func GetPreferenceDBString

func GetPreferenceDBString() string

GetPreferenceDBString ...

func GetPreferenceDBStringtoURL

func GetPreferenceDBStringtoURL()

GetPreferenceDBStringtoURL ...

func HomeScreen

func HomeScreen() fyne.CanvasObject

HomeScreen ...

func OrgCheckListRoute

func OrgCheckListRoute(rw http.ResponseWriter, r *http.Request)

OrgCheckListRoute : List Organization CheckList Handle Function would be /org/checklist

func OrgToolOutput

func OrgToolOutput(rw http.ResponseWriter, r *http.Request)

Org GET PUT Tool Output Handle Function would be /org/checklist_item_name

func SavePreferenceDBString

func SavePreferenceDBString(db string)

SavePreferenceDBString ...

func StartServer

func StartServer()

StartServer ...

func StartupWindow

func StartupWindow() fyne.CanvasObject

StartupWindow ...

func StopServer

func StopServer()

StopServer ...

func UI_INIT

func UI_INIT()

UI_INIT ...

func WebCheckList

func WebCheckList(rw http.ResponseWriter, r *http.Request)

WebCheckListList WebCheckList Handle Function would be /web/checklist

func WebToolOutput

func WebToolOutput(rw http.ResponseWriter, r *http.Request)

WebToolOutput : CheckList GET PUT Tool Output Handle Function would be /web/subdomain/checklist_item_name

func WorkingSubdomain

func WorkingSubdomain(rw http.ResponseWriter, r *http.Request)

WorkingSubdomain : Gets Current Working Subdomain Handle Function would be /web/working

Types

type CheckLists

type CheckLists struct {
	MyTrees         map[string]*mytree.Mytree //Tree for each subdomain
	BtnName         string                    //Panel Button Name
	ActiveSubs      *Page                     //All subdomains page
	ActiveTreeIndex string                    //Current Active tree
	Organized       binding.Bool              //Organize data
}

CheckLists : Web CheckLists Page

func NewCheckLists

func NewCheckLists() *CheckLists

NewCheckLists ...

func (*CheckLists) GetButton

func (c *CheckLists) GetButton() *mywidgets.CustomButton

GetButton ...

func (*CheckLists) GetDefaultCheckList

func (c *CheckLists) GetDefaultCheckList() map[string][]string

GetDefaultCheckList ...

func (*CheckLists) Home

func (c *CheckLists) Home() *fyne.Container

Home : View All subdomains

func (*CheckLists) Render

func (c *CheckLists) Render() *fyne.Container

Render ...

func (*CheckLists) Store

func (c *CheckLists) Store()

Store : save data

func (*CheckLists) Update

func (c *CheckLists) Update()

Update ...

type CredPage

type CredPage struct {
	HeaderText     string          `bson:"headername"`
	Heading        *canvas.Text    `bson:"-"`
	Rows           []*CredRow      `bson:"rows"`
	Holder         *fyne.Container `bson:"-"`
	CollectionName string          `bson:"-"`
	PanelName      string          `bson:"panelname"`
}

CredPage ...

func NewCredPage

func NewCredPage() *CredPage

NewCredPage ...

func (*CredPage) GetButton

func (P *CredPage) GetButton() *mywidgets.CustomButton

GetButton ...

func (*CredPage) Render

func (P *CredPage) Render() *fyne.Container

Render ...

func (*CredPage) Setup

func (P *CredPage) Setup()

Setup ...

func (*CredPage) Store

func (P *CredPage) Store()

Store : Save to DB

func (*CredPage) Update

func (P *CredPage) Update()

Update : Load From Database

type CredRow

type CredRow struct {
	Username    string `bson:"username"`
	Password    string `bson:"password"`
	Description string `bson:"description"`
	// contains filtered or unexported fields
}

CredRow ...

func NewCredRow

func NewCredRow() CredRow

NewCredRow ...

func (*CredRow) Render

func (c *CredRow) Render() *fyne.Container

Render ...

func (*CredRow) Store

func (c *CredRow) Store()

Store ...

func (*CredRow) Update

func (c *CredRow) Update()

Update : Updates Data to Widgets

type EmptyContainer

type EmptyContainer struct {
	Pages        []Page
	CheckList    *CheckLists
	OrgCheckL    *OrgCheckList
	Cont         fyne.Container
	PeriodicSave bool //commit to db when page is changed
}

EmptyContainer : Container Beside The Nav Panel

E EmptyContainer New Instance

func NewEmptyContainer

func NewEmptyContainer() *EmptyContainer

NewEmptyContainer ...

func (*EmptyContainer) GetPage

func (e *EmptyContainer) GetPage(pagename string) (*Page, error)

GetPage : Get Page by Its Name

func (*EmptyContainer) SaveState

func (e *EmptyContainer) SaveState()

SaveState : Commit Changes to DB

func (*EmptyContainer) Show

func (e *EmptyContainer) Show(obj fyne.CanvasObject)

Show : Show This Object

type NavPanel struct {
	Color   color.Color
	Objects []fyne.CanvasObject
}

Navigation Panel

func (N *NavPanel) Render() fyne.CanvasObject

Render ...

type OrgCheckList

type OrgCheckList struct {
	MyTree     *mytree.Mytree
	BtnName    string
	Identifier string
}

OrgCheckList will be useful for organization/OSINT checklist

func NewOrgCheckList

func NewOrgCheckList() *OrgCheckList

NewOrgCheckList ...

func (*OrgCheckList) GetButton

func (o *OrgCheckList) GetButton() *mywidgets.CustomButton

GetButton ...

func (*OrgCheckList) Render

func (o *OrgCheckList) Render() *fyne.Container

Render ...

func (*OrgCheckList) Store

func (o *OrgCheckList) Store()

Store ...

func (*OrgCheckList) Update

func (o *OrgCheckList) Update()

Update loading on startup

type Page

type Page struct {
	HeaderText     string              `bson:"headername"`
	Heading        *canvas.Text        `bson:"-"`
	Entry          *hugetext.HugeEntry `bson:"-"`
	CollectionName string              `bson:"-"`
	Entrydata      []string            `bson:"data"`
	BtnName        string              `bson:"-"`
	PanelName      string              `bson:"panelname"`
	ShowLength     bool                `bson:"-"`
}

Page ...

func NewPage

func NewPage(header string, coll string, btn string) *Page

NewPage If button name is empty header name is used

func (*Page) GetButton

func (P *Page) GetButton() *mywidgets.CustomButton

GetButton ...

func (*Page) Render

func (P *Page) Render() *fyne.Container

Render ...

func (*Page) Setup

func (P *Page) Setup()

Setup ...

func (*Page) Store

func (P *Page) Store()

Store ...

func (*Page) Update

func (P *Page) Update()

Update ...

type PanelObject

type PanelObject struct {
	Header  string
	Objects []fyne.CanvasObject
}

PanelObject ...

func (*PanelObject) Render

func (p *PanelObject) Render() fyne.CanvasObject

Render ...

Jump to

Keyboard shortcuts

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