ballerina

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 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) 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

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(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.

Jump to

Keyboard shortcuts

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