shell

package
v0.0.0-...-bf5133e Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Console

func Console(format string, input interface{}) []byte

Determines what format to display to console

func Display

func Display(metadatas []api.Results, name string, flags *pflag.FlagSet)

Prints to screen

func ReadConfigFile

func ReadConfigFile(cmd *cobra.Command, configFile interface{}) (interface{}, error)

func RenderFile

func RenderFile(input []byte, name, format string)

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 RenderVerboseOutput(metadata api.Results)

func RenderYaml

func RenderYaml(input interface{}) []byte

Formats an interface into a YAML byte array

func ResolveFlags

func ResolveFlags(flags *pflag.FlagSet) (orgId, networkId, deviceId string)

func ResolveMatches

func ResolveMatches(regExString string, Matches []Match) (exactMatch Match, greedyMatch []Match)

Resolve Meraki Dashboard Organization name to id

Types

type Match

type Match struct {
	Name         string `json:"name"`
	ID           string `json:"id"`
	Organization string `json:"organizationId"`
	Network      string `json:"networkId"`
	Serial       string `json:"serial"`
}

Jump to

Keyboard shortcuts

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