ballerina

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2019 License: Apache-2.0 Imports: 16 Imported by: 9

Documentation

Index

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

type EnvironmentVariable struct {
	Key   string
	Value string
}

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.

Jump to

Keyboard shortcuts

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