server

package
v0.0.0-...-915de12 Latest Latest
Warning

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

Go to latest
Published: May 24, 2022 License: AGPL-3.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DistFiles embed.FS
View Source
var Templates embed.FS

Functions

func NewSignedEd25519Keypair

func NewSignedEd25519Keypair(caPrivateKey *ed25519.PrivateKey, subject string, certType uint32) (*ed25519.PrivateKey, *ssh.Certificate, error)

func NewSignedRSAKeypair

func NewSignedRSAKeypair(caPrivateKey *rsa.PrivateKey, subject string, certType uint32) (*rsa.PrivateKey, *ssh.Certificate, error)

func Serve

func Serve(rdb *gorm.DB)

Types

type CACertificateResponse

type CACertificateResponse struct {
	PublicKey string `json:"public_key"`
}

type SignedKeyResponse

type SignedKeyResponse struct {
	CA         string `json:"ca"`
	PublicKey  string `json:"public_key"`
	PrivateKey string `json:"private_key"`
}

Jump to

Keyboard shortcuts

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