components

package
v0.0.0-...-9bc2a92 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2020 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AUTHORIZATION_METADATA_KEY = "X-Liwasc-Authorization"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AppComponent

type AppComponent struct {
	app.Compo

	UserAvatar string
	UserName   string

	Logout func()

	Subnets         []string
	Device          string
	NodeSearchValue string

	Nodes []*models.Node

	InspectorSearchValue string

	Connected bool
	Scanning  bool

	TriggerNetworkScan func()
	// contains filtered or unexported fields
}

func (*AppComponent) Render

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

type DataProviderChildrenProps

type DataProviderChildrenProps struct {
	Nodes []*models.Node

	Connected bool
	Scanning  bool

	Subnets []string
	Device  string

	TriggerNetworkScan func(*proto.NetworkScanTriggerMessage)
}

type DataProviderComponent

type DataProviderComponent struct {
	app.Compo

	IDToken string

	NetworkAndNodeScanServiceClient proto.NetworkAndNodeScanServiceClient
	NodeWakeServiceClient           proto.NodeWakeServiceClient
	MetadataServiceClient           proto.MetadataServiceClient
	Children                        func(DataProviderChildrenProps) app.UI
	// contains filtered or unexported fields
}

func (*DataProviderComponent) OnMount

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

func (*DataProviderComponent) Render

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

type DefinitionComponent

type DefinitionComponent struct {
	app.Compo

	Icon    string
	Title   string
	Content app.UI
}

func (*DefinitionComponent) Render

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

type DrawerComponent

type DrawerComponent struct {
	app.Compo

	Open    bool
	Title   app.UI
	Main    app.UI
	Details app.UI
	Actions []app.UI
}

func (*DrawerComponent) Render

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

type ExpandableSectionComponent

type ExpandableSectionComponent struct {
	app.Compo

	Open    bool
	Title   string
	Content app.UI

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

func (*ExpandableSectionComponent) Render

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

type ExpandableSectionComponentContent

type ExpandableSectionComponentContent struct {
	app.Compo

	Content app.UI
	Open    bool
}

func (*ExpandableSectionComponentContent) Render

type FatalErrorPageComponent

type FatalErrorPageComponent struct {
	app.Compo

	Header             string
	Description        string
	StackTraceLanguage string
	StackTraceContent  string

	Actions []app.UI
}

func (*FatalErrorPageComponent) Render

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

type LabelCollectionComponent

type LabelCollectionComponent struct {
	app.Compo

	Icon   string
	Title  string
	Labels []string
}

func (*LabelCollectionComponent) Render

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

type LoadingPageComponent

type LoadingPageComponent struct {
	app.Compo

	Message string
}

func (*LoadingPageComponent) Render

func (c *LoadingPageComponent) Render() app.UI
type NavbarComponent struct {
	app.Compo

	UserMenuOpen bool
	UserAvatar   string
	UserName     string

	Connected bool

	OnUserMenuToggle func(ctx app.Context, e app.Event)
	OnSignOutClick   func(ctx app.Context, e app.Event)
}
func (c *NavbarComponent) Render() app.UI

type NodeInspectorComponent

type NodeInspectorComponent struct {
	app.Compo

	Node                 *models.Node
	ServicesAndPortsOpen bool
	DetailsOpen          bool
	SearchValue          string

	OnServicesAndPortsToggle func(ctx app.Context, e app.Event)
	OnDetailsToggle          func(ctx app.Context, e app.Event)
	OnSearchChange           func(string)
	OnReScanClick            func(ctx app.Context, e app.Event)
	OnServiceClick           func(int)
}

func (*NodeInspectorComponent) Render

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

type OIDCLoginProviderChildrenProps

type OIDCLoginProviderChildrenProps struct {
	OAuth2Token oauth2.Token
	IDToken     string
	UserInfo    oidc.UserInfo
	Error       error

	Logout func()
}

type OIDCLoginProviderComponent

type OIDCLoginProviderComponent struct {
	app.Compo

	Issuer      string
	ClientID    string
	RedirectURL string
	HomePath    string
	Scopes      []string

	LocalStoragePrefix string

	Children func(OIDCLoginProviderChildrenProps) app.UI
	// contains filtered or unexported fields
}

func (*OIDCLoginProviderComponent) Render

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

type OnOffSwitchCheckboxComponent

type OnOffSwitchCheckboxComponent struct {
	app.Compo

	On       bool
	OnToggle func(ctx app.Context, e app.Event)
}

func (*OnOffSwitchCheckboxComponent) Render

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

type OnOffSwitchComponent

type OnOffSwitchComponent struct {
	app.Compo

	On            bool
	OnToggleClick func(ctx app.Context, e app.Event)
}

func (*OnOffSwitchComponent) Render

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

type SearchLinkComponent

type SearchLinkComponent struct {
	app.Compo

	Topic string
}

func (*SearchLinkComponent) Render

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

type ServiceInspectorComponent

type ServiceInspectorComponent struct {
	app.Compo

	Service *models.Service
}

func (*ServiceInspectorComponent) Render

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

type TableComponent

type TableComponent struct {
	app.Compo

	Nodes        []*models.Node
	SelectedNode int

	OnRowClick    func(int)
	OnPowerToggle func(int)
}

func (*TableComponent) Render

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

type ToolbarComponent

type ToolbarComponent struct {
	app.Compo

	Subnets     []string
	Device      string
	SearchValue string

	Scanning bool

	OnSearchChange func(string)
	OnTriggerClick func(ctx app.Context, e app.Event)
}

func (*ToolbarComponent) Render

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

type TooltipComponent

type TooltipComponent struct {
	app.Compo

	Children app.UI
	Tooltip  app.UI
}

func (*TooltipComponent) Render

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

Jump to

Keyboard shortcuts

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