store

package
v0.0.0-...-ff65396 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2022 License: ISC Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitDB

func InitDB(path string) error

Types

type User

type User struct {
	PubKey     []byte
	Name       string
	Serial     uint
	Principals []string
	Expiration time.Time
}

func GetUser

func GetUser(pubkey []byte) (u *User, err error)

func NewUser

func NewUser(key []byte, exp time.Time) (u *User, err error)

func (*User) MakeCertificate

func (u *User) MakeCertificate(ca *keys.KeyPair) (c *ssh.Certificate, err error)

func (*User) Save

func (u *User) Save() (err error)

Jump to

Keyboard shortcuts

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