Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { RequestTrialLicense(ctx context.Context, firstname, lastname, email string, gdprAgree bool, deploymentID, automateVersion string) (string, error) }
Client is the interface fulfilled by a trial-license-service client
type UnexpectedStatusError ¶
type UnexpectedStatusError struct {
// contains filtered or unexported fields
}
UnexpectedStatusError is returned when the trial-license-service responds with a non-200 status code
func (*UnexpectedStatusError) Code ¶
func (e *UnexpectedStatusError) Code() int
Code returns the status code returned by the upstream service
func (*UnexpectedStatusError) Error ¶
func (e *UnexpectedStatusError) Error() string
Click to show internal directories.
Click to hide internal directories.