cmd

package
v0.0.0-...-8073d5e Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2019 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DiverBuild string

DiverBuild is the current GIT commit

View Source
var DiverRO bool

DiverRO Sets Diver to READ ONLY (all SET/CREATE commands are disabled)

View Source
var DiverVersion string

DiverVersion is the release TAG

View Source
var UCPRoot = &cobra.Command{
	Use:   "ucp",
	Short: "Universal Control Plane ",
	Run: func(cmd *cobra.Command, args []string) {

		existingClient, err := ucp.ReadToken()
		if err != nil {

			cmd.Help()
			log.Errorf("%v", err)
			return
		}
		currentAccount, err := existingClient.AuthStatus()
		if err != nil {
			cmd.Help()
			log.Warn("Session has expired, please login")
			return
		}
		cmd.Help()
		fmt.Printf("\n\n")
		log.Infof("Current user [%s]", currentAccount.Name)
		return
	},
}

UCPRoot - This is the root of all UCP commands / flags

Functions

func Execute

func Execute()

Execute - starts the command parsing process

Types

This section is empty.

Jump to

Keyboard shortcuts

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