commands

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2019 License: Apache-2.0 Imports: 52 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractImage added in v0.3.0

func ExtractImage(cellImage *image.CellImage, pullIfNotPresent bool, spinner *util.Spinner) (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 RunApplyAutoscalePolicies added in v0.3.0

func RunApplyAutoscalePolicies(kind kubectl.InstanceKind, instance string, file string) error

func RunBuild

func RunBuild(tag string, fileName string)

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 RunCleanupExisting added in v0.2.1

func RunCleanupExisting(removeKnative, removeIstio, removeIngress, removeHpa, confirmed bool) error

func RunCleanupGcp added in v0.2.1

func RunCleanupGcp(value string) error

func RunCleanupLocal added in v0.2.1

func RunCleanupLocal(removeVm, removeVmImage bool) error

func RunDeleteImage added in v0.3.0

func RunDeleteImage(images []string, regex string, deleteAll bool)

func RunDescribe

func RunDescribe(name string)

func RunDockerTelepresenceTests added in v0.4.0

func RunDockerTelepresenceTests(incell bool, cmd *exec.Cmd, cmdArgs []string, imageDir string, instanceName string, debug bool)

func RunExportAutoscalePolicies added in v0.4.0

func RunExportAutoscalePolicies(kind kubectl.InstanceKind, instance string, outputfile string) error

func RunExtractResources

func RunExtractResources(cellImage string, outputPath string)

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

func RunImage

func RunImage()

func RunInit

func RunInit(projectName string)

func RunInspect added in v0.2.0

func RunInspect(cellImage string)

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

func RunListComponents added in v0.2.0

func RunListComponents(name string)

func RunListDependencies added in v0.3.0

func RunListDependencies(instanceName string) error

func RunListIngresses added in v0.2.0

func RunListIngresses(name string)

func RunListInstances added in v0.2.0

func RunListInstances()

func RunLogin added in v0.2.0

func RunLogin(registryURL string, username string, password string)

RunLogin requests the user for credentials and logs into a Cellery Registry

func RunLogout added in v0.2.0

func RunLogout(registryURL string)

RunLogout removes the saved credentials for a particular registry

func RunLogs

func RunLogs(cellName, componentName string)

func RunPatchForSingleComponent added in v0.4.0

func RunPatchForSingleComponent(instance string, component string, containerImage string, containerName string, envVars []string) error

func RunPull

func RunPull(cellImage string, isSilent bool, username string, password string)

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(cellImage string, username string, password string)

RunPush parses the cell image name to recognize the Cellery Registry (A Docker Registry), Organization and version and pushes to the Cellery Registry

func RunRouteTrafficCommand added in v0.3.0

func RunRouteTrafficCommand(sourceInstances []string, dependencyInstance string, targetInstance string, percentage int,
	enableUserBasedSessionAwareness bool, assumeYes bool) error

func RunRun

func RunRun(cellImageTag string, instanceName string, startDependencies bool, shareDependencies bool,
	dependencyLinks []string, envVars []string)

func RunSetup

func RunSetup()

func RunSetupCreateGcp added in v0.2.0

func RunSetupCreateGcp(isCompleteSetup bool)

func RunSetupCreateLocal added in v0.2.0

func RunSetupCreateLocal(isCompleteSelected, forceDownload, confirmed bool)

func RunSetupCreateOnExistingCluster added in v0.2.0

func RunSetupCreateOnExistingCluster(isPersistentVolume, hasNfsStorage, isLoadBalancerIngressMode bool,
	nfs runtime.Nfs, db runtime.MysqlDb, nodePortIpAddress string)

func RunSetupListClusters added in v0.2.1

func RunSetupListClusters() error

func RunSetupModify added in v0.2.0

func RunSetupModify(addApimGlobalGateway, addObservability, knative, hpa runtime.Selection)

func RunSetupStatusCommand added in v0.3.0

func RunSetupStatusCommand()

func RunStatus

func RunStatus(cellName string)

func RunSwitchCommand added in v0.2.1

func RunSwitchCommand(context string) error

func RunTelepresenceTests added in v0.4.0

func RunTelepresenceTests(incell bool, cmd *exec.Cmd, cmdArgs []string, imageDir string, instanceName string, debug bool)

func RunTerminate added in v0.2.0

func RunTerminate(terminatingInstances []string, terminateAll bool)

func RunTest added in v0.3.0

func RunTest(cellImageTag string, instanceName string, startDependencies bool, shareDependencies bool,
	dependencyLinks []string, envVars []string, assumeYes bool, debug bool, verbose bool, incell bool)

RunRun starts Cell instance (along with dependency instances if specified by the user)\

func RunVersion

func RunVersion()

func RunView added in v0.2.0

func RunView(cellImage string)

RunView opens the View for a particular Cell Image

func StopTelepresence added in v0.4.0

func StopTelepresence(filepath string) error

func ValidateCluster added in v0.2.1

func ValidateCluster(cluster string) error

func ValidateGcpCluster added in v0.2.1

func ValidateGcpCluster(cluster string) (bool, error)

Types

type Component

type Component struct {
	// contains filtered or unexported fields
}

type SystemComponent added in v0.3.0

type SystemComponent struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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