Documentation ¶
Index ¶
- func GetBaseConfig(c framework.Container) *contract.SSHConfig
- func NewGocoreSSH(params ...interface{}) (interface{}, error)
- func WithConfigPath(configPath string) contract.SSHOption
- func WithSSHConfig(f func(options *contract.SSHConfig)) contract.SSHOption
- type GocoreSSH
- type GocoreSSHProvider
- func (h *GocoreSSHProvider) Boot(container framework.Container) error
- func (h *GocoreSSHProvider) IsDefer() bool
- func (h *GocoreSSHProvider) Name() string
- func (h *GocoreSSHProvider) Params(container framework.Container) []interface{}
- func (h *GocoreSSHProvider) Register(container framework.Container) framework.NewInstance
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGocoreSSH ¶
func NewGocoreSSH(params ...interface{}) (interface{}, error)
NewGocoreSSH 代表实例化Client
func WithConfigPath ¶
Types ¶
type GocoreSSHProvider ¶
type GocoreSSHProvider struct { }
GocoreSSHProvider 提供具体实现方法
func (*GocoreSSHProvider) Boot ¶
func (h *GocoreSSHProvider) Boot(container framework.Container) error
Boot 启动调用
func (*GocoreSSHProvider) Params ¶
func (h *GocoreSSHProvider) Params(container framework.Container) []interface{}
Params 获取初始化参数
func (*GocoreSSHProvider) Register ¶
func (h *GocoreSSHProvider) Register(container framework.Container) framework.NewInstance
Register 注册方法
Click to show internal directories.
Click to hide internal directories.