license

package
v2.10.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Validate

func Validate(code string) (expiration time.Time, err error)

Validate checks the validity of an enterprise license code

Types

type ActivationCode

type ActivationCode struct {
	Token     string
	Signature string
}

ActivationCode is the outer JSON structure of an enterprise license

func Unmarshal

func Unmarshal(code string) (*ActivationCode, error)

Unmarshal deserializes the outer base64-encoded JSON payload of an enterprise license

type Token

type Token struct {
	Expiry string
}

Token is the inner JSON structure of an enterprise license. These claims are signed and must be kept in sync with the license generation tool.

Jump to

Keyboard shortcuts

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