common

package
v3.0.0-beta.2309140919 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BLUEMIX_APIHOST   = "BLUEMIX_APIHOST"
	BLUEMIX_NAMESPACE = "BLUEMIX_NAMESPACE"
	BLUEMIX_AUTH      = "BLUEMIX_AUTH"
)

Variables

This section is empty.

Functions

func GetWskpropsFromEnvVars

func GetWskpropsFromEnvVars(apiHost string, namespace string, authKey string) *whisk.Wskprops

func GetWskpropsFromValues

func GetWskpropsFromValues(apiHost string, namespace string, authKey string, version string) *whisk.Wskprops

func ValidateWskprops

func ValidateWskprops(wskprops *whisk.Wskprops) error

Types

type Wskdeploy

type Wskdeploy struct {
	Path string
	Dir  string
}

func NewWskWithPath

func NewWskWithPath(path string) *Wskdeploy

func NewWskdeploy

func NewWskdeploy() *Wskdeploy

func (*Wskdeploy) Deploy

func (wskdeploy *Wskdeploy) Deploy(manifestPath string, deploymentPath string) (string, error)

func (*Wskdeploy) DeployManifestPathOnly

func (wskdeploy *Wskdeploy) DeployManifestPathOnly(manifestpath string) (string, error)

func (*Wskdeploy) DeployManifestVerbose

func (wskdeploy *Wskdeploy) DeployManifestVerbose(manifestPath string) (string, error)

func (*Wskdeploy) DeployProjectPathOnly

func (wskdeploy *Wskdeploy) DeployProjectPathOnly(projectPath string) (string, error)

func (*Wskdeploy) DeployWithCredentials

func (wskdeploy *Wskdeploy) DeployWithCredentials(manifestPath string, deploymentPath string, wskprops *whisk.Wskprops) (string, error)

func (*Wskdeploy) ExportProject

func (wskdeploy *Wskdeploy) ExportProject(projectName string, targetManifestPath string) (string, error)

Note: this test often fails due to server-related issues trying to access newly created objects (e.g., primarily Rules) too quickly which often lose Annotations. causing SIGSEGV errors. It also sometimes fails accessing local storage (for tmp directories and files that are created in Travis (constrained, shared environments). You can add the "-t" or "--trace" to the RunCommand to get extensive trace on all HTTP calls

func (*Wskdeploy) ExportProjectWithCredentials

func (wskdeploy *Wskdeploy) ExportProjectWithCredentials(projectName string, targetManifestPath string, wskprops *whisk.Wskprops) (string, error)

func (*Wskdeploy) GetDeploymentObjects

func (wskdeploy *Wskdeploy) GetDeploymentObjects(manifestPath string, deploymentPath string) (*deployers.DeploymentProject, error)

This method is only for testing This method will mock a construction of deployment plan, creating all the memory objects This method CANNOT be used for real deployment! Param manifestPath & deploymentPath MUST be the absolute path.

func (*Wskdeploy) HeadlessManagedDeployment

func (Wskdeploy *Wskdeploy) HeadlessManagedDeployment(manifestPath string, deploymentPath string, name string) (string, error)

func (*Wskdeploy) ManagedDeployment

func (Wskdeploy *Wskdeploy) ManagedDeployment(manifestPath string, deploymentPath string) (string, error)

func (*Wskdeploy) ManagedDeploymentManifestAndProject

func (Wskdeploy *Wskdeploy) ManagedDeploymentManifestAndProject(manifestPath string, projectName string) (string, error)

func (*Wskdeploy) ManagedDeploymentManifestAndProjectWithCredentials

func (Wskdeploy *Wskdeploy) ManagedDeploymentManifestAndProjectWithCredentials(manifestPath string, projectName string, wskprops *whisk.Wskprops) (string, error)

func (*Wskdeploy) ManagedDeploymentOnlyManifest

func (Wskdeploy *Wskdeploy) ManagedDeploymentOnlyManifest(manifestPath string) (string, error)

func (*Wskdeploy) RunCommand

func (wskdeploy *Wskdeploy) RunCommand(s ...string) (string, error)

func (*Wskdeploy) Undeploy

func (wskdeploy *Wskdeploy) Undeploy(manifestPath string, deploymentPath string) (string, error)

func (*Wskdeploy) UndeployManifestPathOnly

func (wskdeploy *Wskdeploy) UndeployManifestPathOnly(manifestpath string) (string, error)

func (*Wskdeploy) UndeployProjectPathOnly

func (wskdeploy *Wskdeploy) UndeployProjectPathOnly(projectPath string) (string, error)

func (*Wskdeploy) UndeployWithCredentials

func (wskdeploy *Wskdeploy) UndeployWithCredentials(manifestPath string, deploymentPath string, wskprops *whisk.Wskprops) (string, error)

type Wskprops

type Wskprops struct {
	APIHost string
	AuthKey string
}

func GetWskprops

func GetWskprops() *Wskprops

Jump to

Keyboard shortcuts

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