pipe

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Commands

func Commands(con *core.Console) []*cobra.Command

Commands initializes and returns all pipe-related commands.

func PipeClose

func PipeClose(rpc clientrpc.MaliceRPCClient, session *client.Session, name string) (*clientpb.Task, error)

func PipeCloseCmd

func PipeCloseCmd(cmd *cobra.Command, con *core.Console) error

PipeCloseCmd closes a named pipe.

func PipeRead

func PipeRead(rpc clientrpc.MaliceRPCClient, session *client.Session, name string) (*clientpb.Task, error)

func PipeReadCmd

func PipeReadCmd(cmd *cobra.Command, con *core.Console) error

PipeReadCmd reads data from a named pipe.

func PipeServer added in v0.3.0

func PipeServer(rpc clientrpc.MaliceRPCClient, session *client.Session, action string, pipeName string) (*clientpb.Task, error)

func PipeServerCmd added in v0.3.0

func PipeServerCmd(cmd *cobra.Command, con *core.Console) error

PipeServerCmd manages pipe server operations (start, stop, list).

func PipeUpload

func PipeUpload(rpc clientrpc.MaliceRPCClient, session *client.Session, pipe string, path string) (*clientpb.Task, error)

func PipeUploadCmd

func PipeUploadCmd(cmd *cobra.Command, con *core.Console) error

PipeUploadCmd uploads a file's content to a named pipe.

func PipeUploadRaw added in v0.1.0

func PipeUploadRaw(rpc clientrpc.MaliceRPCClient, session *client.Session, pipe, data string) (*clientpb.Task, error)

func Register

func Register(con *core.Console)

Register registers all pipe-related commands.

func RegisterPipeCloseFunc

func RegisterPipeCloseFunc(con *core.Console)

func RegisterPipeReadFunc

func RegisterPipeReadFunc(con *core.Console)

func RegisterPipeServerFunc added in v0.3.0

func RegisterPipeServerFunc(con *core.Console)

RegisterPipeServerFunc registers the pipe server function with the console

func RegisterPipeUploadFunc

func RegisterPipeUploadFunc(con *core.Console)

注册 PipeUpload 命令

Types

This section is empty.

Jump to

Keyboard shortcuts

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