deployments

package
v3.2.0-M4 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2019 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ClientConfig config.Client

ClientConfig is the Yorc client configuration resolved by cobra/viper

View Source
var DepViper = viper.New()

DepViper is the viper configuration for the deployments command and its children

View Source
var DeploymentsCmd = &cobra.Command{
	Use:           "deployments",
	Aliases:       []string{"depls", "depl", "deps", "dep", "d"},
	Short:         "Perform commands on deployments",
	Long:          `Perform different commands on deployments`,
	SilenceErrors: true,
	PersistentPreRun: func(cmd *cobra.Command, args []string) {
		ClientConfig = commands.GetYorcClientConfig(DepViper, cfgFile)
	},
	Run: func(cmd *cobra.Command, args []string) {
		err := cmd.Help()
		if err != nil {
			fmt.Print(err)
		}
	},
}

DeploymentsCmd is the deployments-based command

View Source
var NoColor bool

NoColor returns true if no-color option is set

Functions

func DisplayInfo

func DisplayInfo(client *httputil.YorcClient, deploymentID string, detailed, follow bool, refreshTime time.Duration) error

DisplayInfo displays deployment info

func GetColoredTaskStatus

func GetColoredTaskStatus(colorize bool, status string) string

GetColoredTaskStatus allows to color status on CLI

func StreamsEvents

func StreamsEvents(client *httputil.YorcClient, deploymentID string, colorize, fromBeginning, stop bool)

StreamsEvents allows to stream events

func StreamsLogs

func StreamsLogs(client *httputil.YorcClient, deploymentID string, colorize, fromBeginning, stop bool)

StreamsLogs allows to stream logs

func SubmitCSAR

func SubmitCSAR(csarZip []byte, client *httputil.YorcClient, deploymentID string) (string, error)

SubmitCSAR submits the deployment of an archive

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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