ssh

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AuthHeader string = "Authorization"
)

Variables

This section is empty.

Functions

func ParsePublicKey

func ParsePublicKey(raw []byte) (ssh.PublicKey, error)

Types

type AuthData

type AuthData struct {
	Email     string
	Signature *ssh.Signature
}

func GetAuthFromRequest

func GetAuthFromRequest(r *http.Request) (*AuthData, error)

type Client

type Client struct {
	Signer ssh.Signer
	Email  string
}

func NewClient

func NewClient(privKeyPath string, email string) (Client, error)

func (Client) SignRequest

func (c Client) SignRequest(r *http.Request, body []byte) error

Jump to

Keyboard shortcuts

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