Documentation ¶
Index ¶
- Constants
- Variables
- func ApplyConfigOption(config *RunConfigOption, integrationSpec *v1.IntegrationSpec, c client.Client, ...) error
- func ApplyResourceOption(config *RunConfigOption, integrationSpec *v1.IntegrationSpec, c client.Client, ...) error
- 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
- type RunConfigOption
- type Source
Constants ¶
const ( // ConfigOptionTypeConfigmap -- ConfigOptionTypeConfigmap configOptionType = "configmap" // ConfigOptionTypeSecret -- ConfigOptionTypeSecret configOptionType = "secret" // ConfigOptionTypeFile -- ConfigOptionTypeFile configOptionType = "file" )
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" )
const ( Megabyte = 1 << 20 Kilobyte = 1 << 10 )
Variables ¶
var VersionVariant = ""
VersionVariant may be overridden at build time
Functions ¶
func ApplyConfigOption ¶ added in v1.5.0
func ApplyConfigOption(config *RunConfigOption, integrationSpec *v1.IntegrationSpec, c client.Client, namespace string, enableCompression bool) error
ApplyConfigOption will set the proper --config option behavior to the IntegrationSpec
func ApplyResourceOption ¶ added in v1.5.0
func ApplyResourceOption(config *RunConfigOption, integrationSpec *v1.IntegrationSpec, c client.Client, namespace string, enableCompression bool) error
ApplyResourceOption will set the proper --resource option behavior to the IntegrationSpec
func DeleteIntegration ¶
DeleteIntegration --
func GetContainerIntegrationRunCommand ¶ added in v1.3.0
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"` // contains filtered or unexported fields }
RootCmdOptions --
func (*RootCmdOptions) GetCamelCmdClient ¶ added in v1.3.0
func (command *RootCmdOptions) GetCamelCmdClient() (*camelv1.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
type RunConfigOption ¶ added in v1.5.0
type RunConfigOption struct {
// contains filtered or unexported fields
}
RunConfigOption represents a config option
func ParseConfigOption ¶ added in v1.5.0
func ParseConfigOption(item string) (*RunConfigOption, error)
ParseConfigOption will parse and return a runConfigOption
func ParseResourceOption ¶ added in v1.5.0
func ParseResourceOption(item string) (*RunConfigOption, error)
ParseResourceOption will parse and return a runConfigOption
func (*RunConfigOption) DestinationPath ¶ added in v1.5.0
func (runConfigOption *RunConfigOption) DestinationPath() string
DestinationPath is the location where the resource will be stored on destination
func (*RunConfigOption) Key ¶ added in v1.5.0
func (runConfigOption *RunConfigOption) Key() string
Key is the key specified for the resource
func (*RunConfigOption) Name ¶ added in v1.5.0
func (runConfigOption *RunConfigOption) Name() string
Name is the name of the resource
func (*RunConfigOption) Type ¶ added in v1.5.0
func (runConfigOption *RunConfigOption) Type() string
Type is the type, converted as string
func (*RunConfigOption) Validate ¶ added in v1.5.0
func (runConfigOption *RunConfigOption) Validate() error
Validate checks if the DestinationPath is correctly configured
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
- uninstall.go
- util.go
- util_commands.go
- util_config.go
- util_containerization.go
- util_content.go
- util_dependencies.go
- util_sources.go
- version.go