Documentation ¶
Index ¶
- func NewCleanCommand(action ActionInterface) *cobra.Command
- func NewConnectCommand(action ActionInterface, ch chan os.Signal) *cobra.Command
- func NewExchangeCommand(action ActionInterface, ch chan os.Signal) *cobra.Command
- func NewMeshCommand(action ActionInterface, ch chan os.Signal) *cobra.Command
- func NewPreviewCommand(action ActionInterface, ch chan os.Signal) *cobra.Command
- func NewRecoverCommand(action ActionInterface) *cobra.Command
- type Action
- func (action *Action) Clean() error
- func (action *Action) Connect(ch chan os.Signal) error
- func (action *Action) Exchange(resourceName string, ch chan os.Signal) error
- func (action *Action) Mesh(resourceName string, ch chan os.Signal) error
- func (action *Action) Preview(serviceName string, ch chan os.Signal) error
- func (action *Action) Recover(serviceName string) error
- type ActionInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCleanCommand ¶ added in v0.2.3
func NewCleanCommand(action ActionInterface) *cobra.Command
NewCleanCommand return new connect command
func NewConnectCommand ¶ added in v0.2.3
func NewConnectCommand(action ActionInterface, ch chan os.Signal) *cobra.Command
NewConnectCommand return new connect command
func NewExchangeCommand ¶ added in v0.2.3
func NewExchangeCommand(action ActionInterface, ch chan os.Signal) *cobra.Command
NewExchangeCommand return new exchange command
func NewMeshCommand ¶ added in v0.2.3
func NewMeshCommand(action ActionInterface, ch chan os.Signal) *cobra.Command
NewMeshCommand return new mesh command
func NewPreviewCommand ¶ added in v0.3.0
func NewPreviewCommand(action ActionInterface, ch chan os.Signal) *cobra.Command
NewPreviewCommand return new preview command
func NewRecoverCommand ¶ added in v0.3.2
func NewRecoverCommand(action ActionInterface) *cobra.Command
NewRecoverCommand return new recover command
Types ¶
type Action ¶
type Action struct{}
Action cmd action
type ActionInterface ¶
type ActionInterface interface { Connect(ch chan os.Signal) error Preview(serviceName string, ch chan os.Signal) error Exchange(resourceName string, ch chan os.Signal) error Mesh(resourceName string, ch chan os.Signal) error Recover(serviceName string) error Clean() error }
ActionInterface all action defined
Source Files ¶
Click to show internal directories.
Click to hide internal directories.