package
0.0.2
Repository: https://github.com/kubenext/kubefun.git
Documentation: pkg.go.dev

# Packages

Package fake is a generated GoMock package.

# Functions

CreateAlertUpdate creates an alert update event.
CreateContentEvent creates a content event.
No description provided by the author
CreateFiltersUpdate creates a filters update event.
CreateNamespacesEvent creates a namespaces event.
CreateNavigationEvent creates a namespaces event.
FilterFromPayload creates a filter from a payload.
FiltersFromQueryParams converts query params to filters.
FiltersToLabelSet converts a slice of filters to a label set.
ListenerAddr returns the default listener address if KUBEFUN_LISTENER_ADDR is not set.
NamespacesGenerator generates a list of namespaces.
NavigationGenerator generates a navigation tree given a set of modules and a namespace.
New creates an instance of API.
NewActionRequestManager creates an instance of ActionRequestManager.
NewContentManager creates an instance of ContentManager.
NewContextManager creates an instances of ContextManager.
NewFilterManager creates an instance of FilterManager.
NewInterruptiblePoller creates an instance of InterruptiblePoller.
NewNamespacesManager creates an instance of NamespacesManager.
NewNavigationManager creates an instance of NavigationManager.
NewNotFoundError creates an instance of NotFoundError.
NewSingleRunPoller creates an instance of SingleRunPoller.
NewWebsocketClient creates an instance of WebsocketClient.
NewWebsocketClientManager creates an instance of WebsocketClientManager.
NewWebsocketState creates an instance of WebsocketState.
ParseFilterQueryParam parsers a single filter from a query param in the format `key:value`.
RespondWithError responds with an error message.
WebsocketStateManagers configures WebsocketState's state managers.
WithContentGenerator configures the content generate function.
WithContentGeneratorPoller configures the poller.
WithContextGenerator sets the context generator.
WithContextGeneratorPoll generates the poller.
WithNamespacesGenerator configures the namespaces generator function.
WithNamespacesGeneratorPoller configures the poller.
WithNavigationGenerator configures the navigation generator function.
WithNavigationGeneratorPoller configures the poller.

# Constants

No description provided by the author
ListenerAddrKey is the environment variable for the Kubefun listener address.
PathPrefix is a string for the api path prefix.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

ActionRequestManager manages action requests.
API is the API for the dashboard client.
ContentManager manages content for websockets.
ContextManager manages context.
FilterManager manages filters.
InterruptiblePoller is a poller than runs an action and allows for interrupts.
NamespacesManager manages namespaces.
NavigationManager manages the navigation tree.
NotFoundError is a not found error.
SingleRunPoller is a a poller runs the supplied action once.
WebsocketClient manages websocket clients.
WebsocketClientManager is a client manager for websockets.
WebsocketState manages state for a websocket client.

# Interfaces

ActionDispatcher dispatches actions.
ClientManager is an interface for managing clients.
KubefunClient is an KubefunClient.
NamespaceManagerConfig is configuration for NamespacesManager.
NavigationManagerConfig is configuration of NavigationManager.
Poller is a poller.
Service is an API service.
StateManager manages states for WebsocketState.

# Type aliases

ContentGenerateFunc is a function that generates content.
ContentManagerOption is an option for configuring ContentManager.
ContextGenerateFunc is a function which generates a context event.
ContextManagerOption is an option for configuring ContextManager.
NamespacesGenerateFunc is a function that generates a list of namespaces.
NamespacesManagerOption is an option for configuring NamespacesManager.
NavigationGeneratorFunc is a function that generates a navigation tree.
NavigationManagerConfig is an option for configuration NavigationManager.
PollerFunc is a function run by the poller.
WebsocketStateOption is an option for configuring WebsocketState.