command

package
v0.41.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KameletTypeLabel              = "camel.apache.org/kamelet.type"
	KameletSupportLevelAnnotation = "camel.apache.org/kamelet.support.level"
	KameletProviderAnnotation     = "camel.apache.org/provider"
)

Variables

View Source
var BuildDate string
View Source
var GitRevision string
View Source
var Version string

Functions

func ListBindingHandlers

func ListBindingHandlers(h hprinters.PrintHandler)

ListBindingHandlers handles printing human readable table for `kn-source-kamelet binding list` command's output

func ListHandlers

func ListHandlers(h hprinters.PrintHandler)

ListHandlers handles printing human readable table for `kn-source-kamelet list` command's output

func NewBindCommand

func NewBindCommand(p *KameletPluginParams) *cobra.Command

NewBindCommand implements 'kn-source-kamelet bind' command

func NewBindingCommand

func NewBindingCommand(p *KameletPluginParams) *cobra.Command

NewBindingCommand implements 'kn-source-kamelet binding' command

func NewDescribeCommand

func NewDescribeCommand(p *KameletPluginParams) *cobra.Command

NewDescribeCommand implements 'kn-source-kamelet describe' command

func NewListCommand

func NewListCommand(p *KameletPluginParams) *cobra.Command

NewListCommand implements 'kn-source-kamelet list' command

func NewVersionCommand

func NewVersionCommand() *cobra.Command

NewVersionCommand implements 'kn-source-kamelet version' command

Types

type CreateBindingOptions

type CreateBindingOptions struct {
	Name                   string
	Source                 string
	SourceProperties       []string
	CloudEventsOverride    []string
	CloudEventsSpecVersion string
	CloudEventsType        string
	Sink                   string
	Broker                 string
	Channel                string
	Service                string
	Force                  bool
	CmdOut                 io.Writer
}

CreateBindingOptions holding settings and options on the create binding command

type KameletPluginParams

type KameletPluginParams struct {
	*commands.KnParams
	Context          context.Context
	ContextCancel    context.CancelFunc
	NewKameletClient func() (camelkv1alpha1.CamelV1alpha1Interface, error)
}

KameletPluginParams for creating commands. Useful for inserting mocks for testing.

func (*KameletPluginParams) Initialize

func (params *KameletPluginParams) Initialize()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL