UNPKG

@kinvolk/headlamp-plugin

Version:

The needed infrastructure for building Headlamp plugins.

10 lines (9 loc) 488 B
/** * In the backend we use a unique ID to identify a user. If there is no ID in localStorage * we generate a new one and store it in localStorage. We then combine it with the * cluster name and this headlamp-userId to create a unique ID for a cluster. If we don't * do it then if 2 different users have a cluster with the same name, then the * proxy will be overwritten. * @returns headlamp-userId from localStorage */ export declare function getUserIdFromLocalStorage(): string;