Documentation ¶
Index ¶
- Constants
- Variables
- func Close(err error, closer io.Closer) error
- func CloseQuietly(closer io.Closer)
- func ConfigTreePropertySplit(property string) []string
- func CopyDir(src, dst string) error
- func CopyFile(src, dst string) (int64, error)
- func CopyMap(source map[string]string) map[string]string
- func CreateDirectory(directory string) 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 JSONToMap(src []byte) (map[string]interface{}, error)
- func JSONToYAML(src []byte) ([]byte, error)
- func MapToYAML(src map[string]interface{}) ([]byte, error)
- func NavigateConfigTree(current interface{}, nodes []string) (interface{}, error)
- func Open(name string) (*os.File, error)
- func OpenFile(name string, flag int, perm os.FileMode) (*os.File, error)
- func RandomString(n int) string
- func ReadFile(filename string) ([]byte, error)
- func RunAndLog(ctx context.Context, cmd *exec.Cmd, stdOutF func(string) string, ...) 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 SubstringBefore(s string, substr string) string
- func SubstringFrom(s string, substr string) string
- func WithFile(name string, flag int, perm os.FileMode, consumer func(file *os.File) error) error
- func WithFileContent(name string, consumer func(file *os.File, data []byte) error) error
- func WithFileReader(name string, consumer func(reader io.Reader) error) error
- func WithTempDir(pattern string, consumer func(string) error) error
- func WriteFileWithBytesMarshallerContent(basePath string, filePath string, content BytesMarshaller) error
- func WriteFileWithContent(filePath 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 QuarkusDependenciesBaseDirectory = "/quarkus-app"
QuarkusDependenciesBaseDirectory --.
Functions ¶
func CloseQuietly ¶ added in v1.8.0
CloseQuietly unconditionally close an io.Closer It should not be used to replace the Close statement(s).
func ConfigTreePropertySplit ¶ added in v1.8.0
Parses a property spec and returns its parts.
func CreateDirectory ¶ added in v1.3.0
CreateDirectory creates a directory if it does not exist.
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 JSONToYAML ¶ added in v1.3.0
func NavigateConfigTree ¶ added in v1.8.0
NavigateConfigTree switch to the element in the tree represented by the "nodes" spec and creates intermediary nodes if missing. Nodes specs starting with "[" and ending in "]" are treated as slice indexes.
func RandomString ¶ added in v1.9.0
func RunAndLog ¶ added in v1.8.0
func RunAndLog(ctx context.Context, cmd *exec.Cmd, stdOutF func(string) string, stdErrF func(string) string) error
RunAndLog starts the provided command, scans its standard and error outputs line by line, to feed the provided handlers, and waits until the scans complete and the command returns.
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 SubstringBefore ¶ added in v1.10.0
func SubstringFrom ¶ added in v1.4.0
func WithFileContent ¶ added in v1.8.0
WithFileContent a safe wrapper to process a file content.
func WithFileReader ¶ added in v1.8.0
WithFileReader a safe wrapper to process a file.
func WithTempDir ¶ added in v1.8.0
WithTempDir a safe wrapper to deal with temporary directories.
func WriteFileWithBytesMarshallerContent ¶
func WriteFileWithBytesMarshallerContent(basePath string, filePath string, content BytesMarshaller) error
func WriteFileWithContent ¶
WriteFileWithContent a safe wrapper to write content to a file.
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 |