Documentation
¶
Index ¶
- Constants
- Variables
- func CopyAppFile(localDependenciesDirectory string, localAppDirectory string) error
- func CopyFile(src, dst string) (int64, error)
- func CopyIntegrationFilesToDirectory(files []string, directory string) ([]string, error)
- func CopyLibFiles(localDependenciesDirectory string, localLibDirectory string) error
- func CopyMap(source map[string]string) map[string]string
- func CopyQuarkusAppFiles(localDependenciesDirectory string, localQuarkusDir string) error
- func CreateDirectory(directory string) error
- func CreateLocalAppDirectory() error
- func CreateLocalDependenciesDirectory() error
- func CreateLocalLibDirectory() error
- func CreateLocalPropertiesDirectory() error
- func CreateLocalQuarkusDirectory() error
- func CreateLocalRoutesDirectory() error
- func DependenciesToJSON(list []string) ([]byte, error)
- func DependenciesToYAML(list []string) ([]byte, error)
- func DirectoryEmpty(directory string) (bool, error)
- func DirectoryExists(directory string) (bool, error)
- func EncodeXML(content interface{}) ([]byte, error)
- func EvaluateCLIAndLazyEnvVars() ([]string, error)
- func FileExists(name string) (bool, error)
- func FindAllDistinctStringSubmatch(data string, regexps ...*regexp.Regexp) []string
- func FindNamedMatches(expr string, str string) map[string]string
- func GetEnvironmentVariable(variable string) (string, error)
- func GetLocalAppDir() string
- func GetLocalDependenciesDir() string
- func GetLocalLibDir() string
- func GetLocalPropertiesDir() string
- func GetLocalQuarkusDir() string
- func GetLocalRoutesDir() string
- func JSONToMap(src []byte) (map[string]interface{}, error)
- func JSONToYAML(src []byte) ([]byte, error)
- func MapToYAML(src map[string]interface{}) ([]byte, error)
- func SortedMapKeys(m map[string]interface{}) []string
- func SortedStringMapKeys(m map[string]string) []string
- func StringContainsPrefix(slice []string, prefix string) bool
- func StringSliceContains(slice []string, items []string) bool
- func StringSliceContainsAnyOf(slice []string, items ...string) bool
- func StringSliceExists(slice []string, item string) bool
- func StringSliceJoin(slices ...[]string) []string
- func StringSliceUniqueAdd(slice *[]string, item string) bool
- func StringSliceUniqueConcat(slice *[]string, items []string) bool
- func SubstringFrom(s string, substr string) string
- func WriteFileWithBytesMarshallerContent(buildDir string, relativePath string, content BytesMarshaller) error
- func WriteFileWithContent(buildDir string, relativePath string, content []byte) error
- func WriteToFile(filePath string, fileContents string) error
- type BytesMarshaller
Constants ¶
const ContainerAppDirectoryName = "/app"
ContainerAppDirectoryName --
const ContainerLibDirectoryName = "/lib/main"
ContainerLibDirectoryName --
const ContainerQuarkusDirectoryName = "/quarkus"
ContainerQuarkusDirectoryName --
const CustomAppDirectoryName = "app"
CustomAppDirectoryName --
const CustomLibDirectoryName = "lib/main"
CustomLibDirectoryName --
const CustomQuarkusDirectoryName = "quarkus"
CustomQuarkusDirectoryName --
const DefaultDependenciesDirectoryName = "dependencies"
DefaultDependenciesDirectoryName --
const DefaultPropertiesDirectoryName = "properties"
DefaultPropertiesDirectoryName --
const DefaultRoutesDirectoryName = "routes"
DefaultRoutesDirectoryName --
const DefaultWorkingDirectoryName = "workspace"
DefaultWorkingDirectoryName --
Variables ¶
var CLIEnvVars = make([]string, 0)
CLIEnvVars -- List of CLI provided environment variables. They take precedence over any environment variables with the same name.
var ContainerDependenciesDirectory = "/deployments/dependencies"
ContainerDependenciesDirectory --
var ContainerPropertiesDirectory = "/etc/camel/conf.d"
ContainerPropertiesDirectory --
var ContainerResourcesDirectory = "/etc/camel/resources"
ContainerResourcesDirectory --
var ContainerRoutesDirectory = "/etc/camel/sources"
ContainerRoutesDirectory --
var ListOfLazyEvaluatedEnvVars = []string{}
ListOfLazyEvaluatedEnvVars -- List of unevaluated environment variables. These are sensitive values or values that may have different values depending on where the integration is run (locally vs. the cloud). These environment variables are evaluated at the time of the integration invocation.
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.
var QuarkusDependenciesBaseDirectory = "/quarkus-app"
QuarkusDependenciesBaseDirectory --
Functions ¶
func CopyAppFile ¶ added in v1.7.0
func CopyIntegrationFilesToDirectory ¶ added in v1.4.0
func CopyLibFiles ¶ added in v1.7.0
func CopyQuarkusAppFiles ¶ added in v1.7.0
func CreateDirectory ¶ added in v1.3.0
func CreateLocalAppDirectory ¶ added in v1.7.0
func CreateLocalAppDirectory() error
func CreateLocalDependenciesDirectory ¶ added in v1.3.0
func CreateLocalDependenciesDirectory() error
func CreateLocalLibDirectory ¶ added in v1.7.0
func CreateLocalLibDirectory() error
func CreateLocalPropertiesDirectory ¶ added in v1.3.0
func CreateLocalPropertiesDirectory() error
func CreateLocalQuarkusDirectory ¶ added in v1.7.0
func CreateLocalQuarkusDirectory() error
func CreateLocalRoutesDirectory ¶ added in v1.3.0
func CreateLocalRoutesDirectory() error
func DependenciesToJSON ¶ added in v1.3.0
func DependenciesToYAML ¶ added in v1.3.0
func DirectoryEmpty ¶ added in v1.7.0
func DirectoryExists ¶ added in v1.3.0
func EvaluateCLIAndLazyEnvVars ¶ added in v1.4.0
EvaluateCLIAndLazyEnvVars creates a list of environment variables with entries VAR=value that can be passed when running the integration.
func FileExists ¶
func FindNamedMatches ¶ added in v1.3.0
func GetEnvironmentVariable ¶ added in v1.3.0
func GetLocalAppDir ¶ added in v1.7.0
func GetLocalAppDir() string
GetLocalAppDir -- <mavenWorkingDirectory>/app
func GetLocalDependenciesDir ¶ added in v1.3.0
func GetLocalDependenciesDir() string
GetLocalDependenciesDir --<mavenWorkingDirectory>/dependencies
func GetLocalLibDir ¶ added in v1.7.0
func GetLocalLibDir() string
GetLocalLibDir -- <mavenWorkingDirectory>/lib/main
func GetLocalPropertiesDir ¶ added in v1.3.0
func GetLocalPropertiesDir() string
GetLocalPropertiesDir -- <mavenWorkingDirectory>/properties
func GetLocalQuarkusDir ¶ added in v1.7.0
func GetLocalQuarkusDir() string
GetLocalQuarkusDir -- <mavenWorkingDirectory>/quarkus
func GetLocalRoutesDir ¶ added in v1.3.0
func GetLocalRoutesDir() string
GetLocalRoutesDir -- <mavenWorkingDirectory>/routes
func JSONToYAML ¶ added in v1.3.0
func SortedMapKeys ¶
func SortedStringMapKeys ¶
func StringContainsPrefix ¶ added in v1.7.0
func StringSliceContains ¶
func StringSliceExists ¶
func StringSliceJoin ¶
func StringSliceUniqueAdd ¶
StringSliceUniqueAdd appends the given item if not already present in the slice
func StringSliceUniqueConcat ¶
StringSliceUniqueConcat appends all the items of the "items" slice if they are not already present in the slice
func SubstringFrom ¶ added in v1.4.0
func WriteFileWithBytesMarshallerContent ¶
func WriteFileWithBytesMarshallerContent(buildDir string, relativePath string, content BytesMarshaller) error
func WriteFileWithContent ¶
func WriteToFile ¶ added in v1.3.0
Types ¶
type BytesMarshaller ¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package bindings provides APIs to transform Kubernetes objects into Camel URIs equivalents
|
Package bindings provides APIs to transform Kubernetes objects into Camel URIs equivalents |
|
Package minikube contains utilities for Minikube deployments
|
Package minikube contains utilities for Minikube deployments |
|
Package sync provides useful tools to get notified when a file system resource changes
|
Package sync provides useful tools to get notified when a file system resource changes |