notifications

package
v0.0.0-...-55707e2 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NoPermissionsMap

type NoPermissionsMap map[string]*Notification

type Notification

type Notification struct {
	// contains filtered or unexported fields
}

func NewK8sConnected

func NewK8sConnected() *Notification

func NewK8sUnavailable

func NewK8sUnavailable() *Notification

func NewNoPermission

func NewNoPermission(resource, err string) *Notification

func NewRelayConnected

func NewRelayConnected() *Notification

func NewRelayReconnecting

func NewRelayReconnecting() *Notification

NOTE: Notification constructors are below

func (*Notification) AsControlResponse

func (n *Notification) AsControlResponse() *ui.GetControlStreamResponse

func (*Notification) AsEventResponse

func (n *Notification) AsEventResponse() *ui.GetEventsResponse

type Notifications

type Notifications struct {
	RelayConnected  bool
	RelayConnecting bool

	IsK8sUnavailable bool
	IsK8sConnected   bool
	// contains filtered or unexported fields
}

func NewNotificationsState

func NewNotificationsState() *Notifications

func (*Notifications) ConnectedToRelay

func (ges *Notifications) ConnectedToRelay() *Notification

func (*Notifications) K8sConnected

func (ges *Notifications) K8sConnected() *Notification

func (*Notifications) NoPermission

func (ges *Notifications) NoPermission(
	err error, resource string,
) *Notification

func (*Notifications) ReconnectingToRelay

func (ges *Notifications) ReconnectingToRelay() *Notification

func (*Notifications) ShouldNotifyOnK8sUnavailable

func (ges *Notifications) ShouldNotifyOnK8sUnavailable() *Notification

Jump to

Keyboard shortcuts

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