Documentation ¶
Index ¶
Constants ¶
View Source
const APPJSON = "application/json"
APPJSON defines the Accept header value for requests
View Source
const LOCPATH = "/locations/"
LOCPATH defines the base path for locations requests
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 locations command and its children
View Source
var LocationsCmd = &cobra.Command{ Use: "locations", Aliases: []string{"locs", "loc", "l"}, Short: "Perform commands on locations", Long: `Perform different commands on locations`, SilenceErrors: true, PersistentPreRun: func(cmd *cobra.Command, args []string) { config.DefaultConfigTemplateResolver.Disable() ClientConfig = commands.GetYorcClientConfig(DepViper, cfgFile) }, Run: func(cmd *cobra.Command, args []string) { err := cmd.Help() if err != nil { fmt.Print(err) } }, }
LocationsCmd is the locations-based command
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.