Back to godoc.org
git.sr.ht/~sircmpwn/scm.sr.ht/srht-keys

Package srhtkeys

v0.0.0-...-253d4b3
Latest Go to latest

The highest tagged major version is .

Published: Oct 5, 2020 | License: AGPL-3.0 | Module: git.sr.ht/~sircmpwn/scm.sr.ht/srht-keys

Index

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)

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"`
	Owner       MetaUser `json:"owner"`
}

We don't need everything, so we don't include everything.

type MetaUser

type MetaUser struct {
	Username string `json:"name"`
}

We don't need everything, so we don't include everything.

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier