common

package
v0.22.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 8, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	QUARKUS_MAVEN_PLUGIN                             = "quarkus-maven-plugin"
	QUARKUS_KUBERNETES_EXTENSION                     = "quarkus-kubernetes"
	QUARKUS_RESTEASY_REACTIVE_JACKSON_EXTENSION      = "quarkus-resteasy-reactive-jackson"
	QUARKUS_CONTAINER_IMAGE_JIB                      = "quarkus-container-image-jib"
	QUARKUS_CONTAINER_IMAGE_DOCKER                   = "quarkus-container-image-docker"
	KOGITO_QUARKUS_SERVERLESS_WORKFLOW_EXTENSION     = "kogito-quarkus-serverless-workflow"
	KOGITO_ADDONS_QUARKUS_KNATIVE_EVENTING_EXTENSION = "kogito-addons-quarkus-knative-eventing"

	// Versions
	JAVA_VERSION        = 11
	MAVEN_MAJOR_VERSION = 3
	MAVEN_MINOR_VERSION = 8

	// Default values
	DEFAULT_TAG      = "latest"
	WORKFLOW_SW_JSON = "workflow.sw.json"
)

Variables

View Source
var ExecCommand = exec.Command

Make it a global var so it can be overrided in tests

Functions

func BindEnv

func BindEnv(flags ...string) bindWorkflow

func CheckDocker

func CheckDocker() error

func CheckIfDirExists

func CheckIfDirExists(dirName string) (bool, error)

func CheckJavaDependencies

func CheckJavaDependencies() error

func CheckPodman

func CheckPodman() error

func DefaultTemplatedHelp

func DefaultTemplatedHelp(cmd *cobra.Command, args []string)

func GetFriendlyMessages

func GetFriendlyMessages(operation string) []string

Accepts a operation string, and returns an array of predefined messages. Taking the "creating" operation:

[]string{
	" Creating...",
	" Still creating project",
	" Still creating project",
	" Yes, still creating project",
	" Don't give up on me",
	" Still creating project",
	" This is taking a while",
}

func GetTemplate

func GetTemplate(cmd *cobra.Command, name string) *template.Template

func RunCommand

func RunCommand(command *exec.Cmd, verbose bool, commandName string, friendlyMessages []string) error

func RunExtensionCommand

func RunExtensionCommand(verbose bool, extensionCommand string, friendlyMessages []string, extensions string) error

func VerboseLog

func VerboseLog(stdout io.Reader, stderr io.Reader)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL