cmd

package
v0.0.0-...-5801c3e Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2019 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CommandBuffer map[wire.CommandType]CommandFunc

CommandBuffer contain the mapping of different command type to their mapping (func)

Functions

func FmAction

func FmAction(rawdata []byte, out chan []byte, ctx context.Context)

func GetSystemInfo

func GetSystemInfo() []byte

func ListDirectory

func ListDirectory(rawdata []byte, out chan []byte, ctx context.Context)

func ProcessAction

func ProcessAction(rawdata []byte, out chan []byte, ctx context.Context)

func RunScript

func RunScript(rawdata []byte, out chan []byte, ctx context.Context)

func SysAction

func SysAction(rawdata []byte, out chan []byte, ctx context.Context)

func SystemStatus

func SystemStatus(rawdata []byte, out chan []byte, ctx context.Context)

SystemStatus gives system status of machine

func Taskmanager

func Taskmanager(rawdata []byte, out chan []byte, ctx context.Context)

func Terminal

func Terminal(rawdata []byte, out chan []byte, ctx context.Context)

Terminal implements the command func signature and all terminal related logic starts from here

Types

type CommandFunc

type CommandFunc func(rawdata []byte, out chan []byte, ctx context.Context)

CommandFunc is a common signature for different command type they take different string input and gives string output

Jump to

Keyboard shortcuts

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