lvs

package
v0.0.0-...-ecc870c Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2023 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrFailParseClaims = errors.New("failed to parse license token claims")
View Source
var ErrLicenseExpired = errors.New("license expired")
View Source
var ErrLicenseMalformed = errors.New("license token malformed or empty")
View Source
var ErrNoPEMBlock = errors.New("no valid PEM block in public key")
View Source
var PublicKey string

Encoded public key

Functions

This section is empty.

Types

type LicenseTokenClaim

type LicenseTokenClaim struct {
	jwt.StandardClaims
	Type Type `json:"type"`
	Plan Plan `json:"plan"`
}

func ValidateLicenseToken

func ValidateLicenseToken(licenseToken string) (*LicenseTokenClaim, error)

ValidateLicenseToken verifies the license and return license key parameters as claims.

type Plan

type Plan uint16
const (
	Tiny Plan = iota
	Small
	Medium
	Big
	Unlimited
)

type Type

type Type uint16
const (
	Beta Type = iota
	Community
	Commercial
)

Jump to

Keyboard shortcuts

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