Documentation
¶
Index ¶
- func CommandExamples() string
- func CommandLong() string
- func Exec(c *client.Client, id string, command []string) error
- func FetchLogs(ctx *run.CLIContext, api client.EdgeletAPI, id string, opts logs.Options) error
- func KillCommandLong() string
- func ParseExecArgs(args []string) (id string, command []string, err error)
- func ParseExecCommand(args []string) ([]string, error)
- func RemoveCommandLong() string
- func StreamLogs(ctx *run.CLIContext, c *client.Client, id string, opts logs.Options) error
- type LifecycleResult
- func Kill(client run.EdgeletAPIClient, id string) (*LifecycleResult, error)
- func Remove(client run.EdgeletAPIClient, id string, cleanup bool) (*LifecycleResult, error)
- func Restart(client run.EdgeletAPIClient, id string) (*LifecycleResult, error)
- func Start(client run.EdgeletAPIClient, id string) (*LifecycleResult, error)
- func Stop(client run.EdgeletAPIClient, id string) (*LifecycleResult, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommandExamples ¶
func CommandExamples() string
CommandExamples returns ms command examples for Cobra.
func FetchLogs ¶
func FetchLogs(ctx *run.CLIContext, api client.EdgeletAPI, id string, opts logs.Options) error
FetchLogs retrieves buffered microservice logs.
func ParseExecArgs ¶
ParseExecArgs validates ms exec positional args.
func ParseExecCommand ¶
ParseExecCommand extracts the remote command from ms exec args after the id. When Cobra parses "exec <id> -- cmd...", it strips "--" before RunE, so any remaining positional tokens are treated as the command.
func StreamLogs ¶
StreamLogs follows microservice logs over WebSocket.
Types ¶
type LifecycleResult ¶
LifecycleResult carries a microservice lifecycle operation outcome.
func Kill ¶
func Kill(client run.EdgeletAPIClient, id string) (*LifecycleResult, error)
Kill kills a microservice.
func Remove ¶
func Remove(client run.EdgeletAPIClient, id string, cleanup bool) (*LifecycleResult, error)
Remove deletes a microservice. Persistent VOLUME data is retained.
func Restart ¶
func Restart(client run.EdgeletAPIClient, id string) (*LifecycleResult, error)
Restart restarts a microservice.
func Start ¶
func Start(client run.EdgeletAPIClient, id string) (*LifecycleResult, error)
Start starts a microservice.
func Stop ¶
func Stop(client run.EdgeletAPIClient, id string) (*LifecycleResult, error)
Stop stops a microservice.