Documentation
¶
Index ¶
- type ChainPlugins
- func (cp *ChainPlugins) Append(p *GrpcPlugin) error
- func (cp *ChainPlugins) CreateChallengeContext(conn ssh.ConnMetadata) (ssh.ChallengeContext, error)
- func (cp *ChainPlugins) InstallPiperConfig(config *ssh.PiperConfig) error
- func (cp *ChainPlugins) NextAuthMethods(conn ssh.ConnMetadata, challengeCtx ssh.ChallengeContext) ([]string, error)
- type CmdPlugin
- type GrpcPlugin
- func (g *GrpcPlugin) BannerCallback(conn ssh.ConnMetadata, challengeCtx ssh.ChallengeContext) string
- func (g *GrpcPlugin) CreateChallengeContext(conn ssh.ConnMetadata) (ssh.ChallengeContext, error)
- func (g *GrpcPlugin) CreatePiperConfig() (*ssh.PiperConfig, error)
- func (g *GrpcPlugin) InstallPiperConfig(config *ssh.PiperConfig) error
- func (g *GrpcPlugin) KeyboardInteractiveCallback(conn ssh.ConnMetadata, client ssh.KeyboardInteractiveChallenge, ...) (*ssh.Upstream, error)
- func (g *GrpcPlugin) NewConnection(meta *connMeta) error
- func (g *GrpcPlugin) NextAuthMethodsLocal(conn ssh.ConnMetadata, challengeCtx ssh.ChallengeContext) ([]string, error)
- func (g *GrpcPlugin) NextAuthMethodsRemote(conn ssh.ConnMetadata, challengeCtx ssh.ChallengeContext) ([]string, error)
- func (g *GrpcPlugin) NoneAuthCallback(conn ssh.ConnMetadata, challengeCtx ssh.ChallengeContext) (*ssh.Upstream, error)
- func (g *GrpcPlugin) PasswordCallback(conn ssh.ConnMetadata, password []byte, challengeCtx ssh.ChallengeContext) (*ssh.Upstream, error)
- func (g *GrpcPlugin) PublicKeyCallback(conn ssh.ConnMetadata, key ssh.PublicKey, challengeCtx ssh.ChallengeContext) (*ssh.Upstream, error)
- func (g *GrpcPlugin) RecvLogs(writer io.Writer) error
- func (g *GrpcPlugin) UpstreamAuthFailureCallbackLocal(onn ssh.ConnMetadata, method string, err error, ...)
- func (g *GrpcPlugin) UpstreamAuthFailureCallbackRemote(conn ssh.ConnMetadata, method string, err error, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChainPlugins ¶
type ChainPlugins struct {
// contains filtered or unexported fields
}
func (*ChainPlugins) Append ¶
func (cp *ChainPlugins) Append(p *GrpcPlugin) error
func (*ChainPlugins) CreateChallengeContext ¶
func (cp *ChainPlugins) CreateChallengeContext(conn ssh.ConnMetadata) (ssh.ChallengeContext, error)
func (*ChainPlugins) InstallPiperConfig ¶
func (cp *ChainPlugins) InstallPiperConfig(config *ssh.PiperConfig) error
func (*ChainPlugins) NextAuthMethods ¶
func (cp *ChainPlugins) NextAuthMethods(conn ssh.ConnMetadata, challengeCtx ssh.ChallengeContext) ([]string, error)
type CmdPlugin ¶
type CmdPlugin struct {
GrpcPlugin
}
type GrpcPlugin ¶
type GrpcPlugin struct {
Name string
OnNextPlugin func(conn ssh.ChallengeContext, upstream *libplugin.UpstreamNextPluginAuth) error
// contains filtered or unexported fields
}
func DialGrpc ¶
func DialGrpc(conn *grpc.ClientConn) (*GrpcPlugin, error)
func (*GrpcPlugin) BannerCallback ¶
func (g *GrpcPlugin) BannerCallback(conn ssh.ConnMetadata, challengeCtx ssh.ChallengeContext) string
func (*GrpcPlugin) CreateChallengeContext ¶
func (g *GrpcPlugin) CreateChallengeContext(conn ssh.ConnMetadata) (ssh.ChallengeContext, error)
func (*GrpcPlugin) CreatePiperConfig ¶
func (g *GrpcPlugin) CreatePiperConfig() (*ssh.PiperConfig, error)
func (*GrpcPlugin) InstallPiperConfig ¶
func (g *GrpcPlugin) InstallPiperConfig(config *ssh.PiperConfig) error
func (*GrpcPlugin) KeyboardInteractiveCallback ¶
func (g *GrpcPlugin) KeyboardInteractiveCallback(conn ssh.ConnMetadata, client ssh.KeyboardInteractiveChallenge, challengeCtx ssh.ChallengeContext) (*ssh.Upstream, error)
func (*GrpcPlugin) NewConnection ¶
func (g *GrpcPlugin) NewConnection(meta *connMeta) error
func (*GrpcPlugin) NextAuthMethodsLocal ¶
func (g *GrpcPlugin) NextAuthMethodsLocal(conn ssh.ConnMetadata, challengeCtx ssh.ChallengeContext) ([]string, error)
func (*GrpcPlugin) NextAuthMethodsRemote ¶
func (g *GrpcPlugin) NextAuthMethodsRemote(conn ssh.ConnMetadata, challengeCtx ssh.ChallengeContext) ([]string, error)
func (*GrpcPlugin) NoneAuthCallback ¶
func (g *GrpcPlugin) NoneAuthCallback(conn ssh.ConnMetadata, challengeCtx ssh.ChallengeContext) (*ssh.Upstream, error)
func (*GrpcPlugin) PasswordCallback ¶
func (g *GrpcPlugin) PasswordCallback(conn ssh.ConnMetadata, password []byte, challengeCtx ssh.ChallengeContext) (*ssh.Upstream, error)
func (*GrpcPlugin) PublicKeyCallback ¶
func (g *GrpcPlugin) PublicKeyCallback(conn ssh.ConnMetadata, key ssh.PublicKey, challengeCtx ssh.ChallengeContext) (*ssh.Upstream, error)
func (*GrpcPlugin) UpstreamAuthFailureCallbackLocal ¶
func (g *GrpcPlugin) UpstreamAuthFailureCallbackLocal(onn ssh.ConnMetadata, method string, err error, challengeCtx ssh.ChallengeContext)
func (*GrpcPlugin) UpstreamAuthFailureCallbackRemote ¶
func (g *GrpcPlugin) UpstreamAuthFailureCallbackRemote(conn ssh.ConnMetadata, method string, err error, challengeCtx ssh.ChallengeContext)
Click to show internal directories.
Click to hide internal directories.