@kinvolk/headlamp-plugin
Version:
The needed infrastructure for building Headlamp plugins.
22 lines (21 loc) • 867 B
TypeScript
import type { RevisionInfo } from '../../../lib/k8s/rollback';
interface RollbackDialogProps {
/** Whether the dialog is open */
open: boolean;
/** The kind of resource (e.g. "Deployment") */
resourceKind: string;
/** The name of the resource */
resourceName: string;
/** Function to fetch revision history */
getRevisionHistory: () => Promise<RevisionInfo[]>;
/** Callback when dialog is closed (cancelled) */
onClose: () => void;
/** Callback when user confirms rollback with selected revision (undefined = previous) */
onConfirm: (toRevision?: number) => void;
}
/**
* RollbackDialog component that shows revision history and allows
* the user to select a specific revision to rollback to.
*/
export default function RollbackDialog(props: RollbackDialogProps): import("react/jsx-runtime").JSX.Element;
export {};