components

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 18, 2021 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPortID

func GetPortID(port providers.Port) string

Types

type AboutModal

type AboutModal struct {
	app.Compo

	Open  bool
	Close func()

	ID string

	LogoSrc string
	LogoAlt string
	Title   string

	Body   app.UI
	Footer string
}

func (*AboutModal) OnMount

func (c *AboutModal) OnMount(ctx app.Context)

func (*AboutModal) Render

func (c *AboutModal) Render() app.UI

type Controlled

type Controlled struct {
	app.Compo

	Component  app.UI
	Properties map[string]interface{}
}

func (*Controlled) Render

func (c *Controlled) Render() app.UI

type DataShell

type DataShell struct {
	app.Compo

	Network  providers.Network
	UserInfo oidc.UserInfo

	TriggerNetworkScan func(nodeScanTimeout int64, portScanTimeout int64, macAddress string)
	StartNodeWake      func(nodeWakeTimeout int64, macAddress string)
	Logout             func()

	Error   error
	Recover func()
	Ignore  func()
	// contains filtered or unexported fields
}

func (*DataShell) OnMount

func (c *DataShell) OnMount(context app.Context)

func (*DataShell) Render

func (c *DataShell) Render() app.UI

type ExpandableSection

type ExpandableSection struct {
	app.Compo

	Open        bool
	OnToggle    func()
	Title       string
	ClosedTitle string
	OpenTitle   string
	Body        []app.UI
}

func (*ExpandableSection) Render

func (c *ExpandableSection) Render() app.UI

type FormGroup

type FormGroup struct {
	app.Compo

	Required bool
	Label    app.UI
	Input    app.UI
}

func (*FormGroup) Render

func (c *FormGroup) Render() app.UI

type Home

type Home struct {
	app.Compo
}

func (*Home) Render

func (c *Home) Render() app.UI

type Inspector

type Inspector struct {
	app.Compo

	Open               bool
	Close              func()
	StartNodeWake      func()
	TriggerNetworkScan func()

	Header          []app.UI
	Body            app.UI
	Node            providers.Node
	PortFilter      string
	SetPortFilter   func(string)
	SelectedPort    string
	SetSelectedPort func(string)
	// contains filtered or unexported fields
}

func (*Inspector) OnMount

func (c *Inspector) OnMount(ctx app.Context)

func (*Inspector) Render

func (c *Inspector) Render() app.UI

type MobileMetadata

type MobileMetadata struct {
	app.Compo

	LastNodeScanDate string
	Subnets          []string
	Device           string
}

func (*MobileMetadata) Render

func (c *MobileMetadata) Render() app.UI
type Modal struct {
	app.Compo

	Open  bool
	Close func()

	ID      string
	Classes string

	Title  string
	Body   []app.UI
	Footer []app.UI
}

func (*Modal) OnMount

func (c *Modal) OnMount(ctx app.Context)

func (*Modal) Render

func (c *Modal) Render() app.UI
type Navbar struct {
	app.Compo

	NotificationsDrawerOpen       bool
	ToggleNotificationsDrawerOpen func()

	ToggleSettings func()
	ToggleAbout    func()

	OverflowMenuExpanded       bool
	ToggleOverflowMenuExpanded func()

	UserMenuExpanded       bool
	ToggleUserMenuExpanded func()

	UserEmail string
	Logout    func()
}
func (c *Navbar) Render() app.UI

type NodeTable

type NodeTable struct {
	app.Compo

	Nodes              []providers.Node
	NodeScanRunning    bool
	SelectedMACAddress string

	SetSelectedMACAddress    func(macAddress string)
	TriggerFullNetworkScan   func()
	TriggerScopedNetworkScan func(macAddress string)
	StartNodeWake            func(macAddress string)
}

func (*NodeTable) Render

func (c *NodeTable) Render() app.UI

type Notification

type Notification struct {
	Message string
	Time    string
}

type NotificationDrawer

type NotificationDrawer struct {
	app.Compo

	Notifications []Notification
}

func (*NotificationDrawer) Render

func (c *NotificationDrawer) Render() app.UI

type PortList

type PortList struct {
	Ports []providers.Port

	app.Compo
	// contains filtered or unexported fields
}

func (*PortList) Render

func (c *PortList) Render() app.UI

type PortSelectionList

type PortSelectionList struct {
	app.Compo

	Ports           []providers.Port
	SelectedPort    string
	SetSelectedPort func(string)
}

func (*PortSelectionList) Render

func (c *PortSelectionList) Render() app.UI

type ProgressButton

type ProgressButton struct {
	app.Compo

	Loading   bool
	Icon      string
	Text      string
	Secondary bool
	Classes   string

	OnClick func(ctx app.Context, e app.Event)
}

func (*ProgressButton) Render

func (c *ProgressButton) Render() app.UI

type Property

type Property struct {
	app.Compo

	Key   string
	Icon  string
	Value string
	Link  bool
}

func (*Property) Render

func (c *Property) Render() app.UI

type SettingsForm

type SettingsForm struct {
	app.Compo

	NodeScanTimeout    int64
	SetNodeScanTimeout func(int64)

	PortScanTimeout    int64
	SetPortScanTimeout func(int64)

	NodeWakeTimeout    int64
	SetNodeWakeTimeout func(int64)

	Submit func()
}

func (*SettingsForm) Render

func (c *SettingsForm) Render() app.UI

type SetupForm

type SetupForm struct {
	app.Compo

	Error        error
	ErrorMessage string

	BackendURL    string
	SetBackendURL func(string)

	OIDCIssuer    string
	SetOIDCIssuer func(string)

	OIDCClientID    string
	SetOIDCClientID func(string)

	OIDCRedirectURL    string
	SetOIDCRedirectURL func(string)

	Submit func()
}

func (*SetupForm) Render

func (c *SetupForm) Render() app.UI

type SetupShell

type SetupShell struct {
	app.Compo

	LogoSrc          string
	Title            string
	ShortDescription string
	LongDescription  string
	HelpLink         string
	Links            map[string]string

	BackendURL      string
	OIDCIssuer      string
	OIDCClientID    string
	OIDCRedirectURL string

	SetBackendURL,
	SetOIDCIssuer,
	SetOIDCClientID,
	SetOIDCRedirectURL func(string)
	ApplyConfig func()

	Error error
}

func (*SetupShell) Render

func (c *SetupShell) Render() app.UI

type Status

type Status struct {
	app.Compo

	Error       error
	ErrorText   string
	Recover     func()
	RecoverText string
	Ignore      func()
}

func (*Status) Render

func (c *Status) Render() app.UI

type Toolbar

type Toolbar struct {
	app.Compo

	NodeScanRunning        bool
	TriggerFullNetworkScan func()

	LastNodeScanDate string
	Subnets          []string
	Device           string

	ToggleMetadataDialogOpen func()
}

func (*Toolbar) Render

func (c *Toolbar) Render() app.UI

Jump to

Keyboard shortcuts

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