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 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.
type RootCmdOptions ¶
type RootCmdOptions struct {
RootContext context.Context `mapstructure:"-"`
Context context.Context `mapstructure:"-"`
ContextCancel context.CancelFunc `mapstructure:"-"`
Flags *viper.Viper `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
¶
Click to show internal directories.
Click to hide internal directories.