Documentation ¶
Index ¶
- type BalExecutor
- type DockerBalExecutor
- func (balExecutor *DockerBalExecutor) Build(fileName string, args []string) error
- func (balExecutor *DockerBalExecutor) ExecutablePath() (string, error)
- func (balExecutor *DockerBalExecutor) Init(projectDir string) error
- func (balExecutor *DockerBalExecutor) Run(fileName string, args []string, envVars []*EnvironmentVariable) error
- func (balExecutor *DockerBalExecutor) Test(fileName string, args []string, envVars []*EnvironmentVariable) error
- func (balExecutor *DockerBalExecutor) Version() (string, error)
- type EnvironmentVariable
- type LocalBalExecutor
- func (balExecutor *LocalBalExecutor) Build(fileName string, args []string) error
- func (balExecutor *LocalBalExecutor) ExecutablePath() (string, error)
- func (balExecutor *LocalBalExecutor) Init(projectDir string) error
- func (balExecutor *LocalBalExecutor) Run(fileName string, args []string, envVars []*EnvironmentVariable) error
- func (balExecutor *LocalBalExecutor) Test(fileName string, args []string, envVars []*EnvironmentVariable) 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) error Run(fileName string, args []string, envVars []*EnvironmentVariable) error Test(fileName string, args []string, envVars []*EnvironmentVariable) error Init(projectName 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(fileName string, args []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(projectDir string) error
func (*DockerBalExecutor) Run ¶
func (balExecutor *DockerBalExecutor) Run(fileName string, args []string, envVars []*EnvironmentVariable) error
Run executes ballerina run when ballerina is not installed.
func (*DockerBalExecutor) Test ¶
func (balExecutor *DockerBalExecutor) Test(fileName string, args []string, envVars []*EnvironmentVariable) error
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(fileName string, args []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(projectDir string) error
Init initializes a ballerina project in the current working directory
func (*LocalBalExecutor) Run ¶
func (balExecutor *LocalBalExecutor) Run(fileName string, args []string, envVars []*EnvironmentVariable) error
Run executes ballerina run on an executable bal file.
func (*LocalBalExecutor) Test ¶
func (balExecutor *LocalBalExecutor) Test(fileName string, args []string, envVars []*EnvironmentVariable) error
func (*LocalBalExecutor) Version ¶
func (balExecutor *LocalBalExecutor) Version() (string, error)
Version returns the ballerina version.