skel

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func VerifyHostKeyFromKnownHosts

func VerifyHostKeyFromKnownHosts(knownhostsData io.Reader, hostname, netaddr string, key []byte) error

Types

type SkelPipe

type SkelPipe interface {
	From() []SkelPipeFrom
}

type SkelPipeFrom

type SkelPipeFrom interface {
	MatchConn(conn libplugin.ConnMetadata) (SkelPipeTo, error)
}

type SkelPipeFromPassword

type SkelPipeFromPassword interface {
	SkelPipeFrom

	TestPassword(conn libplugin.ConnMetadata, password []byte) (bool, error)
}

type SkelPipeFromPublicKey

type SkelPipeFromPublicKey interface {
	SkelPipeFrom

	AuthorizedKeys(conn libplugin.ConnMetadata) ([]byte, error)
	TrustedUserCAKeys(conn libplugin.ConnMetadata) ([]byte, error)
}

type SkelPipeTo

type SkelPipeTo interface {
	Host(conn libplugin.ConnMetadata) string
	User(conn libplugin.ConnMetadata) string
	IgnoreHostKey(conn libplugin.ConnMetadata) bool
	KnownHosts(conn libplugin.ConnMetadata) ([]byte, error)
}

type SkelPipeToPassword

type SkelPipeToPassword interface {
	SkelPipeTo

	OverridePassword(conn libplugin.ConnMetadata) ([]byte, error)
}

type SkelPipeToPrivateKey

type SkelPipeToPrivateKey interface {
	SkelPipeTo

	PrivateKey(conn libplugin.ConnMetadata) ([]byte, []byte, error)
}

type SkelPlugin

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

func NewSkelPlugin

func NewSkelPlugin(listPipe func(libplugin.ConnMetadata) ([]SkelPipe, error)) *SkelPlugin

func (*SkelPlugin) CreateConfig

func (p *SkelPlugin) CreateConfig() *libplugin.SshPiperPluginConfig

func (*SkelPlugin) PasswordCallback

func (p *SkelPlugin) PasswordCallback(conn libplugin.ConnMetadata, password []byte) (*libplugin.Upstream, error)

func (*SkelPlugin) PublicKeyCallback

func (p *SkelPlugin) PublicKeyCallback(conn libplugin.ConnMetadata, publicKey []byte) (*libplugin.Upstream, error)

func (*SkelPlugin) SupportedMethods

func (p *SkelPlugin) SupportedMethods(conn libplugin.ConnMetadata) ([]string, error)

func (*SkelPlugin) VerifyHostKeyCallback

func (p *SkelPlugin) VerifyHostKeyCallback(conn libplugin.ConnMetadata, hostname, netaddr string, key []byte) error

Jump to

Keyboard shortcuts

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