Documentation ¶
Index ¶
- Constants
- Variables
- func DeleteIntegration(ctx context.Context, c client.Client, name string, namespace string) error
- func GetContainerIntegrationRunCommand(ctx context.Context, properties []string, dependencies []string, ...) (*exec.Cmd, error)
- func NewKamelCommand(ctx context.Context) (*cobra.Command, error)
- func NewKamelWithModelineCommand(ctx context.Context, osArgs []string) (*cobra.Command, []string, error)
- func RunLocalIntegrationRunCommand(ctx context.Context, properties []string, dependencies []string, ...) error
- type Config
- type RootCmdOptions
- func (command *RootCmdOptions) GetCamelCmdClient() (*v1.CamelV1Client, error)
- func (command *RootCmdOptions) GetCmdClient() (client.Client, error)
- func (command *RootCmdOptions) NewCmdClient() (client.Client, error)
- func (command *RootCmdOptions) PrintVerboseOut(cmd *cobra.Command, a ...interface{})
- func (command *RootCmdOptions) PrintfVerboseErrf(cmd *cobra.Command, format string, a ...interface{})
- func (command *RootCmdOptions) PrintfVerboseOutf(cmd *cobra.Command, format string, a ...interface{})
- type Source
Constants ¶
View Source
const ( // DefaultConfigName is the default config name. DefaultConfigName = "kamel-config" // DefaultConfigLocation is the main place where the kamel content is stored. DefaultConfigLocation = DefaultConfigName + ".yaml" // KamelTagName ---. KamelTagName = "kamel" // MapstructureTagName ---. MapstructureTagName = "mapstructure" )
View Source
const ( // Megabyte represent the related unit. Megabyte = 1 << 20 // Kilobyte represent the related unit. Kilobyte = 1 << 10 )
Variables ¶
View Source
var VersionVariant = ""
VersionVariant may be overridden at build time.
Functions ¶
func DeleteIntegration ¶
DeleteIntegration --.
func GetContainerIntegrationRunCommand ¶
func GetContainerIntegrationRunCommand(ctx context.Context, properties []string, dependencies []string, routes []string, stdout, stderr io.Writer) (*exec.Cmd, error)
GetContainerIntegrationRunCommand --.
func NewKamelCommand ¶
NewKamelCommand --.
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
Config is a helper class to manipulate kamel configuration files.
func LoadConfiguration ¶
LoadConfiguration loads a kamel configuration file.
type RootCmdOptions ¶
type RootCmdOptions struct { RootContext context.Context `mapstructure:"-"` Context context.Context `mapstructure:"-"` ContextCancel context.CancelFunc `mapstructure:"-"` KubeConfig string `mapstructure:"kube-config"` Namespace string `mapstructure:"namespace"` Verbose bool `mapstructure:"verbose" yaml:",omitempty"` // contains filtered or unexported fields }
RootCmdOptions --.
func (*RootCmdOptions) GetCamelCmdClient ¶
func (command *RootCmdOptions) GetCamelCmdClient() (*v1.CamelV1Client, error)
GetCamelCmdClient returns a client to access the Camel resources.
func (*RootCmdOptions) GetCmdClient ¶
func (command *RootCmdOptions) GetCmdClient() (client.Client, error)
GetCmdClient returns the client that can be used from command line tools.
func (*RootCmdOptions) NewCmdClient ¶
func (command *RootCmdOptions) NewCmdClient() (client.Client, error)
NewCmdClient returns a new client that can be used from command line tools.
func (*RootCmdOptions) PrintVerboseOut ¶
func (command *RootCmdOptions) PrintVerboseOut(cmd *cobra.Command, a ...interface{})
func (*RootCmdOptions) PrintfVerboseErrf ¶
func (command *RootCmdOptions) PrintfVerboseErrf(cmd *cobra.Command, format string, a ...interface{})
func (*RootCmdOptions) PrintfVerboseOutf ¶
func (command *RootCmdOptions) PrintfVerboseOutf(cmd *cobra.Command, format string, a ...interface{})
Source Files ¶
- bind.go
- builder.go
- completion.go
- completion_bash.go
- completion_zsh.go
- debug.go
- delete.go
- describe.go
- describe_integration.go
- describe_kamelet.go
- describe_kit.go
- describe_platform.go
- dump.go
- get.go
- init.go
- install.go
- kamelet.go
- kamelet_delete.go
- kamelet_get.go
- kit.go
- kit_create.go
- kit_delete.go
- kit_get.go
- local.go
- local_build.go
- local_inspect.go
- local_run.go
- log.go
- modeline.go
- operator.go
- rebuild.go
- reset.go
- root.go
- run.go
- run_help.go
- trait_help.go
- trait_support.go
- uninstall.go
- util.go
- util_commands.go
- util_config.go
- util_containerization.go
- util_content.go
- util_dependencies.go
- util_sources.go
- version.go
Click to show internal directories.
Click to hide internal directories.