Documentation ¶
Index ¶
- Constants
- func CreateBallerinaConf(instanceName string, extractedImage *ExtractedImage, startDependencies bool, ...) error
- func CreateTelepresenceResources(incell bool, imageDir string, instanceName string) (*string, error)
- func DeleteTelepresenceResouces(imageDir string)
- func ExtractImage(cli cli.Cli, cellImage *image.CellImage, pullIfNotPresent bool) (string, error)
- func PromtConfirmation(balProj string, debug bool) (bool, error)
- func RunBuild(cli cli.Cli, tag string, balSource string) error
- func RunDeleteImage(cli cli.Cli, images []string, regex string, deleteAll bool) error
- func RunDescribe(cli cli.Cli, name string) error
- func RunExtractResources(cli cli.Cli, cellImage string, outputPath string) error
- func RunInspect(cli cli.Cli, cellImage string) error
- func RunListComponents(cli cli.Cli, name string) error
- func RunListImages(cli cli.Cli) error
- func RunListIngresses(cli cli.Cli, name string) error
- func RunPull(cli cli.Cli, cellImage string, isSilent bool, username string, password string) error
- func RunPush(cli cli.Cli, cellImage string, username string, password string) error
- func RunRun(cli cli.Cli, cellImageTag string, instanceName string, startDependencies bool, ...) error
- func RunTest(cli cli.Cli, cellImageTag string, instanceName string, startDependencies bool, ...) error
- func RunView(cli cli.Cli, cellImage string) error
- type ExtractedImage
Constants ¶
const CelleryTestVerboseMode = "CELLERY_DEBUG_MODE"
const Logs = "logs"
Variables ¶
This section is empty.
Functions ¶
func CreateBallerinaConf ¶
func CreateTelepresenceResources ¶ added in v0.6.0
func DeleteTelepresenceResouces ¶ added in v0.6.0
func DeleteTelepresenceResouces(imageDir string)
func ExtractImage ¶
extractImage extracts the image into a temporary directory and returns the path. Cleaning the path after finishing your work is your responsibility.
func RunBuild ¶
RunBuild executes the cell's build life cycle method and saves the generated cell image to the local repo. This also copies the relevant ballerina files to the ballerina repo directory.
func RunDeleteImage ¶
func RunExtractResources ¶
RunExtractResources extracts the cell image zip file and copies the resources folder to the provided path
func RunInspect ¶
RunInspect extracts the cell image and lists the files in the cell image
func RunListImages ¶
func RunPull ¶
RunPull connects to the Cellery Registry and pulls the cell image and saves it in the local repository. This also adds the relevant ballerina files to the ballerina repo directory.
func RunPush ¶
RunPush parses the cell image name to recognize the Cellery Registry (A Docker Registry), Organization and version and pushes to the Cellery Registry
func RunRun ¶
func RunRun(cli cli.Cli, cellImageTag string, instanceName string, startDependencies bool, shareDependencies bool, dependencyLinks []string, envVars []string) error
RunRun starts Cell instance (along with dependency instances if specified by the user) This also support linking instances to parts of the dependency tree This command also strictly validates whether the requested Cell (and the dependencies are valid)
func RunTest ¶
func RunTest(cli cli.Cli, cellImageTag string, instanceName string, startDependencies bool, shareDependencies bool, dependencyLinks []string, envVars []string, assumeYes bool, debug bool, verbose bool, disableTelepresence bool, incell bool, projLocation string) error
RunTest starts Cell instance (along with dependency instances if specified by the user)\
Types ¶
type ExtractedImage ¶ added in v0.6.0
type ExtractedImage struct { ImageDir string MainNode *dependencyTreeNode RootNodeDependencies map[string]*dependencyInfo InstanceEnvVars []*environmentVariable }
extractedImage is used to start the instance