image

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConstructDockerArgs

func ConstructDockerArgs(testsRoot string, imageDir string) ([]string, error)

func CreateBallerinaConf

func CreateBallerinaConf(iName string, verboseMode string, imageDir string, dependencyLinks string,
	envVars []*environmentVariable, balProj string) error

func CreateTelepresenceDeployment

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

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(assumeYes bool, balProj string) error

func RunBuild

func RunBuild(cli cli.Cli, tag string, fileName 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, 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

func StopTelepresence

func StopTelepresence(filepath string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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