trialer

package
v2.38.6 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: AGPL-3.0 Imports: 14 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const LicenseRequestURL = "https://v2-licensor.coder.com/trial"

LicenseRequestURL is the Coder licensor endpoint that issues trial licenses.

Variables

This section is empty.

Functions

This section is empty.

Types

type LicensorError added in v2.37.0

type LicensorError struct {
	Message string
}

func (*LicensorError) Error added in v2.37.0

func (e *LicensorError) Error() string

type Trialer added in v2.37.0

type Trialer struct {
	// contains filtered or unexported fields
}

func New

func New(db database.Store, url string, keys map[string]ed25519.PublicKey) *Trialer

New creates a handler that can issue trial licenses

func (*Trialer) Generate added in v2.37.0

func (t *Trialer) Generate(ctx context.Context, body codersdk.LicensorTrialRequest) error

Generate requests a trial license and stores it, skipping the auditing and entitlement refresh that installing an uploaded license performs.

func (*Trialer) Request added in v2.37.0

func (t *Trialer) Request(ctx context.Context, body codersdk.LicensorTrialRequest) (string, error)

Request returns the raw signed license without storing it.

Jump to

Keyboard shortcuts

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