Class: Registry
Defined in: plugin/registry.tsx:169
Constructors
Constructor
new Registry(): Registry;
Returns
Registry
Methods
registerAppBarAction()
registerAppBarAction(actionName: string, actionFunc: (...args: any[]) => ReactNode): void;
Defined in: plugin/registry.tsx:215
Parameters
| Parameter | Type |
|---|---|
actionName | string |
actionFunc | (...args: any[]) => ReactNode |
Returns
void
Deprecated
Registry.registerAppBarAction is deprecated. Please use registerAppBarAction.
registerAppLogo()
registerAppLogo(logo: AppLogoType): void;
Defined in: plugin/registry.tsx:264
Parameters
| Parameter | Type |
|---|---|
logo | AppLogoType |
Returns
void
Deprecated
Registry.registerAppLogo is deprecated. Please use registerAppLogo.
registerClusterChooserComponent()
registerClusterChooserComponent(component:
| ComponentType<ClusterChooserProps>
| null): void;
Defined in: plugin/registry.tsx:272
Parameters
| Parameter | Type |
|---|---|
component | | ComponentType<ClusterChooserProps> | null |
Returns
void
Deprecated
Registry.registerClusterChooserComponent is deprecated. Please use registerClusterChooser.
registerDetailsViewHeaderAction()
registerDetailsViewHeaderAction(actionName: string, actionFunc: HeaderActionType): void;
Defined in: plugin/registry.tsx:205
Parameters
| Parameter | Type |
|---|---|
actionName | string |
actionFunc | HeaderActionType |
Returns
void
Deprecated
Registry.registerDetailsViewHeaderAction is deprecated. Please use registerDetailsViewHeaderAction.
registerDetailsViewSection()
registerDetailsViewSection(sectionName: string, sectionFunc: (resource: KubeObject) => SectionFuncProps | null): void;
Defined in: plugin/registry.tsx:237
Parameters
| Parameter | Type |
|---|---|
sectionName | string |
sectionFunc | (resource: KubeObject) => SectionFuncProps | null |
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;
});
registerRoute()
registerRoute(routeSpec: Route): void;
Defined in: plugin/registry.tsx:197
Parameters
| Parameter | Type |
|---|---|
routeSpec | Route |
Returns
void
Deprecated
Registry.registerRoute is deprecated. Please use registerRoute.
registerSidebarItem()
registerSidebarItem(
parentName: string | null,
itemName: string,
itemLabel: string,
url: string,
opts?: Pick<SidebarEntryProps, "sidebar" | "useClusterURL" | "icon">): void;
Defined in: plugin/registry.tsx:173
Parameters
| Parameter | Type |
|---|---|
parentName | string | null |
itemName | string |
itemLabel | string |
url | string |
opts | Pick<SidebarEntryProps, "sidebar" | "useClusterURL" | "icon"> |
Returns
void
Deprecated
Registry.registerSidebarItem is deprecated. Please use registerSidebarItem.