Skip to content

Instantly share code, notes, and snippets.

@wwitzel3
Last active June 29, 2020 16:46
Show Gist options
  • Save wwitzel3/65f5506266b7a6cb0eaf551d5e6b79ae to your computer and use it in GitHub Desktop.
Save wwitzel3/65f5506266b7a6cb0eaf551d5e6b79ae to your computer and use it in GitHub Desktop.
import * as octant from "./octant";
let podGVK = {version: "v1", kind: "Pod"}
export default class MyPlugin implements octant.Plugin {
name = "typescript plugin";
description = "typescript plugin description";
isModule = false;
capabilities = {supportPrinterConfig: [podGVK]};
printHandler(request: octant.PrintRequest): octant.PrintResponse {
return {config: [{
header: "from-plugin",
content: {
metadata: {type: "text"},
config: {value: "lorem ipsum"}
}
}]};
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment