ssh

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(handlerConfig map[string]string) types.Handler

Types

type Action

type Action int
const (
	PasswordAuth Action = iota + 1 // EnumIndex = 1
	KeyAuth      Action = iota + 1 // EnumIndex = 1
)

Declare related constants for each weekday starting with index 1

func (Action) String

func (w Action) String() string

String - Creating common behavior - give the type a String function

type Event

type Event struct {
	*types.BaseEvent
	// contains filtered or unexported fields
}

func NewEvent

func NewEvent(ctx ssh.Context, action Action) *Event

type Handler

type Handler struct {
	Listener string
	// contains filtered or unexported fields
}

func (Handler) Name

func (h Handler) Name() string

func (Handler) Start

func (h Handler) Start(app types.App, eventChan chan types.InteractionEvent) error

Jump to

Keyboard shortcuts

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