Documentation ¶
Index ¶
- Constants
- Variables
- func ClientConnectServer(rpcHost string, rpcPort string) (connection *grpc.ClientConn, client pb.P4WNP1Client, ctx context.Context, ...)
- func ClientCreateTempDir(host string, port string, dir string, prefix string) (resultPath string, err error)
- func ClientCreateTempFile(host string, port string, dir string, prefix string) (resultPath string, err error)
- func ClientDBBackup(timeout time.Duration, host string, port string, name string) (err error)
- func ClientDBList(timeout time.Duration, host string, port string) (names []string, err error)
- func ClientDBRestore(timeout time.Duration, host string, port string, name string) (err error)
- func ClientDeployEthernetInterfaceSettings(host string, port string, settings *pb.EthernetInterfaceSettings) (err error)
- func ClientDeployGadgetSettings(host string, port string, newGs *pb.GadgetSettings) (gs *pb.GadgetSettings, err error)
- func ClientDeployTemplateType(timeout time.Duration, host string, port string, ...) (err error)
- func ClientDeployWifiSettings(host string, port string, settings *pb.WiFiSettings) (state *pb.WiFiState, err error)
- func ClientGetDeployedGadgetSettings(host string, port string) (gs *pb.GadgetSettings, err error)
- func ClientGetLED(host string, port string) (ls *pb.LEDSettings, err error)
- func ClientHIDCancelScriptJob(host string, port string, jobID uint32) (err error)
- func ClientHIDGetScriptJobResult(host string, port string, jobID uint32) (scriptRes *pb.HIDScriptResult, err error)
- func ClientHIDRunScript(host string, port string, ctx context.Context, scriptPath string, ...) (scriptRes *pb.HIDScriptResult, err error)
- func ClientHIDRunScriptJob(host string, port string, scriptPath string, timeoutSeconds uint32) (scriptJob *pb.HIDScriptJob, err error)
- func ClientListTemplateType(timeout time.Duration, host string, port string, ...) (res []string, err error)
- func ClientMountUMSImage(host string, port string, file string, cdrom bool) (err error)
- func ClientReboot(host string, port string, timeout time.Duration) (err error)
- func ClientRegisterEvent(host string, port string, evtType int64) (err error)
- func ClientSetLED(host string, port string, ls pb.LEDSettings) (err error)
- func ClientShutdown(host string, port string, timeout time.Duration) (err error)
- func ClientTriggerGroupSend(host string, port string, groupname string, value int32) (err error)
- func ClientTriggerGroupWait(host string, port string, groupname string, value int32) (err error)
- func ClientUploadFile(host string, port string, src io.Reader, folder pb.AccessibleFolder, ...) (err error)
- func Execute()
- func GenBashComplete()
- func PrintGadgetSettings(gs *pb.GadgetSettings, useJson bool)
- func TriggerCheckFlags(cmd *cobra.Command)
Constants ¶
Variables ¶
View Source
var ( StrRemoteHost string StrRemotePort string BoolJson bool )
Functions ¶
func ClientConnectServer ¶
func ClientConnectServer(rpcHost string, rpcPort string) ( connection *grpc.ClientConn, client pb.P4WNP1Client, ctx context.Context, cancel context.CancelFunc, err error)
func ClientCreateTempDir ¶
func ClientCreateTempFile ¶
func ClientDBBackup ¶
func ClientDBList ¶
func ClientDBRestore ¶
func ClientDeployEthernetInterfaceSettings ¶
func ClientDeployEthernetInterfaceSettings(host string, port string, settings *pb.EthernetInterfaceSettings) (err error)
func ClientDeployGadgetSettings ¶
func ClientDeployGadgetSettings(host string, port string, newGs *pb.GadgetSettings) (gs *pb.GadgetSettings, err error)
func ClientGetDeployedGadgetSettings ¶
func ClientGetDeployedGadgetSettings(host string, port string) (gs *pb.GadgetSettings, err error)
func ClientGetLED ¶
func ClientGetLED(host string, port string) (ls *pb.LEDSettings, err error)
func ClientHIDRunScript ¶
func ClientHIDRunScriptJob ¶
func ClientListTemplateType ¶
func ClientMountUMSImage ¶
func ClientRegisterEvent ¶
func ClientSetLED ¶
func ClientSetLED(host string, port string, ls pb.LEDSettings) (err error)
func ClientShutdown ¶
func ClientTriggerGroupSend ¶
func ClientTriggerGroupWait ¶
func ClientUploadFile ¶
func GenBashComplete ¶
func GenBashComplete()
func PrintGadgetSettings ¶
func PrintGadgetSettings(gs *pb.GadgetSettings, useJson bool)
func TriggerCheckFlags ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.