Documentation
¶
Index ¶
- func Commands(con *repl.Console) []*cobra.Command
- func Register(con *repl.Console)
- func RegisterServiceCreateFunc(con *repl.Console)
- func RegisterServiceDeleteFunc(con *repl.Console)
- func RegisterServiceListFunc(con *repl.Console)
- func RegisterServiceQueryFunc(con *repl.Console)
- func RegisterServiceStartFunc(con *repl.Console)
- func RegisterServiceStopFunc(con *repl.Console)
- func ServiceCreate(rpc clientrpc.MaliceRPCClient, session *core.Session, ...) (*clientpb.Task, error)
- func ServiceCreateCmd(cmd *cobra.Command, con *repl.Console) error
- func ServiceDelete(rpc clientrpc.MaliceRPCClient, session *core.Session, name string) (*clientpb.Task, error)
- func ServiceDeleteCmd(cmd *cobra.Command, con *repl.Console) error
- func ServiceList(rpc clientrpc.MaliceRPCClient, session *core.Session) (*clientpb.Task, error)
- func ServiceListCmd(cmd *cobra.Command, con *repl.Console) error
- func ServiceQuery(rpc clientrpc.MaliceRPCClient, session *core.Session, name string) (*clientpb.Task, error)
- func ServiceQueryCmd(cmd *cobra.Command, con *repl.Console) error
- func ServiceStart(rpc clientrpc.MaliceRPCClient, session *core.Session, name string) (*clientpb.Task, error)
- func ServiceStartCmd(cmd *cobra.Command, con *repl.Console) error
- func ServiceStop(rpc clientrpc.MaliceRPCClient, session *core.Session, name string) (*clientpb.Task, error)
- func ServiceStopCmd(cmd *cobra.Command, con *repl.Console) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterServiceCreateFunc ¶
RegisterServiceCreateFunc 注册 ServiceCreateCmd 到 Console
func RegisterServiceListFunc ¶
func RegisterServiceStartFunc ¶
RegisterServiceStartFunc 注册 ServiceStartCmd 到 Console
func RegisterServiceStopFunc ¶
func ServiceCreate ¶
func ServiceCreateCmd ¶
ServiceCreateCmd creates a new service with the specified configuration.
func ServiceDelete ¶
func ServiceDeleteCmd ¶
ServiceDeleteCmd deletes a specified service by name.
func ServiceList ¶
func ServiceQuery ¶
func ServiceQueryCmd ¶
ServiceQueryCmd queries the status of an existing service by its name.
func ServiceStart ¶
func ServiceStart(rpc clientrpc.MaliceRPCClient, session *core.Session, name string) (*clientpb.Task, error)
ServiceStart 通过 gRPC 调用启动服务
func ServiceStartCmd ¶
ServiceStartCmd starts an existing service by its name.
func ServiceStop ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.