deployments

package
v3.1.0-M6+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2018 License: Apache-2.0 Imports: 25 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 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

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