lib

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2022 License: MIT Imports: 2 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version = "unknown"

Version string

Functions

func GetPublicKey

func GetPublicKey(pub ssh.PublicKey) []byte

GetPublicKey marshals a ssh certificate to a string.

Types

type SignRequest

type SignRequest struct {
	Key        string    `json:"key"`
	ValidUntil time.Time `json:"valid_until"`
	Message    string    `json:"message"`
	Version    string    `json:"version"`
}

SignRequest represents a signing request sent to the server.

type SignResponse

type SignResponse struct {
	Status   string `json:"status"`   // Status will be "ok" or "error".
	Response string `json:"response"` // Response will contain either the signed certificate or the error message.
	Version  string `json:"version"`
}

SignResponse is sent by the server.

Jump to

Keyboard shortcuts

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