@kinvolk/headlamp-plugin
Version:
The needed infrastructure for building Headlamp plugins.
13 lines (12 loc) • 414 B
TypeScript
/**
* Sets the backend token to use when making API calls from Headlamp when running as an app.
*
* This is not a K8s or OIDC token, but one that protects headlamp-server APIs.
*/
export declare function setBackendToken(token: string | null): void;
/**
* Returns headers for making API calls to the headlamp-server backend.
*/
export declare function getHeadlampAPIHeaders(): {
[key: string]: string;
};