Пример #1
0
// RegisterPrintHandlers registers HumanReadablePrinter handlers for image and image repository resources.
func RegisterPrintHandlers(printer *kubecfg.HumanReadablePrinter) {
	printer.Handler(imageColumns, printImage)
	printer.Handler(imageColumns, printImageList)
	printer.Handler(imageRepositoryColumns, printImageRepository)
	printer.Handler(imageRepositoryColumns, printImageRepositoryList)
}
Пример #2
0
// RegisterPrintHandlers registers HumanReadablePrinter handlers
// for build and buildConfig resources.
func RegisterPrintHandlers(printer *kubecfg.HumanReadablePrinter) {
	printer.Handler(buildColumns, printBuild)
	printer.Handler(buildColumns, printBuildList)
	printer.Handler(buildConfigColumns, printBuildConfig)
	printer.Handler(buildConfigColumns, printBuildConfigList)
}