hooks

package
v5.10.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2019 License: MIT, MIT, MIT, + 1 more Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ConfigurationRequirement used to identify the annotation flag for this handler
	//
	// Usage:
	//
	//	my_cmd := cobra.Command{
	//		Use: "Setup",
	//		Annotations: map[string]string{
	//			ConfigurationRequirement: ConfigurationNotRequired,
	//		}
	//	}
	ConfigurationRequirement = "CREDENTIALS_REQUIREMENT"

	// ConfigurationNotRequired specifies that the command does not require
	// credentials to be configured to complete operations
	ConfigurationNotRequired = "NO"
)

Variables

This section is empty.

Functions

func ConfigurationPresent

func ConfigurationPresent(cmd *cobra.Command, cli *cli.SensuCli) error

ConfigurationPresent - unless the given command specifies that configuration is not required, func checks that host & access-token have been configured.

Types

This section is empty.

Jump to

Keyboard shortcuts

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