Documentation
¶
Overview ¶
Package licensetoken validates registry-signed license tokens against the embedded production JWK set.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrConflictingLicenseElection = errors.New("a license token conflicts with an AGPL election: supply one or the other")
View Source
var ErrInvalidLicenseToken = errors.New("invalid license token")
Functions ¶
Types ¶
type TokenInfo ¶
type TokenInfo struct {
WorkspaceID string
WorkspaceSlug string
OrgSlug string
Tier string
Targets []string
IssuedAt time.Time
ExpiresAt time.Time
Message string
}
type Verification ¶
type Verification struct {
Targets []string
}
func ResolveGenerationAccess ¶
ResolveGenerationAccess validates an attached token into commercial access state and returns its target coverage.
func (Verification) Covers ¶
func (v Verification) Covers(target string) bool
Click to show internal directories.
Click to hide internal directories.