Documentation
¶
Index ¶
- Constants
- func AppFlags(options *options.DaemonOptions) []cli.Flag
- func CleanupWorkspace(options *options.DaemonOptions)
- func NewCheckCommand(options *options.DaemonOptions, action ActionInterface) cli.Command
- func NewCliAuthor() []cli.Author
- func NewCommands(options *options.DaemonOptions, action ActionInterface) []cli.Command
- func SetUpCloseHandler(options *options.DaemonOptions) (ch chan os.Signal)
- func SetUpWaitingChannel() (ch chan os.Signal)
- type Action
- func (action *Action) ApplyDashboard() (err error)
- func (action *Action) Check(options *options.DaemonOptions) (err error)
- func (action *Action) Connect(options *options.DaemonOptions) (err error)
- func (action *Action) Exchange(exchange string, options *options.DaemonOptions) error
- func (action *Action) Mesh(mesh string, options *options.DaemonOptions) error
- func (action *Action) OpenDashboard(options *options.DaemonOptions) (err error)
- func (action *Action) Run(service string, options *options.DaemonOptions) error
- type ActionInterface
Constants ¶
View Source
const ComponentMesh = "mesh"
ComponentMesh mesh component
View Source
const KubernetesTool = "kt"
KubernetesTool kt sign
Variables ¶
This section is empty.
Functions ¶
func CleanupWorkspace ¶
func CleanupWorkspace(options *options.DaemonOptions)
CleanupWorkspace clean workspace
func NewCheckCommand ¶
func NewCheckCommand(options *options.DaemonOptions, action ActionInterface) cli.Command
NewCheckCommand return new check command
func NewCommands ¶
func NewCommands(options *options.DaemonOptions, action ActionInterface) []cli.Command
NewCommands return new Connect Command
func SetUpCloseHandler ¶
func SetUpCloseHandler(options *options.DaemonOptions) (ch chan os.Signal)
SetUpCloseHandler registry close handeler
func SetUpWaitingChannel ¶
SetUpWaitingChannel registry waiting channel
Types ¶
type Action ¶
type Action struct {
Options *options.DaemonOptions
}
Action cmd action
func (*Action) ApplyDashboard ¶
ApplyDashboard ...
func (*Action) Check ¶
func (action *Action) Check(options *options.DaemonOptions) (err error)
Check check local denpendency for kt connect
func (*Action) Connect ¶
func (action *Action) Connect(options *options.DaemonOptions) (err error)
Connect connect vpn to kubernetes cluster
func (*Action) Exchange ¶
func (action *Action) Exchange(exchange string, options *options.DaemonOptions) error
Exchange exchange kubernetes workload
func (*Action) Mesh ¶
func (action *Action) Mesh(mesh string, options *options.DaemonOptions) error
Mesh exchange kubernetes workload
func (*Action) OpenDashboard ¶
func (action *Action) OpenDashboard(options *options.DaemonOptions) (err error)
OpenDashboard ...
type ActionInterface ¶
type ActionInterface interface {
OpenDashboard(options *options.DaemonOptions) error
Connect(options *options.DaemonOptions) error
Check(options *options.DaemonOptions) error
Run(service string, options *options.DaemonOptions) error
Exchange(service string, options *options.DaemonOptions) error
Mesh(service string, options *options.DaemonOptions) error
ApplyDashboard() error
}
ActionInterface all action defined
Click to show internal directories.
Click to hide internal directories.