Documentation
¶
Index ¶
- func Console(format string, input interface{}) []byte
- func Display(metadatas []api.Results, name string, flags *pflag.FlagSet)
- func ReadConfigFile(cmd *cobra.Command, configFile interface{}) (interface{}, error)
- func RenderFile(input []byte, name, format string)
- func RenderJSON(input interface{}) []byte
- func RenderVerboseOutput(metadata api.Results)
- func RenderYaml(input interface{}) []byte
- func ResolveFlags(flags *pflag.FlagSet) (orgId, networkId, deviceId string)
- func ResolveMatches(regExString string, Matches []Match) (exactMatch Match, greedyMatch []Match)
- type Match
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadConfigFile ¶
func RenderFile ¶
Takes a byte array and exports it to file
func RenderJSON ¶
func RenderJSON(input interface{}) []byte
Formats an interface into a JSON byte array
func RenderVerboseOutput ¶
func RenderYaml ¶
func RenderYaml(input interface{}) []byte
Formats an interface into a YAML byte array
func ResolveFlags ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.