Documentation ¶
Index ¶
- Variables
- func DisplayInfo(client *httputil.YorcClient, deploymentID string, detailed, follow bool, ...) error
- func GetColoredTaskStatus(colorize bool, status string) string
- func StreamsEvents(client *httputil.YorcClient, deploymentID string, ...)
- func StreamsLogs(client *httputil.YorcClient, deploymentID string, ...)
- func SubmitCSAR(csarZip []byte, client *httputil.YorcClient, deploymentID string) (string, error)
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 ¶
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 ¶
SubmitCSAR submits the deployment of an archive
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.