ssh

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBaseConfig

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

func NewGocoreSSH

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

NewGocoreSSH 代表实例化Client

func WithConfigPath

func WithConfigPath(configPath string) contract.SSHOption

func WithSSHConfig

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

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

Types

type GocoreSSH

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

func (*GocoreSSH) GetClient

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

GetClient 获取Client实例

type GocoreSSHProvider

type GocoreSSHProvider struct {
}

GocoreSSHProvider 提供具体实现方法

func (*GocoreSSHProvider) Boot

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

Boot 启动调用

func (*GocoreSSHProvider) IsDefer

func (h *GocoreSSHProvider) IsDefer() bool

IsDefer 是否延迟初始化

func (*GocoreSSHProvider) Name

func (h *GocoreSSHProvider) Name() string

Name 获取字符串凭证

func (*GocoreSSHProvider) Params

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

Params 获取初始化参数

func (*GocoreSSHProvider) Register

Register 注册方法

Jump to

Keyboard shortcuts

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