token

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateSystemAdminToken

func GenerateSystemAdminToken(privKey key.ServerPrivate) (string, error)

func IsSystemAdminToken

func IsSystemAdminToken(token string) bool

Types

type Info

type Info struct {
	Nonce        string    `json:"nonce"`
	NonceBytes   []byte    `json:"-"`
	CreationTime time.Time `json:"creation_time"`
}

func ParseSystemAdminToken

func ParseSystemAdminToken(privKey key.ServerPrivate, versionedToken string) (*Info, error)

Jump to

Keyboard shortcuts

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