Documentation ¶
Index ¶
- Constants
- Variables
- func BoolP(b bool) *bool
- func CopyFile(src, dst string) (int64, error)
- func CopyIntegrationFilesToDirectory(files []string, directory string) ([]string, error)
- func CopyMap(source map[string]string) map[string]string
- func CreateDirectory(directory string) error
- func CreateLocalDependenciesDirectory() error
- func CreateLocalPropertiesDirectory() error
- func CreateLocalRoutesDirectory() error
- func DependenciesToJSON(list []string) ([]byte, error)
- func DependenciesToYAML(list []string) ([]byte, 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 GetLocalDependenciesDir() string
- func GetLocalPropertiesDir() string
- func GetLocalRoutesDir() string
- func IsFalse(b *bool) bool
- func IsNilOrFalse(b *bool) bool
- func IsNilOrTrue(b *bool) bool
- func IsTrue(b *bool) bool
- func JSONToYAML(src []byte) ([]byte, error)
- func SortedMapKeys(m map[string]interface{}) []string
- func SortedStringMapKeys(m map[string]string) []string
- 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 DefaultDependenciesDirectoryName = "dependencies"
DefaultDependenciesDirectoryName --
const DefaultPropertiesDirectoryName = "properties"
DefaultPropertiesDirectoryName --
const DefaultRoutesDirectoryName = "routes"
DefaultRoutesDirectoryName --
const DefaultWorkingDirectoryName = "workspace"
DefaultWorkingDirectoryName --
Variables ¶
var CLIEnvVars []string = []string{}
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 = []string{}
ListOfLazyEvaluatedEnvVars -- List of unevaluated environment variables. These are sensitive values or values that may have different values depending where the integration is run (locally vs. the cloud). These environment variables are evaluated at the time of the integration invocation.
var MavenWorkingDirectory string = ""
MavenWorkingDirectory -- 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 CopyIntegrationFilesToDirectory ¶ added in v1.4.0
CopyIntegrationFilesToDirectory --
func CreateDirectory ¶ added in v1.3.0
CreateDirectory --
func CreateLocalDependenciesDirectory ¶ added in v1.3.0
func CreateLocalDependenciesDirectory() error
CreateLocalDependenciesDirectory --
func CreateLocalPropertiesDirectory ¶ added in v1.3.0
func CreateLocalPropertiesDirectory() error
CreateLocalPropertiesDirectory --
func CreateLocalRoutesDirectory ¶ added in v1.3.0
func CreateLocalRoutesDirectory() error
CreateLocalRoutesDirectory --
func DependenciesToJSON ¶ added in v1.3.0
DependenciesToJSON --
func DependenciesToYAML ¶ added in v1.3.0
DependenciesToYAML --
func DirectoryExists ¶ added in v1.3.0
DirectoryExists --
func EvaluateCLIAndLazyEnvVars ¶ added in v1.4.0
EvaluateCLIAndLazyEnvVars -- Function that creates a list of environment variables with entries VAR=value that can be passed when running the integration.
func FindAllDistinctStringSubmatch ¶
FindAllDistinctStringSubmatch --
func FindNamedMatches ¶ added in v1.3.0
FindNamedMatches ---
func GetEnvironmentVariable ¶ added in v1.3.0
GetEnvironmentVariable --
func GetLocalDependenciesDir ¶ added in v1.3.0
func GetLocalDependenciesDir() string
GetLocalDependenciesDir --<mavenWorkingDirectory>/dependencies
func GetLocalPropertiesDir ¶ added in v1.3.0
func GetLocalPropertiesDir() string
GetLocalPropertiesDir -- <mavenWorkingDirectory>/properties
func GetLocalRoutesDir ¶ added in v1.3.0
func GetLocalRoutesDir() string
GetLocalRoutesDir -- <mavenWorkingDirectory>/routes
func IsNilOrFalse ¶ added in v1.3.0
IsNilOrFalse checks if the bool pointer is nil or false. You can use it if the bool pointer is meant to be false by default.
func IsNilOrTrue ¶ added in v1.3.0
IsNilOrTrue checks if the bool pointer is nil or true. You can use it if the bool pointer is meant to be true by default.
func SortedStringMapKeys ¶
SortedStringMapKeys --
func StringSliceContains ¶
StringSliceContains --
func StringSliceContainsAnyOf ¶
StringSliceContainsAnyOf --
func StringSliceExists ¶
StringSliceExists --
func StringSliceUniqueAdd ¶
StringSliceUniqueAdd append the given item if not already present in the slice
func StringSliceUniqueConcat ¶
StringSliceUniqueConcat append all the items of the "items" slice if they are not already present in the slice
func SubstringFrom ¶ added in v1.4.0
SubstringFrom --
func WriteFileWithBytesMarshallerContent ¶
func WriteFileWithBytesMarshallerContent(buildDir string, relativePath string, content BytesMarshaller) error
WriteFileWithBytesMarshallerContent --
func WriteFileWithContent ¶
WriteFileWithContent --
func WriteToFile ¶ added in v1.3.0
WriteToFile --
Types ¶
type BytesMarshaller ¶
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 |