srhtkeys

package module
v0.0.0-...-e9a6399 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: AGPL-3.0 Imports: 18 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseArgs

func ParseArgs(logger *log.Logger) (string, string, string, error)

func RenderAuthorizedKeysEntry

func RenderAuthorizedKeysEntry(logger *log.Logger, shell string, userId int,
	username string, b64key string, keyType string)

func UserFromKey

func UserFromKey(logger *log.Logger, config ini.File,
	redis *goredis.Client, service string, b64key string) (string, int)

Types

type KeyCache

type KeyCache struct {
	UserId   int    `json:"user_id"`
	Username string `json:"username"`
}

type MetaSSHKey

type MetaSSHKey struct {
	Id          int    `json:"id"`
	Fingerprint string `json:"fingerprint"`
	Key         string `json:"key"`
	Username    string `json:"username"`
}

Jump to

Keyboard shortcuts

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