sledctl

package
v0.8.4 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseCmdLine

func ParseCmdLine(mac, command string) (*sled.CommandSet, error)

ParseCmdLine make unit testing easier.

func ParseJSONCommand

func ParseJSONCommand(fiName string) (map[string]*sled.CommandSet, error)

ParseJSONCommand parses a json file, extracting (mac, sled.CommandSet).

func ParseYamlCommand

func ParseYamlCommand(fiName string) (map[string]*sled.CommandSet, error)

ParseYamlCommand parses a yaml file, extracting (mac, sled.CommandSet).

Types

type JStruct

type JStruct struct {
	Mac     string
	Command *sled.CommandSet
}

JStruct is a json data structure to make output cleaner.

Jump to

Keyboard shortcuts

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