Documentation ¶
Index ¶
- type NoPermissionsMap
- type Notification
- type Notifications
- func (ges *Notifications) ConnectedToRelay() *Notification
- func (ges *Notifications) K8sConnected() *Notification
- func (ges *Notifications) NoPermission(err error, resource string) *Notification
- func (ges *Notifications) ReconnectingToRelay() *Notification
- func (ges *Notifications) ShouldNotifyOnK8sUnavailable() *Notification
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 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
Click to show internal directories.
Click to hide internal directories.