Documentation ¶
Index ¶
Constants ¶
View Source
const ( // PluginName hold a name of the plugin. PluginName = "kn-event" // PluginUse hold a the plugin short name, intended to use as "kn <use>". PluginUse = "event" // PluginDescription holds a short description of the plugin. PluginDescription = "Manage CloudEvents from command line" // PluginLongDescription holds a long description of the plugin. PluginLongDescription = `Manage CloudEvents from command line. Perform, easily, tasks like sending, building, and parsing, all from command line.` )
Variables ¶
View Source
var ( // Image holds information about companion image reference. Image = "" //nolint:gochecknoglobals // ImageBasename holds a basename of a image, so the development reference // could be built from it. ImageBasename = "" //nolint:gochecknoglobals )
View Source
var Version = "0.0.0" //nolint:gochecknoglobals
Version holds application version information.
Functions ¶
func ImageBasenamePath ¶
func ImageBasenamePath() string
ImageBasenamePath return a path to the image basename variable.
func ResolveImage ¶
func ResolveImage() string
ResolveImage will try to resolve the image reference from set values. If Image is given it will be used, otherwise the ImageBasename and Version will be used.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.