providers

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

Documentation

Index

Constants

View Source
const (
	StateQueryParameter = "state"
	CodeQueryParameter  = "code"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigurationProvider

type ConfigurationProvider struct {
	app.Compo

	StoragePrefix       string
	StateQueryParameter string
	CodeQueryParameter  string
	Children            func(SetupProviderChildrenProps) app.UI
	// contains filtered or unexported fields
}

func (*ConfigurationProvider) OnMount

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

func (*ConfigurationProvider) Render

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

type DataProvider

type DataProvider struct {
	app.Compo

	AuthenticatedContext   context.Context
	MetadataService        api.MetadataServiceClient
	NodeAndPortScanService api.NodeAndPortScanServiceClient
	NodeWakeService        api.NodeWakeServiceClient
	Children               func(DataProviderChildrenProps) app.UI
	// contains filtered or unexported fields
}

func (*DataProvider) OnMount

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

func (*DataProvider) Render

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

type DataProviderChildrenProps

type DataProviderChildrenProps struct {
	Network Network

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

	Error   error
	Recover func()
	Ignore  func()
}

type Event

type Event struct {
	Message string
	Time    time.Time
}

type IdentityProvider

type IdentityProvider struct {
	app.Compo

	Issuer        string
	ClientID      string
	RedirectURL   string
	HomeURL       string
	Scopes        []string
	StoragePrefix string
	Children      func(IdentityProviderChildrenProps) app.UI
	// contains filtered or unexported fields
}

func (*IdentityProvider) OnMount

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

func (*IdentityProvider) OnNav

func (c *IdentityProvider) OnNav(ctx app.Context)

func (*IdentityProvider) Render

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

type IdentityProviderChildrenProps

type IdentityProviderChildrenProps struct {
	IDToken  string
	UserInfo oidc.UserInfo

	Logout func()

	Error   error
	Recover func()
}

type Network

type Network struct {
	ScannerMetadata  ScannerMetadata
	NodeScanRunning  bool
	LastNodeScanDate time.Time
	Nodes            []Node
	Events           []Event
}

type Node

type Node struct {

	// Data
	MACAddress       string
	IPAddress        string
	PoweredOn        bool
	PortScanRunning  bool
	LastPortScanDate time.Time
	Ports            []Port
	NodeWakeRunning  bool
	LastNodeWakeDate time.Time

	// Public metadata
	Vendor       string
	Registry     string
	Organization string
	Address      string
	Visible      bool
	// contains filtered or unexported fields
}

type Port

type Port struct {

	// Data
	PortNumber        int64
	TransportProtocol string

	// Public metadata
	ServiceName             string
	Description             string
	Assignee                string
	Contact                 string
	RegistrationDate        string
	ModificationDate        string
	Reference               string
	ServiceCode             string
	UnauthorizedUseReported string
	AssignmentNotes         string
	// contains filtered or unexported fields
}

type ScannerMetadata

type ScannerMetadata struct {
	Subnets []string
	Device  string
}

type SetupProviderChildrenProps

type SetupProviderChildrenProps struct {
	BackendURL      string
	OIDCIssuer      string
	OIDCClientID    string
	OIDCRedirectURL string
	Ready           bool

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

	Error error
}

Jump to

Keyboard shortcuts

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