Documentation ¶ Index ¶ Constants func ParsePublicKey(raw []byte) (ssh.PublicKey, error) type AuthData func GetAuthFromRequest(r *http.Request) (*AuthData, error) type Client func NewClient(privKeyPath string, email string) (Client, error) func (c Client) SignRequest(r *http.Request, body []byte) error 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 Source Files ¶ View all Source files ssh.go Click to show internal directories. Click to hide internal directories.