Documentation ¶
Overview ¶
Package license makes HTTP requests to a license generation service to obtain trial licenses
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientError ¶
type ClientError struct {
// contains filtered or unexported fields
}
ClientError is returned when the license-generation-server returns an error code in the 4xx range
type Fetcher ¶
type Fetcher interface {
RequestLicense(ctx context.Context, customerName string) (license *TrialLicense, err error)
}
Fetcher requests licenses from a license-generation-service.
type ServerError ¶
type ServerError struct {
// contains filtered or unexported fields
}
ServerError is returned when the license-generation-server returns an error code in the 5xx range
type TrialLicense ¶
TrialLicense is returned by RequestLicense and contains the generated License and the assigned CustomerID.
func (*TrialLicense) ID ¶
func (tl *TrialLicense) ID() (string, error)
ID returns the TrialLicense's ID (decoded from the license JWT)
Click to show internal directories.
Click to hide internal directories.