Documentation ¶
Index ¶
- type BalExecutor
- type DockerBalExecutor
- func (balExecutor *DockerBalExecutor) Build(balSource string, args []string, cmdDir string) error
- func (balExecutor *DockerBalExecutor) ExecutablePath() (string, error)
- func (balExecutor *DockerBalExecutor) Init(workingDir, projectName, moduleName string) error
- func (balExecutor *DockerBalExecutor) Run(fileName string, args []string, envVars []*EnvironmentVariable, cmdDir string) error
- func (balExecutor *DockerBalExecutor) Test(args []string, envVars []*EnvironmentVariable, cmdDir string) error
- func (balExecutor *DockerBalExecutor) Version() (string, error)
- type EnvironmentVariable
- type LocalBalExecutor
- func (balExecutor *LocalBalExecutor) Build(balSource string, args []string, cmdDir string) error
- func (balExecutor *LocalBalExecutor) ExecutablePath() (string, error)
- func (balExecutor *LocalBalExecutor) Init(workingDir, balProjectName, balModuleName string) error
- func (balExecutor *LocalBalExecutor) Run(balSource string, args []string, envVars []*EnvironmentVariable, cmdDir string) error
- func (balExecutor *LocalBalExecutor) Test(args []string, envVars []*EnvironmentVariable, cmdDir string) error
- func (balExecutor *LocalBalExecutor) Version() (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BalExecutor ¶
type BalExecutor interface { Build(fileName string, args []string, cmdDir string) error Run(fileName string, args []string, envVars []*EnvironmentVariable, cmdDir string) error Test(args []string, envVars []*EnvironmentVariable, cmdDir string) error Init(workingDir, projectName, moduleName string) error Version() (string, error) ExecutablePath() (string, error) }
type DockerBalExecutor ¶
type DockerBalExecutor struct { }
func NewDockerBalExecutor ¶
func NewDockerBalExecutor() *DockerBalExecutor
NewDockerBalExecutor returns a DockerBalExecutor instance.
func (*DockerBalExecutor) Build ¶
func (balExecutor *DockerBalExecutor) Build(balSource string, args []string, cmdDir string) error
Build executes ballerina build when ballerina is not installed.
func (*DockerBalExecutor) ExecutablePath ¶
func (balExecutor *DockerBalExecutor) ExecutablePath() (string, error)
ExecutablePath returns ballerina executable path.
func (*DockerBalExecutor) Init ¶
func (balExecutor *DockerBalExecutor) Init(workingDir, projectName, moduleName string) error
func (*DockerBalExecutor) Run ¶
func (balExecutor *DockerBalExecutor) Run(fileName string, args []string, envVars []*EnvironmentVariable, cmdDir string) error
Run executes ballerina run when ballerina is not installed.
func (*DockerBalExecutor) Test ¶
func (balExecutor *DockerBalExecutor) Test(args []string, envVars []*EnvironmentVariable, cmdDir string) error
Test executes the ballerina test command on a Ballerina project If the --disable-telepresence flag is passed to the CLI, the args will be an empty array meaning the tests should be run without starting Telepresence
func (*DockerBalExecutor) Version ¶
func (balExecutor *DockerBalExecutor) Version() (string, error)
Version returns the ballerina version.
type EnvironmentVariable ¶
EnvironmentVariable is used to store the environment variables to be passed to the instances
type LocalBalExecutor ¶
type LocalBalExecutor struct { }
func NewLocalBalExecutor ¶
func NewLocalBalExecutor() *LocalBalExecutor
NewLocalBalExecutor returns a LocalBalExecutor instance.
func (*LocalBalExecutor) Build ¶
func (balExecutor *LocalBalExecutor) Build(balSource string, args []string, cmdDir string) error
Build executes ballerina build on an executable bal file.
func (*LocalBalExecutor) ExecutablePath ¶
func (balExecutor *LocalBalExecutor) ExecutablePath() (string, error)
ExecutablePath returns the ballerina executable path.
func (*LocalBalExecutor) Init ¶
func (balExecutor *LocalBalExecutor) Init(workingDir, balProjectName, balModuleName string) error
Init initializes a ballerina project in the current working directory
func (*LocalBalExecutor) Run ¶
func (balExecutor *LocalBalExecutor) Run(balSource string, args []string, envVars []*EnvironmentVariable, cmdDir string) error
Run executes ballerina run on an executable bal file.
func (*LocalBalExecutor) Test ¶
func (balExecutor *LocalBalExecutor) Test(args []string, envVars []*EnvironmentVariable, cmdDir string) error
Test executes the ballerina test command on a Ballerina project If the --disable-telepresence flag is passed to the CLI, the args will be an empty array meaning the tests should be run without starting Telepresence
func (*LocalBalExecutor) Version ¶
func (balExecutor *LocalBalExecutor) Version() (string, error)
Version returns the ballerina version.