Documentation ¶
Index ¶
- Constants
- func AppFlags(options *options.DaemonOptions, version string) []cli.Flag
- func CleanupWorkspace(cli kt.CliInterface, options *options.DaemonOptions)
- func ConnectActionFlag(options *options.DaemonOptions) []cli.Flag
- func NewCheckCommand(cli kt.CliInterface, options *options.DaemonOptions, action ActionInterface) urfave.Command
- func NewCliAuthor() []cli.Author
- func NewCommands(kt kt.CliInterface, action ActionInterface, options *options.DaemonOptions) []cli.Command
- func SetUpCloseHandler(cli kt.CliInterface, options *options.DaemonOptions, action string) (ch chan os.Signal)
- func SetUpWaitingChannel() (ch chan os.Signal)
- type Action
- func (action *Action) ApplyDashboard(cli kt.CliInterface, options *options.DaemonOptions) (err error)
- func (action *Action) Check(cli kt.CliInterface) (err error)
- func (action *Action) Connect(cli kt.CliInterface, options *options.DaemonOptions) (err error)
- func (action *Action) Exchange(exchange string, cli kt.CliInterface, options *optionspkg.DaemonOptions) error
- func (action *Action) Mesh(mesh string, cli kt.CliInterface, options *options.DaemonOptions) error
- func (action *Action) OpenDashboard(ktCli kt.CliInterface, options *options.DaemonOptions) (err error)
- func (action *Action) Run(service string, cli kt.CliInterface, 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 AppFlags ¶
func AppFlags(options *options.DaemonOptions, version string) []cli.Flag
AppFlags return app flags
func CleanupWorkspace ¶
func CleanupWorkspace(cli kt.CliInterface, options *options.DaemonOptions)
CleanupWorkspace clean workspace
func ConnectActionFlag ¶
func ConnectActionFlag(options *options.DaemonOptions) []cli.Flag
ConnectActionFlag ...
func NewCheckCommand ¶
func NewCheckCommand(cli kt.CliInterface, options *options.DaemonOptions, action ActionInterface) urfave.Command
NewCheckCommand return new check command
func NewCommands ¶
func NewCommands(kt kt.CliInterface, action ActionInterface, options *options.DaemonOptions) []cli.Command
NewCommands return new Connect Action
func SetUpCloseHandler ¶
func SetUpCloseHandler(cli kt.CliInterface, options *options.DaemonOptions, action string) (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 ¶
func (action *Action) ApplyDashboard(cli kt.CliInterface, options *options.DaemonOptions) (err error)
ApplyDashboard ...
func (*Action) Check ¶
func (action *Action) Check(cli kt.CliInterface) (err error)
Check check local denpendency for kt connect
func (*Action) Connect ¶
func (action *Action) Connect(cli kt.CliInterface, options *options.DaemonOptions) (err error)
Connect connect vpn to kubernetes cluster
func (*Action) Exchange ¶
func (action *Action) Exchange(exchange string, cli kt.CliInterface, options *optionspkg.DaemonOptions) error
Exchange exchange kubernetes workload
func (*Action) Mesh ¶
func (action *Action) Mesh(mesh string, cli kt.CliInterface, options *options.DaemonOptions) error
Mesh exchange kubernetes workload
func (*Action) OpenDashboard ¶
func (action *Action) OpenDashboard(ktCli kt.CliInterface, options *options.DaemonOptions) (err error)
OpenDashboard ...
func (*Action) Run ¶
func (action *Action) Run(service string, cli kt.CliInterface, options *options.DaemonOptions) error
Run create a new service in cluster
type ActionInterface ¶
type ActionInterface interface { OpenDashboard(cli kt.CliInterface, options *options.DaemonOptions) error Connect(cli kt.CliInterface, options *options.DaemonOptions) error Check(cli kt.CliInterface) error Run(service string, cli kt.CliInterface, options *options.DaemonOptions) error Exchange(service string, cli kt.CliInterface, options *options.DaemonOptions) error Mesh(service string, cli kt.CliInterface, options *options.DaemonOptions) error ApplyDashboard(cli kt.CliInterface, options *options.DaemonOptions) error }
ActionInterface all action defined
Click to show internal directories.
Click to hide internal directories.