Documentation
¶
Index ¶
- Variables
- func AuthMethodTypeToName(a AuthMethod) string
- func ConfigStdioLogrus(p SshPiperPlugin, logger *logrus.Logger)
- func CreateAndRunPluginTemplate(t *PluginTemplate)
- func DialForSSH(addr string) (net.Conn, error)
- func RegisterSshPiperPluginServer(s grpc.ServiceRegistrar, srv SshPiperPluginServer)
- func SplitHostPortForSSH(addr string) (host string, port int, err error)
- func VerifyHostKeyFromKnownHosts(knownhostsData io.Reader, hostname, netaddr string, key []byte) error
- type AuthMethod
- type BannerRequest
- type BannerResponse
- type ConnMeta
- func (*ConnMeta) Descriptor() ([]byte, []int)deprecated
- func (x *ConnMeta) GetFromAddr() string
- func (x *ConnMeta) GetUniqId() string
- func (x *ConnMeta) GetUserName() string
- func (*ConnMeta) ProtoMessage()
- func (x *ConnMeta) ProtoReflect() protoreflect.Message
- func (c *ConnMeta) RemoteAddr() string
- func (x *ConnMeta) Reset()
- func (x *ConnMeta) String() string
- func (c *ConnMeta) UniqueID() string
- func (c *ConnMeta) User() string
- type ConnMetadata
- type KeyboardInteractiveAuthMessage
- func (*KeyboardInteractiveAuthMessage) Descriptor() ([]byte, []int)deprecated
- func (x *KeyboardInteractiveAuthMessage) GetFinishRequest() *KeyboardInteractiveFinishRequest
- func (m *KeyboardInteractiveAuthMessage) GetMessage() isKeyboardInteractiveAuthMessage_Message
- func (x *KeyboardInteractiveAuthMessage) GetMetaRequest() *KeyboardInteractiveMetaRequest
- func (x *KeyboardInteractiveAuthMessage) GetMetaResponse() *KeyboardInteractiveMetaResponse
- func (x *KeyboardInteractiveAuthMessage) GetPromptRequest() *KeyboardInteractivePromptRequest
- func (x *KeyboardInteractiveAuthMessage) GetUserResponse() *KeyboardInteractiveUserResponse
- func (*KeyboardInteractiveAuthMessage) ProtoMessage()
- func (x *KeyboardInteractiveAuthMessage) ProtoReflect() protoreflect.Message
- func (x *KeyboardInteractiveAuthMessage) Reset()
- func (x *KeyboardInteractiveAuthMessage) String() string
- type KeyboardInteractiveAuthMessage_FinishRequest
- type KeyboardInteractiveAuthMessage_MetaRequest
- type KeyboardInteractiveAuthMessage_MetaResponse
- type KeyboardInteractiveAuthMessage_PromptRequest
- type KeyboardInteractiveAuthMessage_UserResponse
- type KeyboardInteractiveChallenge
- type KeyboardInteractiveFinishRequest
- func (*KeyboardInteractiveFinishRequest) Descriptor() ([]byte, []int)deprecated
- func (x *KeyboardInteractiveFinishRequest) GetUpstream() *Upstream
- func (*KeyboardInteractiveFinishRequest) ProtoMessage()
- func (x *KeyboardInteractiveFinishRequest) ProtoReflect() protoreflect.Message
- func (x *KeyboardInteractiveFinishRequest) Reset()
- func (x *KeyboardInteractiveFinishRequest) String() string
- type KeyboardInteractiveMetaRequest
- func (*KeyboardInteractiveMetaRequest) Descriptor() ([]byte, []int)deprecated
- func (*KeyboardInteractiveMetaRequest) ProtoMessage()
- func (x *KeyboardInteractiveMetaRequest) ProtoReflect() protoreflect.Message
- func (x *KeyboardInteractiveMetaRequest) Reset()
- func (x *KeyboardInteractiveMetaRequest) String() string
- type KeyboardInteractiveMetaResponse
- func (*KeyboardInteractiveMetaResponse) Descriptor() ([]byte, []int)deprecated
- func (x *KeyboardInteractiveMetaResponse) GetMeta() *ConnMeta
- func (*KeyboardInteractiveMetaResponse) ProtoMessage()
- func (x *KeyboardInteractiveMetaResponse) ProtoReflect() protoreflect.Message
- func (x *KeyboardInteractiveMetaResponse) Reset()
- func (x *KeyboardInteractiveMetaResponse) String() string
- type KeyboardInteractivePromptRequest
- func (*KeyboardInteractivePromptRequest) Descriptor() ([]byte, []int)deprecated
- func (x *KeyboardInteractivePromptRequest) GetInstruction() string
- func (x *KeyboardInteractivePromptRequest) GetName() string
- func (x *KeyboardInteractivePromptRequest) GetQuestions() []*KeyboardInteractivePromptRequest_Question
- func (*KeyboardInteractivePromptRequest) ProtoMessage()
- func (x *KeyboardInteractivePromptRequest) ProtoReflect() protoreflect.Message
- func (x *KeyboardInteractivePromptRequest) Reset()
- func (x *KeyboardInteractivePromptRequest) String() string
- type KeyboardInteractivePromptRequest_Question
- func (*KeyboardInteractivePromptRequest_Question) Descriptor() ([]byte, []int)deprecated
- func (x *KeyboardInteractivePromptRequest_Question) GetEcho() bool
- func (x *KeyboardInteractivePromptRequest_Question) GetText() string
- func (*KeyboardInteractivePromptRequest_Question) ProtoMessage()
- func (x *KeyboardInteractivePromptRequest_Question) ProtoReflect() protoreflect.Message
- func (x *KeyboardInteractivePromptRequest_Question) Reset()
- func (x *KeyboardInteractivePromptRequest_Question) String() string
- type KeyboardInteractiveUserResponse
- func (*KeyboardInteractiveUserResponse) Descriptor() ([]byte, []int)deprecated
- func (x *KeyboardInteractiveUserResponse) GetAnswers() []string
- func (*KeyboardInteractiveUserResponse) ProtoMessage()
- func (x *KeyboardInteractiveUserResponse) ProtoReflect() protoreflect.Message
- func (x *KeyboardInteractiveUserResponse) Reset()
- func (x *KeyboardInteractiveUserResponse) String() string
- type ListCallbackRequest
- type ListCallbackResponse
- func (*ListCallbackResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListCallbackResponse) GetCallbacks() []string
- func (*ListCallbackResponse) ProtoMessage()
- func (x *ListCallbackResponse) ProtoReflect() protoreflect.Message
- func (x *ListCallbackResponse) Reset()
- func (x *ListCallbackResponse) String() string
- type Log
- type NewConnectionRequest
- func (*NewConnectionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *NewConnectionRequest) GetMeta() *ConnMeta
- func (*NewConnectionRequest) ProtoMessage()
- func (x *NewConnectionRequest) ProtoReflect() protoreflect.Message
- func (x *NewConnectionRequest) Reset()
- func (x *NewConnectionRequest) String() string
- type NewConnectionResponse
- type NextAuthMethodsRequest
- func (*NextAuthMethodsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *NextAuthMethodsRequest) GetMeta() *ConnMeta
- func (*NextAuthMethodsRequest) ProtoMessage()
- func (x *NextAuthMethodsRequest) ProtoReflect() protoreflect.Message
- func (x *NextAuthMethodsRequest) Reset()
- func (x *NextAuthMethodsRequest) String() string
- type NextAuthMethodsResponse
- func (*NextAuthMethodsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *NextAuthMethodsResponse) GetMethods() []AuthMethod
- func (*NextAuthMethodsResponse) ProtoMessage()
- func (x *NextAuthMethodsResponse) ProtoReflect() protoreflect.Message
- func (x *NextAuthMethodsResponse) Reset()
- func (x *NextAuthMethodsResponse) String() string
- type NoneAuthRequest
- type NoneAuthResponse
- type PasswordAuthRequest
- func (*PasswordAuthRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PasswordAuthRequest) GetMeta() *ConnMeta
- func (x *PasswordAuthRequest) GetPassword() []byte
- func (*PasswordAuthRequest) ProtoMessage()
- func (x *PasswordAuthRequest) ProtoReflect() protoreflect.Message
- func (x *PasswordAuthRequest) Reset()
- func (x *PasswordAuthRequest) String() string
- type PasswordAuthResponse
- func (*PasswordAuthResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PasswordAuthResponse) GetUpstream() *Upstream
- func (*PasswordAuthResponse) ProtoMessage()
- func (x *PasswordAuthResponse) ProtoReflect() protoreflect.Message
- func (x *PasswordAuthResponse) Reset()
- func (x *PasswordAuthResponse) String() string
- type PipeErrorNoticeRequest
- func (*PipeErrorNoticeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PipeErrorNoticeRequest) GetError() string
- func (x *PipeErrorNoticeRequest) GetMeta() *ConnMeta
- func (*PipeErrorNoticeRequest) ProtoMessage()
- func (x *PipeErrorNoticeRequest) ProtoReflect() protoreflect.Message
- func (x *PipeErrorNoticeRequest) Reset()
- func (x *PipeErrorNoticeRequest) String() string
- type PipeErrorNoticeResponse
- type PipeStartNoticeRequest
- func (*PipeStartNoticeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PipeStartNoticeRequest) GetMeta() *ConnMeta
- func (*PipeStartNoticeRequest) ProtoMessage()
- func (x *PipeStartNoticeRequest) ProtoReflect() protoreflect.Message
- func (x *PipeStartNoticeRequest) Reset()
- func (x *PipeStartNoticeRequest) String() string
- type PipeStartNoticeResponse
- type PluginTemplate
- type PublicKeyAuthRequest
- func (*PublicKeyAuthRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PublicKeyAuthRequest) GetMeta() *ConnMeta
- func (x *PublicKeyAuthRequest) GetPublicKey() []byte
- func (*PublicKeyAuthRequest) ProtoMessage()
- func (x *PublicKeyAuthRequest) ProtoReflect() protoreflect.Message
- func (x *PublicKeyAuthRequest) Reset()
- func (x *PublicKeyAuthRequest) String() string
- type PublicKeyAuthResponse
- func (*PublicKeyAuthResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PublicKeyAuthResponse) GetUpstream() *Upstream
- func (*PublicKeyAuthResponse) ProtoMessage()
- func (x *PublicKeyAuthResponse) ProtoReflect() protoreflect.Message
- func (x *PublicKeyAuthResponse) Reset()
- func (x *PublicKeyAuthResponse) String() string
- type SshPiperPlugin
- type SshPiperPluginClient
- type SshPiperPluginConfig
- type SshPiperPluginServer
- type SshPiperPlugin_KeyboardInteractiveAuthClient
- type SshPiperPlugin_KeyboardInteractiveAuthServer
- type SshPiperPlugin_LogsClient
- type SshPiperPlugin_LogsServer
- type StartLogRequest
- func (*StartLogRequest) Descriptor() ([]byte, []int)deprecated
- func (x *StartLogRequest) GetLevel() string
- func (x *StartLogRequest) GetTty() bool
- func (x *StartLogRequest) GetUniqId() string
- func (*StartLogRequest) ProtoMessage()
- func (x *StartLogRequest) ProtoReflect() protoreflect.Message
- func (x *StartLogRequest) Reset()
- func (x *StartLogRequest) String() string
- type UnimplementedSshPiperPluginServer
- func (UnimplementedSshPiperPluginServer) Banner(context.Context, *BannerRequest) (*BannerResponse, error)
- func (UnimplementedSshPiperPluginServer) KeyboardInteractiveAuth(SshPiperPlugin_KeyboardInteractiveAuthServer) error
- func (UnimplementedSshPiperPluginServer) ListCallbacks(context.Context, *ListCallbackRequest) (*ListCallbackResponse, error)
- func (UnimplementedSshPiperPluginServer) Logs(*StartLogRequest, SshPiperPlugin_LogsServer) error
- func (UnimplementedSshPiperPluginServer) NewConnection(context.Context, *NewConnectionRequest) (*NewConnectionResponse, error)
- func (UnimplementedSshPiperPluginServer) NextAuthMethods(context.Context, *NextAuthMethodsRequest) (*NextAuthMethodsResponse, error)
- func (UnimplementedSshPiperPluginServer) NoneAuth(context.Context, *NoneAuthRequest) (*NoneAuthResponse, error)
- func (UnimplementedSshPiperPluginServer) PasswordAuth(context.Context, *PasswordAuthRequest) (*PasswordAuthResponse, error)
- func (UnimplementedSshPiperPluginServer) PipeErrorNotice(context.Context, *PipeErrorNoticeRequest) (*PipeErrorNoticeResponse, error)
- func (UnimplementedSshPiperPluginServer) PipeStartNotice(context.Context, *PipeStartNoticeRequest) (*PipeStartNoticeResponse, error)
- func (UnimplementedSshPiperPluginServer) PublicKeyAuth(context.Context, *PublicKeyAuthRequest) (*PublicKeyAuthResponse, error)
- func (UnimplementedSshPiperPluginServer) UpstreamAuthFailureNotice(context.Context, *UpstreamAuthFailureNoticeRequest) (*UpstreamAuthFailureNoticeResponse, error)
- func (UnimplementedSshPiperPluginServer) VerifyHostKey(context.Context, *VerifyHostKeyRequest) (*VerifyHostKeyResponse, error)
- type UnsafeSshPiperPluginServer
- type Upstream
- func (*Upstream) Descriptor() ([]byte, []int)deprecated
- func (m *Upstream) GetAuth() isUpstream_Auth
- func (x *Upstream) GetHost() string
- func (x *Upstream) GetIgnoreHostKey() bool
- func (x *Upstream) GetNextPlugin() *UpstreamNextPluginAuth
- func (x *Upstream) GetNone() *UpstreamNoneAuth
- func (x *Upstream) GetPassword() *UpstreamPasswordAuth
- func (x *Upstream) GetPort() int32
- func (x *Upstream) GetPrivateKey() *UpstreamPrivateKeyAuth
- func (x *Upstream) GetRemoteSigner() *UpstreamRemoteSignerAuth
- func (x *Upstream) GetUserName() string
- func (*Upstream) ProtoMessage()
- func (x *Upstream) ProtoReflect() protoreflect.Message
- func (x *Upstream) Reset()
- func (x *Upstream) String() string
- type UpstreamAuthFailureNoticeRequest
- func (*UpstreamAuthFailureNoticeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpstreamAuthFailureNoticeRequest) GetAllowedMethods() []AuthMethod
- func (x *UpstreamAuthFailureNoticeRequest) GetError() string
- func (x *UpstreamAuthFailureNoticeRequest) GetMeta() *ConnMeta
- func (x *UpstreamAuthFailureNoticeRequest) GetMethod() string
- func (*UpstreamAuthFailureNoticeRequest) ProtoMessage()
- func (x *UpstreamAuthFailureNoticeRequest) ProtoReflect() protoreflect.Message
- func (x *UpstreamAuthFailureNoticeRequest) Reset()
- func (x *UpstreamAuthFailureNoticeRequest) String() string
- type UpstreamAuthFailureNoticeResponse
- func (*UpstreamAuthFailureNoticeResponse) Descriptor() ([]byte, []int)deprecated
- func (*UpstreamAuthFailureNoticeResponse) ProtoMessage()
- func (x *UpstreamAuthFailureNoticeResponse) ProtoReflect() protoreflect.Message
- func (x *UpstreamAuthFailureNoticeResponse) Reset()
- func (x *UpstreamAuthFailureNoticeResponse) String() string
- type UpstreamNextPluginAuth
- func (*UpstreamNextPluginAuth) Descriptor() ([]byte, []int)deprecated
- func (x *UpstreamNextPluginAuth) GetMeta() map[string]string
- func (*UpstreamNextPluginAuth) ProtoMessage()
- func (x *UpstreamNextPluginAuth) ProtoReflect() protoreflect.Message
- func (x *UpstreamNextPluginAuth) Reset()
- func (x *UpstreamNextPluginAuth) String() string
- type UpstreamNoneAuth
- type UpstreamPasswordAuth
- func (*UpstreamPasswordAuth) Descriptor() ([]byte, []int)deprecated
- func (x *UpstreamPasswordAuth) GetPassword() string
- func (*UpstreamPasswordAuth) ProtoMessage()
- func (x *UpstreamPasswordAuth) ProtoReflect() protoreflect.Message
- func (x *UpstreamPasswordAuth) Reset()
- func (x *UpstreamPasswordAuth) String() string
- type UpstreamPrivateKeyAuth
- func (*UpstreamPrivateKeyAuth) Descriptor() ([]byte, []int)deprecated
- func (x *UpstreamPrivateKeyAuth) GetPrivateKey() []byte
- func (*UpstreamPrivateKeyAuth) ProtoMessage()
- func (x *UpstreamPrivateKeyAuth) ProtoReflect() protoreflect.Message
- func (x *UpstreamPrivateKeyAuth) Reset()
- func (x *UpstreamPrivateKeyAuth) String() string
- type UpstreamRemoteSignerAuth
- func (*UpstreamRemoteSignerAuth) Descriptor() ([]byte, []int)deprecated
- func (x *UpstreamRemoteSignerAuth) GetMeta() string
- func (*UpstreamRemoteSignerAuth) ProtoMessage()
- func (x *UpstreamRemoteSignerAuth) ProtoReflect() protoreflect.Message
- func (x *UpstreamRemoteSignerAuth) Reset()
- func (x *UpstreamRemoteSignerAuth) String() string
- type Upstream_NextPlugin
- type Upstream_None
- type Upstream_Password
- type Upstream_PrivateKey
- type Upstream_RemoteSigner
- type VerifyHostKeyRequest
- func (*VerifyHostKeyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *VerifyHostKeyRequest) GetHostname() string
- func (x *VerifyHostKeyRequest) GetKey() []byte
- func (x *VerifyHostKeyRequest) GetMeta() *ConnMeta
- func (x *VerifyHostKeyRequest) GetNetaddress() string
- func (*VerifyHostKeyRequest) ProtoMessage()
- func (x *VerifyHostKeyRequest) ProtoReflect() protoreflect.Message
- func (x *VerifyHostKeyRequest) Reset()
- func (x *VerifyHostKeyRequest) String() string
- type VerifyHostKeyResponse
- func (*VerifyHostKeyResponse) Descriptor() ([]byte, []int)deprecated
- func (x *VerifyHostKeyResponse) GetVerified() bool
- func (*VerifyHostKeyResponse) ProtoMessage()
- func (x *VerifyHostKeyResponse) ProtoReflect() protoreflect.Message
- func (x *VerifyHostKeyResponse) Reset()
- func (x *VerifyHostKeyResponse) String() string
Constants ¶
This section is empty.
Variables ¶
var ( AuthMethod_name = map[int32]string{ 0: "NONE", 1: "PASSWORD", 2: "PUBLICKEY", 3: "KEYBOARD_INTERACTIVE", } AuthMethod_value = map[string]int32{ "NONE": 0, "PASSWORD": 1, "PUBLICKEY": 2, "KEYBOARD_INTERACTIVE": 3, } )
Enum value maps for AuthMethod.
var File_plugin_proto protoreflect.FileDescriptor
var SshPiperPlugin_ServiceDesc = grpc.ServiceDesc{ ServiceName: "libplugin.SshPiperPlugin", HandlerType: (*SshPiperPluginServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListCallbacks", Handler: _SshPiperPlugin_ListCallbacks_Handler, }, { MethodName: "NewConnection", Handler: _SshPiperPlugin_NewConnection_Handler, }, { MethodName: "NextAuthMethods", Handler: _SshPiperPlugin_NextAuthMethods_Handler, }, { MethodName: "NoneAuth", Handler: _SshPiperPlugin_NoneAuth_Handler, }, { MethodName: "PasswordAuth", Handler: _SshPiperPlugin_PasswordAuth_Handler, }, { MethodName: "PublicKeyAuth", Handler: _SshPiperPlugin_PublicKeyAuth_Handler, }, { MethodName: "UpstreamAuthFailureNotice", Handler: _SshPiperPlugin_UpstreamAuthFailureNotice_Handler, }, { MethodName: "Banner", Handler: _SshPiperPlugin_Banner_Handler, }, { MethodName: "VerifyHostKey", Handler: _SshPiperPlugin_VerifyHostKey_Handler, }, { MethodName: "PipeStartNotice", Handler: _SshPiperPlugin_PipeStartNotice_Handler, }, { MethodName: "PipeErrorNotice", Handler: _SshPiperPlugin_PipeErrorNotice_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "Logs", Handler: _SshPiperPlugin_Logs_Handler, ServerStreams: true, }, { StreamName: "KeyboardInteractiveAuth", Handler: _SshPiperPlugin_KeyboardInteractiveAuth_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "plugin.proto", }
SshPiperPlugin_ServiceDesc is the grpc.ServiceDesc for SshPiperPlugin service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func AuthMethodTypeToName ¶
func AuthMethodTypeToName(a AuthMethod) string
func ConfigStdioLogrus ¶
func ConfigStdioLogrus(p SshPiperPlugin, logger *logrus.Logger)
func CreateAndRunPluginTemplate ¶
func CreateAndRunPluginTemplate(t *PluginTemplate)
func DialForSSH ¶
DialForSSH is the modified version of net.Dial, would add ":22" automaticlly
func RegisterSshPiperPluginServer ¶
func RegisterSshPiperPluginServer(s grpc.ServiceRegistrar, srv SshPiperPluginServer)
func SplitHostPortForSSH ¶
SplitHostPortForSSH is the modified version of net.SplitHostPort but return port 22 is no port is specified
Types ¶
type AuthMethod ¶
type AuthMethod int32
const ( AuthMethod_NONE AuthMethod = 0 AuthMethod_PASSWORD AuthMethod = 1 AuthMethod_PUBLICKEY AuthMethod = 2 AuthMethod_KEYBOARD_INTERACTIVE AuthMethod = 3 )
func AuthMethodFromName ¶
func AuthMethodFromName(n string) AuthMethod
func (AuthMethod) Descriptor ¶
func (AuthMethod) Descriptor() protoreflect.EnumDescriptor
func (AuthMethod) Enum ¶
func (x AuthMethod) Enum() *AuthMethod
func (AuthMethod) EnumDescriptor
deprecated
func (AuthMethod) EnumDescriptor() ([]byte, []int)
Deprecated: Use AuthMethod.Descriptor instead.
func (AuthMethod) Number ¶
func (x AuthMethod) Number() protoreflect.EnumNumber
func (AuthMethod) String ¶
func (x AuthMethod) String() string
func (AuthMethod) Type ¶
func (AuthMethod) Type() protoreflect.EnumType
type BannerRequest ¶
type BannerRequest struct { Meta *ConnMeta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"` // contains filtered or unexported fields }
func (*BannerRequest) Descriptor
deprecated
func (*BannerRequest) Descriptor() ([]byte, []int)
Deprecated: Use BannerRequest.ProtoReflect.Descriptor instead.
func (*BannerRequest) GetMeta ¶
func (x *BannerRequest) GetMeta() *ConnMeta
func (*BannerRequest) ProtoMessage ¶
func (*BannerRequest) ProtoMessage()
func (*BannerRequest) ProtoReflect ¶
func (x *BannerRequest) ProtoReflect() protoreflect.Message
func (*BannerRequest) Reset ¶
func (x *BannerRequest) Reset()
func (*BannerRequest) String ¶
func (x *BannerRequest) String() string
type BannerResponse ¶
type BannerResponse struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*BannerResponse) Descriptor
deprecated
func (*BannerResponse) Descriptor() ([]byte, []int)
Deprecated: Use BannerResponse.ProtoReflect.Descriptor instead.
func (*BannerResponse) GetMessage ¶
func (x *BannerResponse) GetMessage() string
func (*BannerResponse) ProtoMessage ¶
func (*BannerResponse) ProtoMessage()
func (*BannerResponse) ProtoReflect ¶
func (x *BannerResponse) ProtoReflect() protoreflect.Message
func (*BannerResponse) Reset ¶
func (x *BannerResponse) Reset()
func (*BannerResponse) String ¶
func (x *BannerResponse) String() string
type ConnMeta ¶
type ConnMeta struct { UserName string `protobuf:"bytes,1,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"` FromAddr string `protobuf:"bytes,2,opt,name=from_addr,json=fromAddr,proto3" json:"from_addr,omitempty"` UniqId string `protobuf:"bytes,3,opt,name=uniq_id,json=uniqId,proto3" json:"uniq_id,omitempty"` // contains filtered or unexported fields }
func (*ConnMeta) Descriptor
deprecated
func (*ConnMeta) GetFromAddr ¶
func (*ConnMeta) GetUserName ¶
func (*ConnMeta) ProtoMessage ¶
func (*ConnMeta) ProtoMessage()
func (*ConnMeta) ProtoReflect ¶
func (x *ConnMeta) ProtoReflect() protoreflect.Message
func (*ConnMeta) RemoteAddr ¶
type ConnMetadata ¶
type KeyboardInteractiveAuthMessage ¶
type KeyboardInteractiveAuthMessage struct { // Types that are assignable to Message: // *KeyboardInteractiveAuthMessage_PromptRequest // *KeyboardInteractiveAuthMessage_UserResponse // *KeyboardInteractiveAuthMessage_MetaRequest // *KeyboardInteractiveAuthMessage_MetaResponse // *KeyboardInteractiveAuthMessage_FinishRequest Message isKeyboardInteractiveAuthMessage_Message `protobuf_oneof:"message"` // contains filtered or unexported fields }
func (*KeyboardInteractiveAuthMessage) Descriptor
deprecated
func (*KeyboardInteractiveAuthMessage) Descriptor() ([]byte, []int)
Deprecated: Use KeyboardInteractiveAuthMessage.ProtoReflect.Descriptor instead.
func (*KeyboardInteractiveAuthMessage) GetFinishRequest ¶
func (x *KeyboardInteractiveAuthMessage) GetFinishRequest() *KeyboardInteractiveFinishRequest
func (*KeyboardInteractiveAuthMessage) GetMessage ¶
func (m *KeyboardInteractiveAuthMessage) GetMessage() isKeyboardInteractiveAuthMessage_Message
func (*KeyboardInteractiveAuthMessage) GetMetaRequest ¶
func (x *KeyboardInteractiveAuthMessage) GetMetaRequest() *KeyboardInteractiveMetaRequest
func (*KeyboardInteractiveAuthMessage) GetMetaResponse ¶
func (x *KeyboardInteractiveAuthMessage) GetMetaResponse() *KeyboardInteractiveMetaResponse
func (*KeyboardInteractiveAuthMessage) GetPromptRequest ¶
func (x *KeyboardInteractiveAuthMessage) GetPromptRequest() *KeyboardInteractivePromptRequest
func (*KeyboardInteractiveAuthMessage) GetUserResponse ¶
func (x *KeyboardInteractiveAuthMessage) GetUserResponse() *KeyboardInteractiveUserResponse
func (*KeyboardInteractiveAuthMessage) ProtoMessage ¶
func (*KeyboardInteractiveAuthMessage) ProtoMessage()
func (*KeyboardInteractiveAuthMessage) ProtoReflect ¶
func (x *KeyboardInteractiveAuthMessage) ProtoReflect() protoreflect.Message
func (*KeyboardInteractiveAuthMessage) Reset ¶
func (x *KeyboardInteractiveAuthMessage) Reset()
func (*KeyboardInteractiveAuthMessage) String ¶
func (x *KeyboardInteractiveAuthMessage) String() string
type KeyboardInteractiveAuthMessage_FinishRequest ¶
type KeyboardInteractiveAuthMessage_FinishRequest struct {
FinishRequest *KeyboardInteractiveFinishRequest `protobuf:"bytes,5,opt,name=finish_request,json=finishRequest,proto3,oneof"`
}
type KeyboardInteractiveAuthMessage_MetaRequest ¶
type KeyboardInteractiveAuthMessage_MetaRequest struct {
MetaRequest *KeyboardInteractiveMetaRequest `protobuf:"bytes,3,opt,name=meta_request,json=metaRequest,proto3,oneof"`
}
type KeyboardInteractiveAuthMessage_MetaResponse ¶
type KeyboardInteractiveAuthMessage_MetaResponse struct {
MetaResponse *KeyboardInteractiveMetaResponse `protobuf:"bytes,4,opt,name=meta_response,json=metaResponse,proto3,oneof"`
}
type KeyboardInteractiveAuthMessage_PromptRequest ¶
type KeyboardInteractiveAuthMessage_PromptRequest struct {
PromptRequest *KeyboardInteractivePromptRequest `protobuf:"bytes,1,opt,name=prompt_request,json=promptRequest,proto3,oneof"`
}
type KeyboardInteractiveAuthMessage_UserResponse ¶
type KeyboardInteractiveAuthMessage_UserResponse struct {
UserResponse *KeyboardInteractiveUserResponse `protobuf:"bytes,2,opt,name=user_response,json=userResponse,proto3,oneof"`
}
type KeyboardInteractiveFinishRequest ¶
type KeyboardInteractiveFinishRequest struct { Upstream *Upstream `protobuf:"bytes,1,opt,name=upstream,proto3" json:"upstream,omitempty"` // contains filtered or unexported fields }
func (*KeyboardInteractiveFinishRequest) Descriptor
deprecated
func (*KeyboardInteractiveFinishRequest) Descriptor() ([]byte, []int)
Deprecated: Use KeyboardInteractiveFinishRequest.ProtoReflect.Descriptor instead.
func (*KeyboardInteractiveFinishRequest) GetUpstream ¶
func (x *KeyboardInteractiveFinishRequest) GetUpstream() *Upstream
func (*KeyboardInteractiveFinishRequest) ProtoMessage ¶
func (*KeyboardInteractiveFinishRequest) ProtoMessage()
func (*KeyboardInteractiveFinishRequest) ProtoReflect ¶
func (x *KeyboardInteractiveFinishRequest) ProtoReflect() protoreflect.Message
func (*KeyboardInteractiveFinishRequest) Reset ¶
func (x *KeyboardInteractiveFinishRequest) Reset()
func (*KeyboardInteractiveFinishRequest) String ¶
func (x *KeyboardInteractiveFinishRequest) String() string
type KeyboardInteractiveMetaRequest ¶
type KeyboardInteractiveMetaRequest struct {
// contains filtered or unexported fields
}
func (*KeyboardInteractiveMetaRequest) Descriptor
deprecated
func (*KeyboardInteractiveMetaRequest) Descriptor() ([]byte, []int)
Deprecated: Use KeyboardInteractiveMetaRequest.ProtoReflect.Descriptor instead.
func (*KeyboardInteractiveMetaRequest) ProtoMessage ¶
func (*KeyboardInteractiveMetaRequest) ProtoMessage()
func (*KeyboardInteractiveMetaRequest) ProtoReflect ¶
func (x *KeyboardInteractiveMetaRequest) ProtoReflect() protoreflect.Message
func (*KeyboardInteractiveMetaRequest) Reset ¶
func (x *KeyboardInteractiveMetaRequest) Reset()
func (*KeyboardInteractiveMetaRequest) String ¶
func (x *KeyboardInteractiveMetaRequest) String() string
type KeyboardInteractiveMetaResponse ¶
type KeyboardInteractiveMetaResponse struct { Meta *ConnMeta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"` // contains filtered or unexported fields }
func (*KeyboardInteractiveMetaResponse) Descriptor
deprecated
func (*KeyboardInteractiveMetaResponse) Descriptor() ([]byte, []int)
Deprecated: Use KeyboardInteractiveMetaResponse.ProtoReflect.Descriptor instead.
func (*KeyboardInteractiveMetaResponse) GetMeta ¶
func (x *KeyboardInteractiveMetaResponse) GetMeta() *ConnMeta
func (*KeyboardInteractiveMetaResponse) ProtoMessage ¶
func (*KeyboardInteractiveMetaResponse) ProtoMessage()
func (*KeyboardInteractiveMetaResponse) ProtoReflect ¶
func (x *KeyboardInteractiveMetaResponse) ProtoReflect() protoreflect.Message
func (*KeyboardInteractiveMetaResponse) Reset ¶
func (x *KeyboardInteractiveMetaResponse) Reset()
func (*KeyboardInteractiveMetaResponse) String ¶
func (x *KeyboardInteractiveMetaResponse) String() string
type KeyboardInteractivePromptRequest ¶
type KeyboardInteractivePromptRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Instruction string `protobuf:"bytes,2,opt,name=instruction,proto3" json:"instruction,omitempty"` Questions []*KeyboardInteractivePromptRequest_Question `protobuf:"bytes,3,rep,name=questions,proto3" json:"questions,omitempty"` // contains filtered or unexported fields }
func (*KeyboardInteractivePromptRequest) Descriptor
deprecated
func (*KeyboardInteractivePromptRequest) Descriptor() ([]byte, []int)
Deprecated: Use KeyboardInteractivePromptRequest.ProtoReflect.Descriptor instead.
func (*KeyboardInteractivePromptRequest) GetInstruction ¶
func (x *KeyboardInteractivePromptRequest) GetInstruction() string
func (*KeyboardInteractivePromptRequest) GetName ¶
func (x *KeyboardInteractivePromptRequest) GetName() string
func (*KeyboardInteractivePromptRequest) GetQuestions ¶
func (x *KeyboardInteractivePromptRequest) GetQuestions() []*KeyboardInteractivePromptRequest_Question
func (*KeyboardInteractivePromptRequest) ProtoMessage ¶
func (*KeyboardInteractivePromptRequest) ProtoMessage()
func (*KeyboardInteractivePromptRequest) ProtoReflect ¶
func (x *KeyboardInteractivePromptRequest) ProtoReflect() protoreflect.Message
func (*KeyboardInteractivePromptRequest) Reset ¶
func (x *KeyboardInteractivePromptRequest) Reset()
func (*KeyboardInteractivePromptRequest) String ¶
func (x *KeyboardInteractivePromptRequest) String() string
type KeyboardInteractivePromptRequest_Question ¶
type KeyboardInteractivePromptRequest_Question struct { Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"` Echo bool `protobuf:"varint,2,opt,name=echo,proto3" json:"echo,omitempty"` // contains filtered or unexported fields }
func (*KeyboardInteractivePromptRequest_Question) Descriptor
deprecated
func (*KeyboardInteractivePromptRequest_Question) Descriptor() ([]byte, []int)
Deprecated: Use KeyboardInteractivePromptRequest_Question.ProtoReflect.Descriptor instead.
func (*KeyboardInteractivePromptRequest_Question) GetEcho ¶
func (x *KeyboardInteractivePromptRequest_Question) GetEcho() bool
func (*KeyboardInteractivePromptRequest_Question) GetText ¶
func (x *KeyboardInteractivePromptRequest_Question) GetText() string
func (*KeyboardInteractivePromptRequest_Question) ProtoMessage ¶
func (*KeyboardInteractivePromptRequest_Question) ProtoMessage()
func (*KeyboardInteractivePromptRequest_Question) ProtoReflect ¶
func (x *KeyboardInteractivePromptRequest_Question) ProtoReflect() protoreflect.Message
func (*KeyboardInteractivePromptRequest_Question) Reset ¶
func (x *KeyboardInteractivePromptRequest_Question) Reset()
func (*KeyboardInteractivePromptRequest_Question) String ¶
func (x *KeyboardInteractivePromptRequest_Question) String() string
type KeyboardInteractiveUserResponse ¶
type KeyboardInteractiveUserResponse struct { Answers []string `protobuf:"bytes,1,rep,name=answers,proto3" json:"answers,omitempty"` // contains filtered or unexported fields }
func (*KeyboardInteractiveUserResponse) Descriptor
deprecated
func (*KeyboardInteractiveUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use KeyboardInteractiveUserResponse.ProtoReflect.Descriptor instead.
func (*KeyboardInteractiveUserResponse) GetAnswers ¶
func (x *KeyboardInteractiveUserResponse) GetAnswers() []string
func (*KeyboardInteractiveUserResponse) ProtoMessage ¶
func (*KeyboardInteractiveUserResponse) ProtoMessage()
func (*KeyboardInteractiveUserResponse) ProtoReflect ¶
func (x *KeyboardInteractiveUserResponse) ProtoReflect() protoreflect.Message
func (*KeyboardInteractiveUserResponse) Reset ¶
func (x *KeyboardInteractiveUserResponse) Reset()
func (*KeyboardInteractiveUserResponse) String ¶
func (x *KeyboardInteractiveUserResponse) String() string
type ListCallbackRequest ¶
type ListCallbackRequest struct {
// contains filtered or unexported fields
}
func (*ListCallbackRequest) Descriptor
deprecated
func (*ListCallbackRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListCallbackRequest.ProtoReflect.Descriptor instead.
func (*ListCallbackRequest) ProtoMessage ¶
func (*ListCallbackRequest) ProtoMessage()
func (*ListCallbackRequest) ProtoReflect ¶
func (x *ListCallbackRequest) ProtoReflect() protoreflect.Message
func (*ListCallbackRequest) Reset ¶
func (x *ListCallbackRequest) Reset()
func (*ListCallbackRequest) String ¶
func (x *ListCallbackRequest) String() string
type ListCallbackResponse ¶
type ListCallbackResponse struct { Callbacks []string `protobuf:"bytes,1,rep,name=callbacks,proto3" json:"callbacks,omitempty"` // contains filtered or unexported fields }
func (*ListCallbackResponse) Descriptor
deprecated
func (*ListCallbackResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListCallbackResponse.ProtoReflect.Descriptor instead.
func (*ListCallbackResponse) GetCallbacks ¶
func (x *ListCallbackResponse) GetCallbacks() []string
func (*ListCallbackResponse) ProtoMessage ¶
func (*ListCallbackResponse) ProtoMessage()
func (*ListCallbackResponse) ProtoReflect ¶
func (x *ListCallbackResponse) ProtoReflect() protoreflect.Message
func (*ListCallbackResponse) Reset ¶
func (x *ListCallbackResponse) Reset()
func (*ListCallbackResponse) String ¶
func (x *ListCallbackResponse) String() string
type Log ¶
type Log struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*Log) Descriptor
deprecated
func (*Log) GetMessage ¶
func (*Log) ProtoMessage ¶
func (*Log) ProtoMessage()
func (*Log) ProtoReflect ¶
func (x *Log) ProtoReflect() protoreflect.Message
type NewConnectionRequest ¶
type NewConnectionRequest struct { Meta *ConnMeta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"` // contains filtered or unexported fields }
func (*NewConnectionRequest) Descriptor
deprecated
func (*NewConnectionRequest) Descriptor() ([]byte, []int)
Deprecated: Use NewConnectionRequest.ProtoReflect.Descriptor instead.
func (*NewConnectionRequest) GetMeta ¶
func (x *NewConnectionRequest) GetMeta() *ConnMeta
func (*NewConnectionRequest) ProtoMessage ¶
func (*NewConnectionRequest) ProtoMessage()
func (*NewConnectionRequest) ProtoReflect ¶
func (x *NewConnectionRequest) ProtoReflect() protoreflect.Message
func (*NewConnectionRequest) Reset ¶
func (x *NewConnectionRequest) Reset()
func (*NewConnectionRequest) String ¶
func (x *NewConnectionRequest) String() string
type NewConnectionResponse ¶
type NewConnectionResponse struct {
// contains filtered or unexported fields
}
func (*NewConnectionResponse) Descriptor
deprecated
func (*NewConnectionResponse) Descriptor() ([]byte, []int)
Deprecated: Use NewConnectionResponse.ProtoReflect.Descriptor instead.
func (*NewConnectionResponse) ProtoMessage ¶
func (*NewConnectionResponse) ProtoMessage()
func (*NewConnectionResponse) ProtoReflect ¶
func (x *NewConnectionResponse) ProtoReflect() protoreflect.Message
func (*NewConnectionResponse) Reset ¶
func (x *NewConnectionResponse) Reset()
func (*NewConnectionResponse) String ¶
func (x *NewConnectionResponse) String() string
type NextAuthMethodsRequest ¶
type NextAuthMethodsRequest struct { Meta *ConnMeta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"` // contains filtered or unexported fields }
func (*NextAuthMethodsRequest) Descriptor
deprecated
func (*NextAuthMethodsRequest) Descriptor() ([]byte, []int)
Deprecated: Use NextAuthMethodsRequest.ProtoReflect.Descriptor instead.
func (*NextAuthMethodsRequest) GetMeta ¶
func (x *NextAuthMethodsRequest) GetMeta() *ConnMeta
func (*NextAuthMethodsRequest) ProtoMessage ¶
func (*NextAuthMethodsRequest) ProtoMessage()
func (*NextAuthMethodsRequest) ProtoReflect ¶
func (x *NextAuthMethodsRequest) ProtoReflect() protoreflect.Message
func (*NextAuthMethodsRequest) Reset ¶
func (x *NextAuthMethodsRequest) Reset()
func (*NextAuthMethodsRequest) String ¶
func (x *NextAuthMethodsRequest) String() string
type NextAuthMethodsResponse ¶
type NextAuthMethodsResponse struct { Methods []AuthMethod `protobuf:"varint,1,rep,packed,name=methods,proto3,enum=libplugin.AuthMethod" json:"methods,omitempty"` // contains filtered or unexported fields }
func (*NextAuthMethodsResponse) Descriptor
deprecated
func (*NextAuthMethodsResponse) Descriptor() ([]byte, []int)
Deprecated: Use NextAuthMethodsResponse.ProtoReflect.Descriptor instead.
func (*NextAuthMethodsResponse) GetMethods ¶
func (x *NextAuthMethodsResponse) GetMethods() []AuthMethod
func (*NextAuthMethodsResponse) ProtoMessage ¶
func (*NextAuthMethodsResponse) ProtoMessage()
func (*NextAuthMethodsResponse) ProtoReflect ¶
func (x *NextAuthMethodsResponse) ProtoReflect() protoreflect.Message
func (*NextAuthMethodsResponse) Reset ¶
func (x *NextAuthMethodsResponse) Reset()
func (*NextAuthMethodsResponse) String ¶
func (x *NextAuthMethodsResponse) String() string
type NoneAuthRequest ¶
type NoneAuthRequest struct { Meta *ConnMeta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"` // contains filtered or unexported fields }
func (*NoneAuthRequest) Descriptor
deprecated
func (*NoneAuthRequest) Descriptor() ([]byte, []int)
Deprecated: Use NoneAuthRequest.ProtoReflect.Descriptor instead.
func (*NoneAuthRequest) GetMeta ¶
func (x *NoneAuthRequest) GetMeta() *ConnMeta
func (*NoneAuthRequest) ProtoMessage ¶
func (*NoneAuthRequest) ProtoMessage()
func (*NoneAuthRequest) ProtoReflect ¶
func (x *NoneAuthRequest) ProtoReflect() protoreflect.Message
func (*NoneAuthRequest) Reset ¶
func (x *NoneAuthRequest) Reset()
func (*NoneAuthRequest) String ¶
func (x *NoneAuthRequest) String() string
type NoneAuthResponse ¶
type NoneAuthResponse struct { Upstream *Upstream `protobuf:"bytes,1,opt,name=upstream,proto3" json:"upstream,omitempty"` // contains filtered or unexported fields }
func (*NoneAuthResponse) Descriptor
deprecated
func (*NoneAuthResponse) Descriptor() ([]byte, []int)
Deprecated: Use NoneAuthResponse.ProtoReflect.Descriptor instead.
func (*NoneAuthResponse) GetUpstream ¶
func (x *NoneAuthResponse) GetUpstream() *Upstream
func (*NoneAuthResponse) ProtoMessage ¶
func (*NoneAuthResponse) ProtoMessage()
func (*NoneAuthResponse) ProtoReflect ¶
func (x *NoneAuthResponse) ProtoReflect() protoreflect.Message
func (*NoneAuthResponse) Reset ¶
func (x *NoneAuthResponse) Reset()
func (*NoneAuthResponse) String ¶
func (x *NoneAuthResponse) String() string
type PasswordAuthRequest ¶
type PasswordAuthRequest struct { Meta *ConnMeta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"` Password []byte `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*PasswordAuthRequest) Descriptor
deprecated
func (*PasswordAuthRequest) Descriptor() ([]byte, []int)
Deprecated: Use PasswordAuthRequest.ProtoReflect.Descriptor instead.
func (*PasswordAuthRequest) GetMeta ¶
func (x *PasswordAuthRequest) GetMeta() *ConnMeta
func (*PasswordAuthRequest) GetPassword ¶
func (x *PasswordAuthRequest) GetPassword() []byte
func (*PasswordAuthRequest) ProtoMessage ¶
func (*PasswordAuthRequest) ProtoMessage()
func (*PasswordAuthRequest) ProtoReflect ¶
func (x *PasswordAuthRequest) ProtoReflect() protoreflect.Message
func (*PasswordAuthRequest) Reset ¶
func (x *PasswordAuthRequest) Reset()
func (*PasswordAuthRequest) String ¶
func (x *PasswordAuthRequest) String() string
type PasswordAuthResponse ¶
type PasswordAuthResponse struct { Upstream *Upstream `protobuf:"bytes,1,opt,name=upstream,proto3" json:"upstream,omitempty"` // contains filtered or unexported fields }
func (*PasswordAuthResponse) Descriptor
deprecated
func (*PasswordAuthResponse) Descriptor() ([]byte, []int)
Deprecated: Use PasswordAuthResponse.ProtoReflect.Descriptor instead.
func (*PasswordAuthResponse) GetUpstream ¶
func (x *PasswordAuthResponse) GetUpstream() *Upstream
func (*PasswordAuthResponse) ProtoMessage ¶
func (*PasswordAuthResponse) ProtoMessage()
func (*PasswordAuthResponse) ProtoReflect ¶
func (x *PasswordAuthResponse) ProtoReflect() protoreflect.Message
func (*PasswordAuthResponse) Reset ¶
func (x *PasswordAuthResponse) Reset()
func (*PasswordAuthResponse) String ¶
func (x *PasswordAuthResponse) String() string
type PipeErrorNoticeRequest ¶ added in v1.0.96
type PipeErrorNoticeRequest struct { Meta *ConnMeta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"` Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` // contains filtered or unexported fields }
func (*PipeErrorNoticeRequest) Descriptor
deprecated
added in
v1.0.96
func (*PipeErrorNoticeRequest) Descriptor() ([]byte, []int)
Deprecated: Use PipeErrorNoticeRequest.ProtoReflect.Descriptor instead.
func (*PipeErrorNoticeRequest) GetError ¶ added in v1.0.96
func (x *PipeErrorNoticeRequest) GetError() string
func (*PipeErrorNoticeRequest) GetMeta ¶ added in v1.0.96
func (x *PipeErrorNoticeRequest) GetMeta() *ConnMeta
func (*PipeErrorNoticeRequest) ProtoMessage ¶ added in v1.0.96
func (*PipeErrorNoticeRequest) ProtoMessage()
func (*PipeErrorNoticeRequest) ProtoReflect ¶ added in v1.0.96
func (x *PipeErrorNoticeRequest) ProtoReflect() protoreflect.Message
func (*PipeErrorNoticeRequest) Reset ¶ added in v1.0.96
func (x *PipeErrorNoticeRequest) Reset()
func (*PipeErrorNoticeRequest) String ¶ added in v1.0.96
func (x *PipeErrorNoticeRequest) String() string
type PipeErrorNoticeResponse ¶ added in v1.0.96
type PipeErrorNoticeResponse struct {
// contains filtered or unexported fields
}
func (*PipeErrorNoticeResponse) Descriptor
deprecated
added in
v1.0.96
func (*PipeErrorNoticeResponse) Descriptor() ([]byte, []int)
Deprecated: Use PipeErrorNoticeResponse.ProtoReflect.Descriptor instead.
func (*PipeErrorNoticeResponse) ProtoMessage ¶ added in v1.0.96
func (*PipeErrorNoticeResponse) ProtoMessage()
func (*PipeErrorNoticeResponse) ProtoReflect ¶ added in v1.0.96
func (x *PipeErrorNoticeResponse) ProtoReflect() protoreflect.Message
func (*PipeErrorNoticeResponse) Reset ¶ added in v1.0.96
func (x *PipeErrorNoticeResponse) Reset()
func (*PipeErrorNoticeResponse) String ¶ added in v1.0.96
func (x *PipeErrorNoticeResponse) String() string
type PipeStartNoticeRequest ¶ added in v1.0.96
type PipeStartNoticeRequest struct { Meta *ConnMeta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"` // contains filtered or unexported fields }
func (*PipeStartNoticeRequest) Descriptor
deprecated
added in
v1.0.96
func (*PipeStartNoticeRequest) Descriptor() ([]byte, []int)
Deprecated: Use PipeStartNoticeRequest.ProtoReflect.Descriptor instead.
func (*PipeStartNoticeRequest) GetMeta ¶ added in v1.0.96
func (x *PipeStartNoticeRequest) GetMeta() *ConnMeta
func (*PipeStartNoticeRequest) ProtoMessage ¶ added in v1.0.96
func (*PipeStartNoticeRequest) ProtoMessage()
func (*PipeStartNoticeRequest) ProtoReflect ¶ added in v1.0.96
func (x *PipeStartNoticeRequest) ProtoReflect() protoreflect.Message
func (*PipeStartNoticeRequest) Reset ¶ added in v1.0.96
func (x *PipeStartNoticeRequest) Reset()
func (*PipeStartNoticeRequest) String ¶ added in v1.0.96
func (x *PipeStartNoticeRequest) String() string
type PipeStartNoticeResponse ¶ added in v1.0.96
type PipeStartNoticeResponse struct {
// contains filtered or unexported fields
}
func (*PipeStartNoticeResponse) Descriptor
deprecated
added in
v1.0.96
func (*PipeStartNoticeResponse) Descriptor() ([]byte, []int)
Deprecated: Use PipeStartNoticeResponse.ProtoReflect.Descriptor instead.
func (*PipeStartNoticeResponse) ProtoMessage ¶ added in v1.0.96
func (*PipeStartNoticeResponse) ProtoMessage()
func (*PipeStartNoticeResponse) ProtoReflect ¶ added in v1.0.96
func (x *PipeStartNoticeResponse) ProtoReflect() protoreflect.Message
func (*PipeStartNoticeResponse) Reset ¶ added in v1.0.96
func (x *PipeStartNoticeResponse) Reset()
func (*PipeStartNoticeResponse) String ¶ added in v1.0.96
func (x *PipeStartNoticeResponse) String() string
type PluginTemplate ¶
type PluginTemplate struct { Name string Usage string Flags []cli.Flag CreateConfig func(c *cli.Context) (*SshPiperPluginConfig, error) }
type PublicKeyAuthRequest ¶
type PublicKeyAuthRequest struct { Meta *ConnMeta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"` PublicKey []byte `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` // contains filtered or unexported fields }
func (*PublicKeyAuthRequest) Descriptor
deprecated
func (*PublicKeyAuthRequest) Descriptor() ([]byte, []int)
Deprecated: Use PublicKeyAuthRequest.ProtoReflect.Descriptor instead.
func (*PublicKeyAuthRequest) GetMeta ¶
func (x *PublicKeyAuthRequest) GetMeta() *ConnMeta
func (*PublicKeyAuthRequest) GetPublicKey ¶
func (x *PublicKeyAuthRequest) GetPublicKey() []byte
func (*PublicKeyAuthRequest) ProtoMessage ¶
func (*PublicKeyAuthRequest) ProtoMessage()
func (*PublicKeyAuthRequest) ProtoReflect ¶
func (x *PublicKeyAuthRequest) ProtoReflect() protoreflect.Message
func (*PublicKeyAuthRequest) Reset ¶
func (x *PublicKeyAuthRequest) Reset()
func (*PublicKeyAuthRequest) String ¶
func (x *PublicKeyAuthRequest) String() string
type PublicKeyAuthResponse ¶
type PublicKeyAuthResponse struct { Upstream *Upstream `protobuf:"bytes,1,opt,name=upstream,proto3" json:"upstream,omitempty"` // contains filtered or unexported fields }
func (*PublicKeyAuthResponse) Descriptor
deprecated
func (*PublicKeyAuthResponse) Descriptor() ([]byte, []int)
Deprecated: Use PublicKeyAuthResponse.ProtoReflect.Descriptor instead.
func (*PublicKeyAuthResponse) GetUpstream ¶
func (x *PublicKeyAuthResponse) GetUpstream() *Upstream
func (*PublicKeyAuthResponse) ProtoMessage ¶
func (*PublicKeyAuthResponse) ProtoMessage()
func (*PublicKeyAuthResponse) ProtoReflect ¶
func (x *PublicKeyAuthResponse) ProtoReflect() protoreflect.Message
func (*PublicKeyAuthResponse) Reset ¶
func (x *PublicKeyAuthResponse) Reset()
func (*PublicKeyAuthResponse) String ¶
func (x *PublicKeyAuthResponse) String() string
type SshPiperPlugin ¶
type SshPiperPlugin interface { SetConfigLoggerCallback(cb func(w io.Writer, level string, tty bool)) // GetGrpcServer() *grpc.Server Serve() error }
func NewFromGrpc ¶
func NewFromGrpc(config SshPiperPluginConfig, grpc *grpc.Server, listener net.Listener) (SshPiperPlugin, error)
func NewFromStdio ¶
func NewFromStdio(config SshPiperPluginConfig) (SshPiperPlugin, error)
type SshPiperPluginClient ¶
type SshPiperPluginClient interface { Logs(ctx context.Context, in *StartLogRequest, opts ...grpc.CallOption) (SshPiperPlugin_LogsClient, error) ListCallbacks(ctx context.Context, in *ListCallbackRequest, opts ...grpc.CallOption) (*ListCallbackResponse, error) NewConnection(ctx context.Context, in *NewConnectionRequest, opts ...grpc.CallOption) (*NewConnectionResponse, error) NextAuthMethods(ctx context.Context, in *NextAuthMethodsRequest, opts ...grpc.CallOption) (*NextAuthMethodsResponse, error) NoneAuth(ctx context.Context, in *NoneAuthRequest, opts ...grpc.CallOption) (*NoneAuthResponse, error) PasswordAuth(ctx context.Context, in *PasswordAuthRequest, opts ...grpc.CallOption) (*PasswordAuthResponse, error) PublicKeyAuth(ctx context.Context, in *PublicKeyAuthRequest, opts ...grpc.CallOption) (*PublicKeyAuthResponse, error) KeyboardInteractiveAuth(ctx context.Context, opts ...grpc.CallOption) (SshPiperPlugin_KeyboardInteractiveAuthClient, error) UpstreamAuthFailureNotice(ctx context.Context, in *UpstreamAuthFailureNoticeRequest, opts ...grpc.CallOption) (*UpstreamAuthFailureNoticeResponse, error) Banner(ctx context.Context, in *BannerRequest, opts ...grpc.CallOption) (*BannerResponse, error) VerifyHostKey(ctx context.Context, in *VerifyHostKeyRequest, opts ...grpc.CallOption) (*VerifyHostKeyResponse, error) PipeStartNotice(ctx context.Context, in *PipeStartNoticeRequest, opts ...grpc.CallOption) (*PipeStartNoticeResponse, error) PipeErrorNotice(ctx context.Context, in *PipeErrorNoticeRequest, opts ...grpc.CallOption) (*PipeErrorNoticeResponse, error) }
SshPiperPluginClient is the client API for SshPiperPlugin service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewSshPiperPluginClient ¶
func NewSshPiperPluginClient(cc grpc.ClientConnInterface) SshPiperPluginClient
type SshPiperPluginConfig ¶
type SshPiperPluginConfig struct { NewConnectionCallback func(conn ConnMetadata) error NextAuthMethodsCallback func(conn ConnMetadata) ([]string, error) NoClientAuthCallback func(conn ConnMetadata) (*Upstream, error) PasswordCallback func(conn ConnMetadata, password []byte) (*Upstream, error) PublicKeyCallback func(conn ConnMetadata, key []byte) (*Upstream, error) KeyboardInteractiveCallback func(conn ConnMetadata, client KeyboardInteractiveChallenge) (*Upstream, error) UpstreamAuthFailureCallback func(conn ConnMetadata, method string, err error, allowmethods []string) BannerCallback func(conn ConnMetadata) string VerifyHostKeyCallback func(conn ConnMetadata, hostname, netaddr string, key []byte) error PipeStartCallback func(conn ConnMetadata) PipeErrorCallback func(conn ConnMetadata, err error) }
type SshPiperPluginServer ¶
type SshPiperPluginServer interface { Logs(*StartLogRequest, SshPiperPlugin_LogsServer) error ListCallbacks(context.Context, *ListCallbackRequest) (*ListCallbackResponse, error) NewConnection(context.Context, *NewConnectionRequest) (*NewConnectionResponse, error) NextAuthMethods(context.Context, *NextAuthMethodsRequest) (*NextAuthMethodsResponse, error) NoneAuth(context.Context, *NoneAuthRequest) (*NoneAuthResponse, error) PasswordAuth(context.Context, *PasswordAuthRequest) (*PasswordAuthResponse, error) PublicKeyAuth(context.Context, *PublicKeyAuthRequest) (*PublicKeyAuthResponse, error) KeyboardInteractiveAuth(SshPiperPlugin_KeyboardInteractiveAuthServer) error UpstreamAuthFailureNotice(context.Context, *UpstreamAuthFailureNoticeRequest) (*UpstreamAuthFailureNoticeResponse, error) Banner(context.Context, *BannerRequest) (*BannerResponse, error) VerifyHostKey(context.Context, *VerifyHostKeyRequest) (*VerifyHostKeyResponse, error) PipeStartNotice(context.Context, *PipeStartNoticeRequest) (*PipeStartNoticeResponse, error) PipeErrorNotice(context.Context, *PipeErrorNoticeRequest) (*PipeErrorNoticeResponse, error) // contains filtered or unexported methods }
SshPiperPluginServer is the server API for SshPiperPlugin service. All implementations must embed UnimplementedSshPiperPluginServer for forward compatibility
type SshPiperPlugin_KeyboardInteractiveAuthClient ¶
type SshPiperPlugin_KeyboardInteractiveAuthClient interface { Send(*KeyboardInteractiveAuthMessage) error Recv() (*KeyboardInteractiveAuthMessage, error) grpc.ClientStream }
type SshPiperPlugin_KeyboardInteractiveAuthServer ¶
type SshPiperPlugin_KeyboardInteractiveAuthServer interface { Send(*KeyboardInteractiveAuthMessage) error Recv() (*KeyboardInteractiveAuthMessage, error) grpc.ServerStream }
type SshPiperPlugin_LogsClient ¶
type SshPiperPlugin_LogsClient interface { Recv() (*Log, error) grpc.ClientStream }
type SshPiperPlugin_LogsServer ¶
type SshPiperPlugin_LogsServer interface { Send(*Log) error grpc.ServerStream }
type StartLogRequest ¶
type StartLogRequest struct { UniqId string `protobuf:"bytes,1,opt,name=uniq_id,json=uniqId,proto3" json:"uniq_id,omitempty"` Level string `protobuf:"bytes,2,opt,name=level,proto3" json:"level,omitempty"` Tty bool `protobuf:"varint,3,opt,name=tty,proto3" json:"tty,omitempty"` // contains filtered or unexported fields }
func (*StartLogRequest) Descriptor
deprecated
func (*StartLogRequest) Descriptor() ([]byte, []int)
Deprecated: Use StartLogRequest.ProtoReflect.Descriptor instead.
func (*StartLogRequest) GetLevel ¶
func (x *StartLogRequest) GetLevel() string
func (*StartLogRequest) GetTty ¶
func (x *StartLogRequest) GetTty() bool
func (*StartLogRequest) GetUniqId ¶
func (x *StartLogRequest) GetUniqId() string
func (*StartLogRequest) ProtoMessage ¶
func (*StartLogRequest) ProtoMessage()
func (*StartLogRequest) ProtoReflect ¶
func (x *StartLogRequest) ProtoReflect() protoreflect.Message
func (*StartLogRequest) Reset ¶
func (x *StartLogRequest) Reset()
func (*StartLogRequest) String ¶
func (x *StartLogRequest) String() string
type UnimplementedSshPiperPluginServer ¶
type UnimplementedSshPiperPluginServer struct { }
UnimplementedSshPiperPluginServer must be embedded to have forward compatible implementations.
func (UnimplementedSshPiperPluginServer) Banner ¶
func (UnimplementedSshPiperPluginServer) Banner(context.Context, *BannerRequest) (*BannerResponse, error)
func (UnimplementedSshPiperPluginServer) KeyboardInteractiveAuth ¶
func (UnimplementedSshPiperPluginServer) KeyboardInteractiveAuth(SshPiperPlugin_KeyboardInteractiveAuthServer) error
func (UnimplementedSshPiperPluginServer) ListCallbacks ¶
func (UnimplementedSshPiperPluginServer) ListCallbacks(context.Context, *ListCallbackRequest) (*ListCallbackResponse, error)
func (UnimplementedSshPiperPluginServer) NewConnection ¶
func (UnimplementedSshPiperPluginServer) NewConnection(context.Context, *NewConnectionRequest) (*NewConnectionResponse, error)
func (UnimplementedSshPiperPluginServer) NextAuthMethods ¶
func (UnimplementedSshPiperPluginServer) NextAuthMethods(context.Context, *NextAuthMethodsRequest) (*NextAuthMethodsResponse, error)
func (UnimplementedSshPiperPluginServer) NoneAuth ¶
func (UnimplementedSshPiperPluginServer) NoneAuth(context.Context, *NoneAuthRequest) (*NoneAuthResponse, error)
func (UnimplementedSshPiperPluginServer) PasswordAuth ¶
func (UnimplementedSshPiperPluginServer) PasswordAuth(context.Context, *PasswordAuthRequest) (*PasswordAuthResponse, error)
func (UnimplementedSshPiperPluginServer) PipeErrorNotice ¶ added in v1.0.96
func (UnimplementedSshPiperPluginServer) PipeErrorNotice(context.Context, *PipeErrorNoticeRequest) (*PipeErrorNoticeResponse, error)
func (UnimplementedSshPiperPluginServer) PipeStartNotice ¶ added in v1.0.96
func (UnimplementedSshPiperPluginServer) PipeStartNotice(context.Context, *PipeStartNoticeRequest) (*PipeStartNoticeResponse, error)
func (UnimplementedSshPiperPluginServer) PublicKeyAuth ¶
func (UnimplementedSshPiperPluginServer) PublicKeyAuth(context.Context, *PublicKeyAuthRequest) (*PublicKeyAuthResponse, error)
func (UnimplementedSshPiperPluginServer) UpstreamAuthFailureNotice ¶
func (UnimplementedSshPiperPluginServer) UpstreamAuthFailureNotice(context.Context, *UpstreamAuthFailureNoticeRequest) (*UpstreamAuthFailureNoticeResponse, error)
func (UnimplementedSshPiperPluginServer) VerifyHostKey ¶
func (UnimplementedSshPiperPluginServer) VerifyHostKey(context.Context, *VerifyHostKeyRequest) (*VerifyHostKeyResponse, error)
type UnsafeSshPiperPluginServer ¶
type UnsafeSshPiperPluginServer interface {
// contains filtered or unexported methods
}
UnsafeSshPiperPluginServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SshPiperPluginServer will result in compilation errors.
type Upstream ¶
type Upstream struct { Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"` Port int32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` UserName string `protobuf:"bytes,3,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"` IgnoreHostKey bool `protobuf:"varint,4,opt,name=ignore_host_key,json=ignoreHostKey,proto3" json:"ignore_host_key,omitempty"` // Types that are assignable to Auth: // *Upstream_None // *Upstream_Password // *Upstream_PrivateKey // *Upstream_RemoteSigner // *Upstream_NextPlugin Auth isUpstream_Auth `protobuf_oneof:"auth"` // contains filtered or unexported fields }
func (*Upstream) Descriptor
deprecated
func (*Upstream) GetIgnoreHostKey ¶
func (*Upstream) GetNextPlugin ¶
func (x *Upstream) GetNextPlugin() *UpstreamNextPluginAuth
func (*Upstream) GetNone ¶
func (x *Upstream) GetNone() *UpstreamNoneAuth
func (*Upstream) GetPassword ¶
func (x *Upstream) GetPassword() *UpstreamPasswordAuth
func (*Upstream) GetPrivateKey ¶
func (x *Upstream) GetPrivateKey() *UpstreamPrivateKeyAuth
func (*Upstream) GetRemoteSigner ¶
func (x *Upstream) GetRemoteSigner() *UpstreamRemoteSignerAuth
func (*Upstream) GetUserName ¶
func (*Upstream) ProtoMessage ¶
func (*Upstream) ProtoMessage()
func (*Upstream) ProtoReflect ¶
func (x *Upstream) ProtoReflect() protoreflect.Message
type UpstreamAuthFailureNoticeRequest ¶
type UpstreamAuthFailureNoticeRequest struct { Meta *ConnMeta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"` Method string `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"` Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"` AllowedMethods []AuthMethod `` /* 137-byte string literal not displayed */ // contains filtered or unexported fields }
func (*UpstreamAuthFailureNoticeRequest) Descriptor
deprecated
func (*UpstreamAuthFailureNoticeRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpstreamAuthFailureNoticeRequest.ProtoReflect.Descriptor instead.
func (*UpstreamAuthFailureNoticeRequest) GetAllowedMethods ¶
func (x *UpstreamAuthFailureNoticeRequest) GetAllowedMethods() []AuthMethod
func (*UpstreamAuthFailureNoticeRequest) GetError ¶
func (x *UpstreamAuthFailureNoticeRequest) GetError() string
func (*UpstreamAuthFailureNoticeRequest) GetMeta ¶
func (x *UpstreamAuthFailureNoticeRequest) GetMeta() *ConnMeta
func (*UpstreamAuthFailureNoticeRequest) GetMethod ¶
func (x *UpstreamAuthFailureNoticeRequest) GetMethod() string
func (*UpstreamAuthFailureNoticeRequest) ProtoMessage ¶
func (*UpstreamAuthFailureNoticeRequest) ProtoMessage()
func (*UpstreamAuthFailureNoticeRequest) ProtoReflect ¶
func (x *UpstreamAuthFailureNoticeRequest) ProtoReflect() protoreflect.Message
func (*UpstreamAuthFailureNoticeRequest) Reset ¶
func (x *UpstreamAuthFailureNoticeRequest) Reset()
func (*UpstreamAuthFailureNoticeRequest) String ¶
func (x *UpstreamAuthFailureNoticeRequest) String() string
type UpstreamAuthFailureNoticeResponse ¶
type UpstreamAuthFailureNoticeResponse struct {
// contains filtered or unexported fields
}
func (*UpstreamAuthFailureNoticeResponse) Descriptor
deprecated
func (*UpstreamAuthFailureNoticeResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpstreamAuthFailureNoticeResponse.ProtoReflect.Descriptor instead.
func (*UpstreamAuthFailureNoticeResponse) ProtoMessage ¶
func (*UpstreamAuthFailureNoticeResponse) ProtoMessage()
func (*UpstreamAuthFailureNoticeResponse) ProtoReflect ¶
func (x *UpstreamAuthFailureNoticeResponse) ProtoReflect() protoreflect.Message
func (*UpstreamAuthFailureNoticeResponse) Reset ¶
func (x *UpstreamAuthFailureNoticeResponse) Reset()
func (*UpstreamAuthFailureNoticeResponse) String ¶
func (x *UpstreamAuthFailureNoticeResponse) String() string
type UpstreamNextPluginAuth ¶
type UpstreamNextPluginAuth struct { Meta map[string]string `` /* 149-byte string literal not displayed */ // contains filtered or unexported fields }
func (*UpstreamNextPluginAuth) Descriptor
deprecated
func (*UpstreamNextPluginAuth) Descriptor() ([]byte, []int)
Deprecated: Use UpstreamNextPluginAuth.ProtoReflect.Descriptor instead.
func (*UpstreamNextPluginAuth) GetMeta ¶
func (x *UpstreamNextPluginAuth) GetMeta() map[string]string
func (*UpstreamNextPluginAuth) ProtoMessage ¶
func (*UpstreamNextPluginAuth) ProtoMessage()
func (*UpstreamNextPluginAuth) ProtoReflect ¶
func (x *UpstreamNextPluginAuth) ProtoReflect() protoreflect.Message
func (*UpstreamNextPluginAuth) Reset ¶
func (x *UpstreamNextPluginAuth) Reset()
func (*UpstreamNextPluginAuth) String ¶
func (x *UpstreamNextPluginAuth) String() string
type UpstreamNoneAuth ¶
type UpstreamNoneAuth struct {
// contains filtered or unexported fields
}
func (*UpstreamNoneAuth) Descriptor
deprecated
func (*UpstreamNoneAuth) Descriptor() ([]byte, []int)
Deprecated: Use UpstreamNoneAuth.ProtoReflect.Descriptor instead.
func (*UpstreamNoneAuth) ProtoMessage ¶
func (*UpstreamNoneAuth) ProtoMessage()
func (*UpstreamNoneAuth) ProtoReflect ¶
func (x *UpstreamNoneAuth) ProtoReflect() protoreflect.Message
func (*UpstreamNoneAuth) Reset ¶
func (x *UpstreamNoneAuth) Reset()
func (*UpstreamNoneAuth) String ¶
func (x *UpstreamNoneAuth) String() string
type UpstreamPasswordAuth ¶
type UpstreamPasswordAuth struct { Password string `protobuf:"bytes,1,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*UpstreamPasswordAuth) Descriptor
deprecated
func (*UpstreamPasswordAuth) Descriptor() ([]byte, []int)
Deprecated: Use UpstreamPasswordAuth.ProtoReflect.Descriptor instead.
func (*UpstreamPasswordAuth) GetPassword ¶
func (x *UpstreamPasswordAuth) GetPassword() string
func (*UpstreamPasswordAuth) ProtoMessage ¶
func (*UpstreamPasswordAuth) ProtoMessage()
func (*UpstreamPasswordAuth) ProtoReflect ¶
func (x *UpstreamPasswordAuth) ProtoReflect() protoreflect.Message
func (*UpstreamPasswordAuth) Reset ¶
func (x *UpstreamPasswordAuth) Reset()
func (*UpstreamPasswordAuth) String ¶
func (x *UpstreamPasswordAuth) String() string
type UpstreamPrivateKeyAuth ¶
type UpstreamPrivateKeyAuth struct { PrivateKey []byte `protobuf:"bytes,1,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"` // contains filtered or unexported fields }
func (*UpstreamPrivateKeyAuth) Descriptor
deprecated
func (*UpstreamPrivateKeyAuth) Descriptor() ([]byte, []int)
Deprecated: Use UpstreamPrivateKeyAuth.ProtoReflect.Descriptor instead.
func (*UpstreamPrivateKeyAuth) GetPrivateKey ¶
func (x *UpstreamPrivateKeyAuth) GetPrivateKey() []byte
func (*UpstreamPrivateKeyAuth) ProtoMessage ¶
func (*UpstreamPrivateKeyAuth) ProtoMessage()
func (*UpstreamPrivateKeyAuth) ProtoReflect ¶
func (x *UpstreamPrivateKeyAuth) ProtoReflect() protoreflect.Message
func (*UpstreamPrivateKeyAuth) Reset ¶
func (x *UpstreamPrivateKeyAuth) Reset()
func (*UpstreamPrivateKeyAuth) String ¶
func (x *UpstreamPrivateKeyAuth) String() string
type UpstreamRemoteSignerAuth ¶
type UpstreamRemoteSignerAuth struct { Meta string `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"` // contains filtered or unexported fields }
func (*UpstreamRemoteSignerAuth) Descriptor
deprecated
func (*UpstreamRemoteSignerAuth) Descriptor() ([]byte, []int)
Deprecated: Use UpstreamRemoteSignerAuth.ProtoReflect.Descriptor instead.
func (*UpstreamRemoteSignerAuth) GetMeta ¶
func (x *UpstreamRemoteSignerAuth) GetMeta() string
func (*UpstreamRemoteSignerAuth) ProtoMessage ¶
func (*UpstreamRemoteSignerAuth) ProtoMessage()
func (*UpstreamRemoteSignerAuth) ProtoReflect ¶
func (x *UpstreamRemoteSignerAuth) ProtoReflect() protoreflect.Message
func (*UpstreamRemoteSignerAuth) Reset ¶
func (x *UpstreamRemoteSignerAuth) Reset()
func (*UpstreamRemoteSignerAuth) String ¶
func (x *UpstreamRemoteSignerAuth) String() string
type Upstream_NextPlugin ¶
type Upstream_NextPlugin struct {
NextPlugin *UpstreamNextPluginAuth `protobuf:"bytes,200,opt,name=next_plugin,json=nextPlugin,proto3,oneof"`
}
func CreateNextPluginAuth ¶
func CreateNextPluginAuth(meta map[string]string) *Upstream_NextPlugin
type Upstream_None ¶
type Upstream_None struct {
None *UpstreamNoneAuth `protobuf:"bytes,100,opt,name=none,proto3,oneof"`
}
func CreateNoneAuth ¶
func CreateNoneAuth() *Upstream_None
type Upstream_Password ¶
type Upstream_Password struct {
Password *UpstreamPasswordAuth `protobuf:"bytes,101,opt,name=password,proto3,oneof"`
}
func CreatePasswordAuth ¶
func CreatePasswordAuth(password []byte) *Upstream_Password
func CreatePasswordAuthFromString ¶
func CreatePasswordAuthFromString(password string) *Upstream_Password
type Upstream_PrivateKey ¶
type Upstream_PrivateKey struct {
PrivateKey *UpstreamPrivateKeyAuth `protobuf:"bytes,102,opt,name=private_key,json=privateKey,proto3,oneof"`
}
func CreatePrivateKeyAuth ¶
func CreatePrivateKeyAuth(key []byte) *Upstream_PrivateKey
type Upstream_RemoteSigner ¶
type Upstream_RemoteSigner struct {
RemoteSigner *UpstreamRemoteSignerAuth `protobuf:"bytes,103,opt,name=remote_signer,json=remoteSigner,proto3,oneof"`
}
func CreateRemoteSignerAuth ¶
func CreateRemoteSignerAuth(meta string) *Upstream_RemoteSigner
type VerifyHostKeyRequest ¶
type VerifyHostKeyRequest struct { Meta *ConnMeta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"` Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` Hostname string `protobuf:"bytes,3,opt,name=hostname,proto3" json:"hostname,omitempty"` Netaddress string `protobuf:"bytes,4,opt,name=netaddress,proto3" json:"netaddress,omitempty"` // contains filtered or unexported fields }
func (*VerifyHostKeyRequest) Descriptor
deprecated
func (*VerifyHostKeyRequest) Descriptor() ([]byte, []int)
Deprecated: Use VerifyHostKeyRequest.ProtoReflect.Descriptor instead.
func (*VerifyHostKeyRequest) GetHostname ¶
func (x *VerifyHostKeyRequest) GetHostname() string
func (*VerifyHostKeyRequest) GetKey ¶
func (x *VerifyHostKeyRequest) GetKey() []byte
func (*VerifyHostKeyRequest) GetMeta ¶
func (x *VerifyHostKeyRequest) GetMeta() *ConnMeta
func (*VerifyHostKeyRequest) GetNetaddress ¶
func (x *VerifyHostKeyRequest) GetNetaddress() string
func (*VerifyHostKeyRequest) ProtoMessage ¶
func (*VerifyHostKeyRequest) ProtoMessage()
func (*VerifyHostKeyRequest) ProtoReflect ¶
func (x *VerifyHostKeyRequest) ProtoReflect() protoreflect.Message
func (*VerifyHostKeyRequest) Reset ¶
func (x *VerifyHostKeyRequest) Reset()
func (*VerifyHostKeyRequest) String ¶
func (x *VerifyHostKeyRequest) String() string
type VerifyHostKeyResponse ¶ added in v1.0.96
type VerifyHostKeyResponse struct { Verified bool `protobuf:"varint,1,opt,name=verified,proto3" json:"verified,omitempty"` // contains filtered or unexported fields }
func (*VerifyHostKeyResponse) Descriptor
deprecated
added in
v1.0.96
func (*VerifyHostKeyResponse) Descriptor() ([]byte, []int)
Deprecated: Use VerifyHostKeyResponse.ProtoReflect.Descriptor instead.
func (*VerifyHostKeyResponse) GetVerified ¶ added in v1.0.96
func (x *VerifyHostKeyResponse) GetVerified() bool
func (*VerifyHostKeyResponse) ProtoMessage ¶ added in v1.0.96
func (*VerifyHostKeyResponse) ProtoMessage()
func (*VerifyHostKeyResponse) ProtoReflect ¶ added in v1.0.96
func (x *VerifyHostKeyResponse) ProtoReflect() protoreflect.Message
func (*VerifyHostKeyResponse) Reset ¶ added in v1.0.96
func (x *VerifyHostKeyResponse) Reset()
func (*VerifyHostKeyResponse) String ¶ added in v1.0.96
func (x *VerifyHostKeyResponse) String() string