local

package
v1.12.1 Latest Latest
Warning

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

Go to latest
Published: May 29, 2023 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MavenWorkingDirectory = ""

MavenWorkingDirectory is the directory used by Maven for an invocation of the kamel local command. By default, a temporary folder will be used.

Functions

func CopyAppFile

func CopyAppFile(dependenciesDir string, appDir string) error

func CopyIntegrationFilesToDirectory

func CopyIntegrationFilesToDirectory(files []string, directory string) ([]string, error)

func CopyLibFiles

func CopyLibFiles(dependenciesDir string, libDir string) error

func CopyQuarkusAppFiles

func CopyQuarkusAppFiles(dependenciesDir string, quarkusDir string) error

func CreateAndBuildIntegrationImage

func CreateAndBuildIntegrationImage(ctx context.Context, containerRegistry string, justBaseImage bool, image string,
	propertyFiles []string, dependencies []string, routes []string, startsFromLocalFolder bool,
	stdout, stderr io.Writer) error

func CreateCamelCatalog added in v1.11.0

func CreateCamelCatalog(ctx context.Context) (*camel.RuntimeCatalog, error)

func CreateDockerBaseWorkingDirectory

func CreateDockerBaseWorkingDirectory() error

CreateDockerBaseWorkingDirectory creates local docker base directory.

func CreateDockerWorkingDirectory

func CreateDockerWorkingDirectory() error

CreateDockerWorkingDirectory creates local docker directory.

func CreateLocalPropertiesDirectory

func CreateLocalPropertiesDirectory() error

func CreateMavenWorkingDirectory

func CreateMavenWorkingDirectory() error

CreateMavenWorkingDirectory creates local Maven working directory.

func DeleteDockerBaseWorkingDirectory

func DeleteDockerBaseWorkingDirectory() error

DeleteDockerBaseWorkingDirectory removes directory used for computing the base dependencies.

func DeleteDockerWorkingDirectory

func DeleteDockerWorkingDirectory() error

DeleteDockerWorkingDirectory removes directory used for computing the integration dependencies.

func DeleteLocalIntegrationDirs

func DeleteLocalIntegrationDirs(dir string) error

func DeleteMavenWorkingDirectory

func DeleteMavenWorkingDirectory() error

DeleteMavenWorkingDirectory removes local Maven working directory.

func GetBuildDependencies

func GetBuildDependencies(integrationDirectory string) ([]string, error)

func GetBuildProperties

func GetBuildProperties(integrationDirectory string) ([]string, error)

func GetBuildRoutes

func GetBuildRoutes(integrationDirectory string) ([]string, error)

func GetCustomAppDir

func GetCustomAppDir(dir string) string

func GetCustomDependenciesDir

func GetCustomDependenciesDir(dir string) string

func GetCustomLibDir

func GetCustomLibDir(dir string) string

func GetCustomPropertiesDir

func GetCustomPropertiesDir(dir string) string

func GetCustomQuarkusDir

func GetCustomQuarkusDir(dir string) string

func GetCustomRoutesDir

func GetCustomRoutesDir(dir string) string

func GetDependencies

func GetDependencies(ctx context.Context, cmd *cobra.Command, srcs, userDependencies, repositories []string,
	allDependencies bool) ([]string, error)

GetDependencies resolves and gets the list of dependencies from catalog and sources.

func GetLocalPropertiesDir

func GetLocalPropertiesDir() string

GetLocalPropertiesDir returns <mavenWorkingDirectory>/properties.

func OutputDependencies

func OutputDependencies(dependencies []string, format string, cmd *cobra.Command) error

func RunIntegrationImage

func RunIntegrationImage(ctx context.Context, image string, stdout, stderr io.Writer) error

func RunLocalIntegration

func RunLocalIntegration(ctx context.Context, properties []string, dependencies []string, routes []string,
	propertiesDir string, stdout, stderr io.Writer) error

func SetDockerEnvVars

func SetDockerEnvVars(envVars []string)

func SetDockerNetworkName

func SetDockerNetworkName(networkName string)

func UpdateIntegrationProperties

func UpdateIntegrationProperties(properties []string, propertyFiles []string, hasIntegrationDir bool) ([]string, error)

func ValidateDependencies

func ValidateDependencies(dependencies []string) error

ValidateDependencies validates list of additional dependencies i.e. makes sure that each dependency has a valid type.

func ValidateFiles

func ValidateFiles(args []string) error

ValidateFiles ensures existence of given files.

func ValidatePropertyFiles

func ValidatePropertyFiles(propertyFiles []string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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