Documentation ¶
Index ¶
- Constants
- Variables
- func DeleteIntegration(ctx context.Context, c client.Client, name string, namespace string) error
- func NewKamelCommand(ctx context.Context) (*cobra.Command, error)
- func NewKamelWithModelineCommand(ctx context.Context, osArgs []string) (*cobra.Command, []string, error)
- type Config
- type ConfigFolder
- type LocalCmdOptions
- 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{})
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" )
Variables ¶
View Source
var VersionVariant = ""
VersionVariant may be overridden at build time.
Functions ¶
func DeleteIntegration ¶
DeleteIntegration --.
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.
func LoadConfigurationFrom ¶ added in v1.11.0
LoadConfiguration loads a kamel configuration file from a specific location.
type ConfigFolder ¶ added in v1.11.0
type ConfigFolder string
ConfigFolder defines the different types of folder containing the configuration file.
const ( // The path of the folder containing the configuration file is retrieved from the environment // variable KAMEL_CONFIG_PATH. ConfigFolderEnvVar ConfigFolder = "env" // The path of the folder containing the configuration file is $HOME/.kamel. ConfigFolderHome ConfigFolder = "home" // The folder containing the configuration file is .kamel located in the working directory. ConfigFolderSubDirectory ConfigFolder = "sub" // The folder containing the configuration file is the working directory. ConfigFolderWorking ConfigFolder = "working" // The folder containing the configuration file is the directory currently used by Kamel. ConfigFolderUsed ConfigFolder = "used" )
type LocalCmdOptions ¶ added in v1.10.0
type LocalCmdOptions struct { *RootCmdOptions Dependencies []string `mapstructure:"dependencies"` MavenRepositories []string `mapstructure:"maven-repositories"` Traits []string `mapstructure:"traits"` }
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 --. nolint: containedctx
func (*RootCmdOptions) GetCamelCmdClient ¶ added in v1.3.0
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 ¶ added in v1.10.0
func (command *RootCmdOptions) PrintVerboseOut(cmd *cobra.Command, a ...interface{})
func (*RootCmdOptions) PrintfVerboseErrf ¶ added in v1.10.0
func (command *RootCmdOptions) PrintfVerboseErrf(cmd *cobra.Command, format string, a ...interface{})
func (*RootCmdOptions) PrintfVerboseOutf ¶ added in v1.10.0
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
- config.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_add_repo.go
- kamelet_delete.go
- kamelet_get.go
- kamelet_remove_repo.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
- promote.go
- rebuild.go
- reset.go
- root.go
- run.go
- run_support.go
- trait_help.go
- trait_support.go
- uninstall.go
- util.go
- util_config.go
- version.go
Click to show internal directories.
Click to hide internal directories.