Versions in this module Expand all Collapse all v1 v1.6.2 Jun 9, 2022 Changes in this version + const ContainerAppDirectoryName + const ContainerLibDirectoryName + const ContainerQuarkusDirectoryName + const CustomAppDirectoryName + const CustomLibDirectoryName + const CustomQuarkusDirectoryName + const DefaultDependenciesDirectoryName + const DefaultPropertiesDirectoryName + const DefaultRoutesDirectoryName + const DefaultWorkingDirectoryName + var CLIEnvVars = make([]string, 0) + var ContainerDependenciesDirectory = "/deployments/dependencies" + var ContainerPropertiesDirectory = "/etc/camel/conf.d" + var ContainerResourcesDirectory = "/etc/camel/resources" + var ContainerRoutesDirectory = "/etc/camel/sources" + var ListOfLazyEvaluatedEnvVars = []string + var MavenWorkingDirectory = "" + var QuarkusDependenciesBaseDirectory = "/quarkus-app" + func Close(err error, closer io.Closer) error + func CloseQuietly(closer io.Closer) + func ConfigTreePropertySplit(property string) []string + func CopyAppFile(localDependenciesDirectory string, localAppDirectory string) error + func CopyFile(src, dst string) (nBytes int64, err 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) (ok bool, err 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 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), stdErrF func(string)) (err 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 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 interface + MarshalBytes func() ([]byte, error) Other modules containing this package github.com/lendi-au/camel-k/v2