Versions in this module Expand all Collapse all v0 v0.4.0 Sep 3, 2026 v0.3.0 Sep 2, 2026 Changes in this version + const DefaultPubKeyHex + const EdCloud + const EdEnt + const PubKeyEnv + var ErrBadFormat = errors.New("license: bad format") + var ErrBadSig = errors.New("license: bad signature") + var ErrEditionMismatch = errors.New("license: edition mismatch") + var ErrExpired = errors.New("license: expired") + var ErrNoKey = errors.New("license: no trusted public key configured") + var ErrNotYet = errors.New("license: not valid yet") + var ErrUnknownFeature = errors.New("license: unknown feature") + type License struct + CapacityM int64 + CustomerID string + Edition string + ExpiresAt int64 + Features []string + IssuedAt int64 + NotBefore int64 + Trial bool + func LoadFile(path string, now time.Time) (*License, error) + func Validate(s string, now time.Time) (*License, error)