ssh

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2021 License: MIT Imports: 8 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBaseConfig added in v1.0.0

func GetBaseConfig(c framework.Container) *contract.SSHConfig

GetBaseConfig 读取database.yaml根目录结构

func NewHadeSSH

func NewHadeSSH(params ...interface{}) (interface{}, error)

NewHadeSSH 代表实例化Client

func WithConfigPath added in v1.0.0

func WithConfigPath(configPath string) contract.SSHOption

WithConfigPath 加载配置文件地址

func WithSSHConfig added in v1.0.0

func WithSSHConfig(f func(options *contract.SSHConfig)) contract.SSHOption

WithSSHConfig 表示自行配置redis的配置信息

Types

type HadeSSH

type HadeSSH struct {
	// contains filtered or unexported fields
}

HadeSSH 代表hade框架的ssh实现

func (*HadeSSH) GetClient added in v1.0.0

func (app *HadeSSH) GetClient(option ...contract.SSHOption) (*ssh.Client, error)

GetClient 获取Client实例

type SSHProvider added in v1.0.0

type SSHProvider struct {
}

SSHProvider 提供App的具体实现方法

func (*SSHProvider) Boot added in v1.0.0

func (h *SSHProvider) Boot(container framework.Container) error

Boot 启动调用

func (*SSHProvider) IsDefer added in v1.0.0

func (h *SSHProvider) IsDefer() bool

IsDefer 是否延迟初始化

func (*SSHProvider) Name added in v1.0.0

func (h *SSHProvider) Name() string

Name 获取字符串凭证

func (*SSHProvider) Params added in v1.0.0

func (h *SSHProvider) Params(container framework.Container) []interface{}

Params 获取初始化参数

func (*SSHProvider) Register added in v1.0.0

func (h *SSHProvider) Register(container framework.Container) framework.NewInstance

Register 注册方法

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL