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 ¶
ClientConfig is the Yorc client configuration resolved by cobra/viper
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
Types ¶
This section is empty.
Source Files
¶
- dep_custom.go
- dep_deploy.go
- dep_events.go
- dep_info.go
- dep_list.go
- dep_logs.go
- dep_scale.go
- dep_undeploy.go
- deployments.go
Click to show internal directories.
Click to hide internal directories.