dispatch

package
v0.0.0-...-ff37129 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2025 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dispatcher

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

func Init

func Init(logger *log.Logger, cfg ini.File) (*Dispatcher, error)

func (*Dispatcher) FallbackToAuthorizedKeysFile

func (d *Dispatcher) FallbackToAuthorizedKeysFile() error

func (*Dispatcher) Run

func (d *Dispatcher) Run() error

func (*Dispatcher) TryHandlers

func (d *Dispatcher) TryHandlers(handlers []Handler) (Handler, error)

type DispatcherArgs

type DispatcherArgs struct {
	Username string
	Homedir  string
	KeyType  string
	B64Key   string
	Prefix   string
}

func ParseDispatcherArgs

func ParseDispatcherArgs() DispatcherArgs

type Handler

type Handler interface {
	Service() string
	User() string
	Shell() string

	// A handler can specify additional option to be rendered in the
	// authorized keys record, such as `environment=...`. See the
	// AUTHORIZED_KEYS FILE FORMAT in sshd(8).
	AuthorizedKeysOptions() []string
}

Jump to

Keyboard shortcuts

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