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 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 ¶
CopyIntegrationFilesToDirectory --
func CreateLocalDependenciesDirectory ¶
func CreateLocalDependenciesDirectory() error
CreateLocalDependenciesDirectory --
func CreateLocalPropertiesDirectory ¶
func CreateLocalPropertiesDirectory() error
CreateLocalPropertiesDirectory --
func CreateLocalRoutesDirectory ¶
func CreateLocalRoutesDirectory() error
CreateLocalRoutesDirectory --
func DependenciesToJSON ¶
DependenciesToJSON --
func DependenciesToYAML ¶
DependenciesToYAML --
func EvaluateCLIAndLazyEnvVars ¶
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 ¶
FindNamedMatches ---
func GetEnvironmentVariable ¶
GetEnvironmentVariable --
func GetLocalDependenciesDir ¶
func GetLocalDependenciesDir() string
GetLocalDependenciesDir --<mavenWorkingDirectory>/dependencies
func GetLocalPropertiesDir ¶
func GetLocalPropertiesDir() string
GetLocalPropertiesDir -- <mavenWorkingDirectory>/properties
func GetLocalRoutesDir ¶
func GetLocalRoutesDir() string
GetLocalRoutesDir -- <mavenWorkingDirectory>/routes
func IsNilOrFalse ¶
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 ¶
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 WriteFileWithBytesMarshallerContent ¶
func WriteFileWithBytesMarshallerContent(buildDir string, relativePath string, content BytesMarshaller) error
WriteFileWithBytesMarshallerContent --
func WriteFileWithContent ¶
WriteFileWithContent --
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 minishift contains utilities for Minishift deployments
|
Package minishift contains utilities for Minishift 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 |