locations

package
v4.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2021 License: Apache-2.0 Imports: 18 Imported by: 0

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.

Jump to

Keyboard shortcuts

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