image

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: 26 Imported by: 3

Documentation

Index

Constants

View Source
const CelleryTestVerboseMode = "CELLERY_DEBUG_MODE"
View Source
const Logs = "logs"

Variables

This section is empty.

Functions

func CreateBallerinaConf

func CreateBallerinaConf(instanceName string, extractedImage *ExtractedImage, startDependencies bool, shareDependencies bool,
	verboseMode string, balProj string) error

func CreateTelepresenceResources added in v0.6.0

func CreateTelepresenceResources(incell bool, imageDir string, instanceName string) (*string, error)

func DeleteTelepresenceResouces added in v0.6.0

func DeleteTelepresenceResouces(imageDir string)

func ExtractImage

func ExtractImage(cli cli.Cli, cellImage *image.CellImage, pullIfNotPresent bool) (string, error)

extractImage extracts the image into a temporary directory and returns the path. Cleaning the path after finishing your work is your responsibility.

func PromtConfirmation

func PromtConfirmation(balProj string, debug bool) (bool, error)

func RunBuild

func RunBuild(cli cli.Cli, tag string, balSource string) error

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 RunDeleteImage(cli cli.Cli, images []string, regex string, deleteAll bool) error

func RunDescribe

func RunDescribe(cli cli.Cli, name string) error

func RunExtractResources

func RunExtractResources(cli cli.Cli, cellImage string, outputPath string) error

RunExtractResources extracts the cell image zip file and copies the resources folder to the provided path

func RunInspect

func RunInspect(cli cli.Cli, cellImage string) error

RunInspect extracts the cell image and lists the files in the cell image

func RunListComponents

func RunListComponents(cli cli.Cli, name string) error

func RunListImages

func RunListImages(cli cli.Cli) error

func RunListIngresses

func RunListIngresses(cli cli.Cli, name string) error

func RunPull

func RunPull(cli cli.Cli, cellImage string, isSilent bool, username string, password string) error

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

func RunPush(cli cli.Cli, cellImage string, username string, password string) error

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)\

func RunView

func RunView(cli cli.Cli, cellImage string) error

RunView opens the View for a particular Cell Image

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

Jump to

Keyboard shortcuts

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