Skip to main content

Class: Registry

Constructors​

new Registry()​

new Registry(): Registry

Returns​

Registry

Methods​

registerAppBarAction()​

registerAppBarAction(actionName: string, actionFunc: (...args: any[]) => ReactNode): void

Parameters​

ParameterType
actionNamestring
actionFunc(...args: any[]) => ReactNode

Returns​

void

Deprecated​

Registry.registerAppBarAction is deprecated. Please use registerAppBarAction.

Defined in​

src/plugin/registry.tsx:164


registerAppLogo(logo: AppLogoType): void

Parameters​

ParameterType
logoAppLogoType

Returns​

void

Deprecated​

Registry.registerAppLogo is deprecated. Please use registerAppLogo.

Defined in​

src/plugin/registry.tsx:213


registerClusterChooserComponent()​

registerClusterChooserComponent(component: null | ComponentType<ClusterChooserProps>): void

Parameters​

ParameterType
componentnull | ComponentType<ClusterChooserProps>

Returns​

void

Deprecated​

Registry.registerClusterChooserComponent is deprecated. Please use registerClusterChooser.

Defined in​

src/plugin/registry.tsx:221


registerDetailsViewHeaderAction()​

registerDetailsViewHeaderAction(actionName: string, actionFunc: HeaderActionType): void

Parameters​

ParameterType
actionNamestring
actionFuncHeaderActionType

Returns​

void

Deprecated​

Registry.registerDetailsViewHeaderAction is deprecated. Please use registerDetailsViewHeaderAction.

Defined in​

src/plugin/registry.tsx:154


registerDetailsViewSection()​

registerDetailsViewSection(sectionName: string, sectionFunc: (resource: KubeObject<any>) => null | SectionFuncProps): void

Parameters​

ParameterType
sectionNamestring
sectionFunc(resource: KubeObject<any>) => null | SectionFuncProps

Returns​

void

Deprecated​

Registry.registerDetailsViewSection is deprecated. Please use registerDetailsViewSection.


register.registerDetailsViewSection('biolatency', resource => {
if (resource?.kind === 'Node') {
return {
title: 'Block I/O Latency',
component: () => <CustomComponent />,
};
}
return null;
});

Defined in​

src/plugin/registry.tsx:186


registerRoute()​

registerRoute(routeSpec: Route): void

Parameters​

ParameterType
routeSpecRoute

Returns​

void

Deprecated​

Registry.registerRoute is deprecated. Please use registerRoute.

Defined in​

src/plugin/registry.tsx:146


registerSidebarItem()​

registerSidebarItem(
parentName: null | string,
itemName: string,
itemLabel: string,
url: string,
opts: Pick<SidebarEntryProps, "icon" | "sidebar" | "useClusterURL">): void

Parameters​

ParameterType
parentNamenull | string
itemNamestring
itemLabelstring
urlstring
optsPick<SidebarEntryProps, "icon" | "sidebar" | "useClusterURL">

Returns​

void

Deprecated​

Registry.registerSidebarItem is deprecated. Please use registerSidebarItem.

Defined in​

src/plugin/registry.tsx:122