Documentation ¶
Overview ¶
Copyright © 2023 NAME HERE <EMAIL ADDRESS>
Index ¶
- Constants
- Variables
- func Execute()
- func NewAnalyzeCmd(log logr.Logger) *cobra.Command
- func NewContainer(log logr.Logger) *container
- func NewOpenRewriteCommand(log logr.Logger) *cobra.Command
- func NewTransformCommand(log logr.Logger) *cobra.Command
- func NewVersionCommand() *cobra.Command
- func NewWindupShimCommand(log logr.Logger) *cobra.Command
- type Config
- type Option
- func WithCleanup(cl bool) Option
- func WithEntrypointArgs(args ...string) Option
- func WithEntrypointBin(b string) Option
- func WithEnv(k string, v string) Option
- func WithImage(i string) Option
- func WithName(n string) Option
- func WithStderr(e ...io.Writer) Option
- func WithStdout(o ...io.Writer) Option
- func WithVolumes(m map[string]string) Option
- func WithWorkDir(w string) Option
- func WithcFlag(cl bool) Option
Constants ¶
View Source
const ( RulesetPath = "/opt/rulesets" OpenRewriteRecipesPath = "/opt/openrewrite" InputPath = "/opt/input" OutputPath = "/opt/output" XMLRulePath = "/opt/xmlrules" ShimOutputPath = "/opt/shimoutput" CustomRulePath = "/opt/input/rules" JavaBundlesLocation = "/jdtls/java-analyzer-bundle/java-analyzer-bundle.core/target/java-analyzer-bundle.core-1.0.0-SNAPSHOT.jar" )
Variables ¶
View Source
var ( // TODO (pgaikwad): this assumes that the $USER in container is always root, it may not be the case in future M2Dir = path.Join("/", "root", ".m2") // application source path inside the container SourceMountPath = path.Join(InputPath, "source") // analyzer config files ConfigMountPath = path.Join(InputPath, "config") // user provided rules path RulesMountPath = path.Join(RulesetPath, "input") // paths to files in the container AnalysisOutputMountPath = path.Join(OutputPath, "output.yaml") DepsOutputMountPath = path.Join(OutputPath, "dependencies.yaml") ProviderSettingsMountPath = path.Join(ConfigMountPath, "settings.json") )
View Source
var ( BuildCommit = "" Version = "v99.0.0" )
View Source
var Settings = &Config{}
Functions ¶
func Execute ¶
func Execute()
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func NewAnalyzeCmd ¶
analyzeCmd represents the analyze command
func NewContainer ¶
func NewVersionCommand ¶ added in v0.3.1
Use build flags to set correct Version and BuildCommit e.g.: --ldflags="-X 'github.com/konveyor-ecosystem/kantra/cmd.Version=1.2.3' -X 'github.com/konveyor-ecosystem/kantra/cmd.BuildCommit=$(git rev-parse HEAD)'"
Types ¶
type Config ¶
type Option ¶
type Option func(c *container)
func WithCleanup ¶
func WithEntrypointArgs ¶
func WithEntrypointBin ¶
func WithStderr ¶
func WithStdout ¶
func WithVolumes ¶
func WithWorkDir ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.