Documentation
¶
Index ¶
- Constants
- func GetWskpropsFromEnvVars(apiHost string, namespace string, authKey string) *whisk.Wskprops
- func GetWskpropsFromValues(apiHost string, namespace string, authKey string, version string) *whisk.Wskprops
- func ValidateWskprops(wskprops *whisk.Wskprops) error
- type Wskdeploy
- func (wskdeploy *Wskdeploy) Deploy(manifestPath string, deploymentPath string) (string, error)
- func (wskdeploy *Wskdeploy) DeployManifestPathOnly(manifestpath string) (string, error)
- func (wskdeploy *Wskdeploy) DeployManifestVerbose(manifestPath string) (string, error)
- func (wskdeploy *Wskdeploy) DeployProjectPathOnly(projectPath string) (string, error)
- func (wskdeploy *Wskdeploy) DeployWithCredentials(manifestPath string, deploymentPath string, wskprops *whisk.Wskprops) (string, error)
- func (wskdeploy *Wskdeploy) ExportProject(projectName string, targetManifestPath string) (string, error)
- func (wskdeploy *Wskdeploy) ExportProjectWithCredentials(projectName string, targetManifestPath string, wskprops *whisk.Wskprops) (string, error)
- func (wskdeploy *Wskdeploy) GetDeploymentObjects(manifestPath string, deploymentPath string) (*deployers.DeploymentProject, error)
- func (Wskdeploy *Wskdeploy) HeadlessManagedDeployment(manifestPath string, deploymentPath string, name string) (string, error)
- func (Wskdeploy *Wskdeploy) ManagedDeployment(manifestPath string, deploymentPath string) (string, error)
- func (Wskdeploy *Wskdeploy) ManagedDeploymentManifestAndProject(manifestPath string, projectName string) (string, error)
- func (Wskdeploy *Wskdeploy) ManagedDeploymentManifestAndProjectWithCredentials(manifestPath string, projectName string, wskprops *whisk.Wskprops) (string, error)
- func (Wskdeploy *Wskdeploy) ManagedDeploymentOnlyManifest(manifestPath string) (string, error)
- func (wskdeploy *Wskdeploy) RunCommand(s ...string) (string, error)
- func (wskdeploy *Wskdeploy) Undeploy(manifestPath string, deploymentPath string) (string, error)
- func (wskdeploy *Wskdeploy) UndeployManifestPathOnly(manifestpath string) (string, error)
- func (wskdeploy *Wskdeploy) UndeployProjectPathOnly(projectPath string) (string, error)
- func (wskdeploy *Wskdeploy) UndeployWithCredentials(manifestPath string, deploymentPath string, wskprops *whisk.Wskprops) (string, error)
- type Wskprops
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 GetWskpropsFromValues ¶
func ValidateWskprops ¶
Types ¶
type Wskdeploy ¶
func NewWskWithPath ¶
func NewWskdeploy ¶
func NewWskdeploy() *Wskdeploy
func (*Wskdeploy) DeployManifestPathOnly ¶
func (*Wskdeploy) DeployManifestVerbose ¶
func (*Wskdeploy) DeployProjectPathOnly ¶
func (*Wskdeploy) DeployWithCredentials ¶
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) 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) ManagedDeployment ¶
func (*Wskdeploy) ManagedDeploymentManifestAndProject ¶
func (*Wskdeploy) ManagedDeploymentManifestAndProjectWithCredentials ¶
func (*Wskdeploy) ManagedDeploymentOnlyManifest ¶
func (*Wskdeploy) UndeployManifestPathOnly ¶
func (*Wskdeploy) UndeployProjectPathOnly ¶
Click to show internal directories.
Click to hide internal directories.