package
5.1.0+incompatible
Repository: https://github.com/licensezero/cli.git
Documentation: pkg.go.dev
# README
Types and helper functions for parsing, validating, reading, and writing configuration, user, and licensing data.
# Functions
CheckLicenseSignature verifies the signatures to a liecnse envelope.
CheckWaiverSignature verifies the signatures to a waiver.
ConfigPath computes the path of the CLI's configuration directory.
LicenseFileToEnvelope fully parses license file data.
ReadIdentity reads the user's identity from disk.
ReadLicense reads a license file from disk.
ReadLicenses reads all saved licenses from the CLI configuration directory.
ReadLicensor reads the user's licensor ID and access token from disk.
ReadWaiver reads a waiver file.
ReadWaivers reads all waivers from the configuration directory.
WriteIdentity writes a user identity to disk.
WriteLicense writes a license file to the CLI configuration directory.
WriteLicensor writes a licensor ID and access token to disk.
WriteWaiver writes a waiver to the configuration directory.
# Structs
Identity represents a licensee identity.
LicenseEnvelope describes fully parsed licensezero.json metadata about a project.
LicenseFile describes partially parsed licensezero.json metadata about a project.
LicenseManifest describes signed licensezero.json metadata about a project.
Licensor describes a licensor ID and access token.
WaiverEnvelope describes a fully parsed waiver file.
WaiverFile describes a partially parsed waiver file.
WaiverManifest describes signed waiver data.