libplugin

package
v1.2.8 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2024 License: MIT Imports: 20 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
var File_plugin_proto protoreflect.FileDescriptor
View Source
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: "PipeCreateErrorNotice",
			Handler:    _SshPiperPlugin_PipeCreateErrorNotice_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

func DialForSSH(addr string) (net.Conn, error)

DialForSSH is the modified version of net.Dial, would add ":22" automaticlly

func RegisterSshPiperPluginServer

func RegisterSshPiperPluginServer(s grpc.ServiceRegistrar, srv SshPiperPluginServer)

func SplitHostPortForSSH

func SplitHostPortForSSH(addr string) (host string, port int, err error)

SplitHostPortForSSH is the modified version of net.SplitHostPort but return port 22 is no port is specified

func VerifyHostKeyFromKnownHosts added in v1.0.94

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

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

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) Descriptor() ([]byte, []int)

Deprecated: Use ConnMeta.ProtoReflect.Descriptor instead.

func (*ConnMeta) GetFromAddr

func (x *ConnMeta) GetFromAddr() string

func (*ConnMeta) GetUniqId

func (x *ConnMeta) GetUniqId() string

func (*ConnMeta) GetUserName

func (x *ConnMeta) GetUserName() string

func (*ConnMeta) ProtoMessage

func (*ConnMeta) ProtoMessage()

func (*ConnMeta) ProtoReflect

func (x *ConnMeta) ProtoReflect() protoreflect.Message

func (*ConnMeta) RemoteAddr

func (c *ConnMeta) RemoteAddr() string

func (*ConnMeta) Reset

func (x *ConnMeta) Reset()

func (*ConnMeta) String

func (x *ConnMeta) String() string

func (*ConnMeta) UniqueID

func (c *ConnMeta) UniqueID() string

func (*ConnMeta) User

func (c *ConnMeta) User() string

type ConnMetadata

type ConnMetadata interface {
	User() string

	RemoteAddr() string

	UniqueID() string
}

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 (*KeyboardInteractiveAuthMessage) GetMessage

func (m *KeyboardInteractiveAuthMessage) GetMessage() isKeyboardInteractiveAuthMessage_Message

func (*KeyboardInteractiveAuthMessage) GetMetaRequest

func (*KeyboardInteractiveAuthMessage) GetMetaResponse

func (*KeyboardInteractiveAuthMessage) GetPromptRequest

func (*KeyboardInteractiveAuthMessage) GetUserResponse

func (*KeyboardInteractiveAuthMessage) ProtoMessage

func (*KeyboardInteractiveAuthMessage) ProtoMessage()

func (*KeyboardInteractiveAuthMessage) ProtoReflect

func (*KeyboardInteractiveAuthMessage) Reset

func (x *KeyboardInteractiveAuthMessage) Reset()

func (*KeyboardInteractiveAuthMessage) 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 KeyboardInteractiveChallenge

type KeyboardInteractiveChallenge func(user, instruction string, question string, echo bool) (answer string, err error)

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 (*KeyboardInteractiveFinishRequest) Reset

func (*KeyboardInteractiveFinishRequest) 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 (*KeyboardInteractiveMetaRequest) Reset

func (x *KeyboardInteractiveMetaRequest) Reset()

func (*KeyboardInteractiveMetaRequest) 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 (*KeyboardInteractiveMetaResponse) ProtoMessage

func (*KeyboardInteractiveMetaResponse) ProtoMessage()

func (*KeyboardInteractiveMetaResponse) ProtoReflect

func (*KeyboardInteractiveMetaResponse) Reset

func (*KeyboardInteractiveMetaResponse) 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 (*KeyboardInteractivePromptRequest) GetQuestions

func (*KeyboardInteractivePromptRequest) ProtoMessage

func (*KeyboardInteractivePromptRequest) ProtoMessage()

func (*KeyboardInteractivePromptRequest) ProtoReflect

func (*KeyboardInteractivePromptRequest) Reset

func (*KeyboardInteractivePromptRequest) 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 (*KeyboardInteractivePromptRequest_Question) GetText

func (*KeyboardInteractivePromptRequest_Question) ProtoMessage

func (*KeyboardInteractivePromptRequest_Question) ProtoReflect

func (*KeyboardInteractivePromptRequest_Question) Reset

func (*KeyboardInteractivePromptRequest_Question) 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 (*KeyboardInteractiveUserResponse) Reset

func (*KeyboardInteractiveUserResponse) 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) Descriptor() ([]byte, []int)

Deprecated: Use Log.ProtoReflect.Descriptor instead.

func (*Log) GetMessage

func (x *Log) GetMessage() string

func (*Log) ProtoMessage

func (*Log) ProtoMessage()

func (*Log) ProtoReflect

func (x *Log) ProtoReflect() protoreflect.Message

func (*Log) Reset

func (x *Log) Reset()

func (*Log) String

func (x *Log) String() string

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 PipeCreateErrorNoticeRequest added in v1.2.5

type PipeCreateErrorNoticeRequest struct {
	FromAddr string `protobuf:"bytes,1,opt,name=from_addr,json=fromAddr,proto3" json:"from_addr,omitempty"`
	Error    string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*PipeCreateErrorNoticeRequest) Descriptor deprecated added in v1.2.5

func (*PipeCreateErrorNoticeRequest) Descriptor() ([]byte, []int)

Deprecated: Use PipeCreateErrorNoticeRequest.ProtoReflect.Descriptor instead.

func (*PipeCreateErrorNoticeRequest) GetError added in v1.2.5

func (x *PipeCreateErrorNoticeRequest) GetError() string

func (*PipeCreateErrorNoticeRequest) GetFromAddr added in v1.2.5

func (x *PipeCreateErrorNoticeRequest) GetFromAddr() string

func (*PipeCreateErrorNoticeRequest) ProtoMessage added in v1.2.5

func (*PipeCreateErrorNoticeRequest) ProtoMessage()

func (*PipeCreateErrorNoticeRequest) ProtoReflect added in v1.2.5

func (*PipeCreateErrorNoticeRequest) Reset added in v1.2.5

func (x *PipeCreateErrorNoticeRequest) Reset()

func (*PipeCreateErrorNoticeRequest) String added in v1.2.5

type PipeCreateErrorNoticeResponse added in v1.2.5

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

func (*PipeCreateErrorNoticeResponse) Descriptor deprecated added in v1.2.5

func (*PipeCreateErrorNoticeResponse) Descriptor() ([]byte, []int)

Deprecated: Use PipeCreateErrorNoticeResponse.ProtoReflect.Descriptor instead.

func (*PipeCreateErrorNoticeResponse) ProtoMessage added in v1.2.5

func (*PipeCreateErrorNoticeResponse) ProtoMessage()

func (*PipeCreateErrorNoticeResponse) ProtoReflect added in v1.2.5

func (*PipeCreateErrorNoticeResponse) Reset added in v1.2.5

func (x *PipeCreateErrorNoticeResponse) Reset()

func (*PipeCreateErrorNoticeResponse) String added in v1.2.5

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)
	PipeCreateErrorNotice(ctx context.Context, in *PipeCreateErrorNoticeRequest, opts ...grpc.CallOption) (*PipeCreateErrorNoticeResponse, 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.

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

	PipeCreateErrorCallback func(remoteAddr string, err error)

	PipeStartCallback func(conn ConnMetadata)

	PipeErrorCallback func(conn ConnMetadata, err error)

	GrpcRemoteSignerFactory grpcsigner.SignerFactory
}

type SshPiperPluginServer

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) KeyboardInteractiveAuth

func (UnimplementedSshPiperPluginServer) ListCallbacks

func (UnimplementedSshPiperPluginServer) Logs

func (UnimplementedSshPiperPluginServer) NewConnection

func (UnimplementedSshPiperPluginServer) NextAuthMethods

func (UnimplementedSshPiperPluginServer) NoneAuth

func (UnimplementedSshPiperPluginServer) PasswordAuth

func (UnimplementedSshPiperPluginServer) PipeCreateErrorNotice added in v1.2.5

func (UnimplementedSshPiperPluginServer) PipeErrorNotice added in v1.0.96

func (UnimplementedSshPiperPluginServer) PipeStartNotice added in v1.0.96

func (UnimplementedSshPiperPluginServer) PublicKeyAuth

func (UnimplementedSshPiperPluginServer) VerifyHostKey

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) Descriptor() ([]byte, []int)

Deprecated: Use Upstream.ProtoReflect.Descriptor instead.

func (*Upstream) GetAuth

func (m *Upstream) GetAuth() isUpstream_Auth

func (*Upstream) GetHost

func (x *Upstream) GetHost() string

func (*Upstream) GetIgnoreHostKey

func (x *Upstream) GetIgnoreHostKey() bool

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) GetPort

func (x *Upstream) GetPort() int32

func (*Upstream) GetPrivateKey

func (x *Upstream) GetPrivateKey() *UpstreamPrivateKeyAuth

func (*Upstream) GetRemoteSigner

func (x *Upstream) GetRemoteSigner() *UpstreamRemoteSignerAuth

func (*Upstream) GetUserName

func (x *Upstream) GetUserName() string

func (*Upstream) ProtoMessage

func (*Upstream) ProtoMessage()

func (*Upstream) ProtoReflect

func (x *Upstream) ProtoReflect() protoreflect.Message

func (*Upstream) Reset

func (x *Upstream) Reset()

func (*Upstream) String

func (x *Upstream) String() string

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 (*UpstreamAuthFailureNoticeRequest) GetMeta

func (*UpstreamAuthFailureNoticeRequest) GetMethod

func (*UpstreamAuthFailureNoticeRequest) ProtoMessage

func (*UpstreamAuthFailureNoticeRequest) ProtoMessage()

func (*UpstreamAuthFailureNoticeRequest) ProtoReflect

func (*UpstreamAuthFailureNoticeRequest) Reset

func (*UpstreamAuthFailureNoticeRequest) 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 (*UpstreamAuthFailureNoticeResponse) Reset

func (*UpstreamAuthFailureNoticeResponse) 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"`
	CaPublicKey []byte `protobuf:"bytes,2,opt,name=ca_public_key,json=caPublicKey,proto3" json:"ca_public_key,omitempty"`
	// contains filtered or unexported fields
}

func (*UpstreamPrivateKeyAuth) Descriptor deprecated

func (*UpstreamPrivateKeyAuth) Descriptor() ([]byte, []int)

Deprecated: Use UpstreamPrivateKeyAuth.ProtoReflect.Descriptor instead.

func (*UpstreamPrivateKeyAuth) GetCaPublicKey added in v1.2.3

func (x *UpstreamPrivateKeyAuth) GetCaPublicKey() []byte

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, optionalSignedCaPublicKey ...[]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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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